[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undefined reference when compiling 2.3.2
From: |
5468696A6D656E |
Subject: |
undefined reference when compiling 2.3.2 |
Date: |
Sat, 1 May 2004 20:35:05 +0200 |
User-agent: |
Mutt/1.4.1i |
I have the following error on:
../glibc-2.3.2/configure --prefix=/usr --enable-add-ons=linuxthreads
make
kernel 2.4.26 (also tried lower) + headers
gcc 3.3.2
linuxthreads is installed
It's the same as posted here: (but i try a newer version)
http://sources.redhat.com/ml/bug-glibc/2001-12/msg00081.html
(but he didn't get any reply)
gcc memusagestat.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g -I../include
-I. -I/src/c/glibc-build/malloc -I.. -I../libio -I/src/c/glibc-build
-I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv
-I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc -o
/src/c/glibc-build/malloc/memusagestat.o
gcc -o /src/c/glibc-build/malloc/memusagestat
/src/c/glibc-build/malloc/memusagestat.o -lgd -lpng -lz -lm
/src/c/glibc-build/malloc/memusagestat.o(.text+0x5d): In function `main':
/src/c/glibc-2.3.2/malloc/memusagestat.c:138: undefined reference to
`argp_parse'
/src/c/glibc-build/malloc/memusagestat.o(.text+0x95):/src/c/glibc-2.3.2/malloc/memusagestat.c:142:
undefined
reference to `argp_help'
collect2: ld returned 1 exit status
make[2]: *** [/src/c/glibc-build/malloc/memusagestat] Error 1
make[2]: Leaving directory `/src/c/glibc-2.3.2/malloc'
make[1]: *** [malloc/others] Error 2
make[1]: Leaving directory `/src/c/glibc-2.3.2'
make: *** [all] Error 2
as i have a console only system, i am a bit puzzled why i would want a program
which
needs to link to libgd and libpng.
Why install it in the bare (--enable-add-ons=linuxthreads) glibc at all?
There seems to be a version check missing on gd in configure. (i have gd, but
apparently too
old)
In the end i got it to install, with configure option --without-gd. Why not
make this option
default? Should glibc really be making graphical programs by default?
Please also include my email in the reply as i am not on the list
Th.
--
__Thijmen Klok________
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- undefined reference when compiling 2.3.2,
5468696A6D656E <=