When I was trying to do an "emerge --update world" after an "emerge sync" yesterday (June, 08 2004), the first package that would be "emerged" is apache 2.0.49-r3. Like follows: -------- [ebuild U ] net-www/apache-2.0.49-r3 [2.0.49] +berkdb -doc +gdbm -ipv6 +ldap +ssl -static -threads 0 kB -------- Then when it tries to build, it throws some warning messages from autoheader at the beginnig, like this: -------- Creating include/arch/unix/apr_private.h.in ... autoheader-2.59: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader-2.59: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader-2.59: WARNING: is deprecated and discouraged. autoheader-2.59: autoheader-2.59: WARNING: Using the third argument of `AC_DEFINE' and autoheader-2.59: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without autoheader-2.59: WARNING: `acconfig.h': autoheader-2.59: autoheader-2.59: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader-2.59: [Define if a function `main' is needed.]) autoheader-2.59: autoheader-2.59: WARNING: More sophisticated templates can also be produced, see the autoheader-2.59: WARNING: documentation. -------- And ends with these library errors: -------- /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/libtool --silent --mode=link gcc -pthread -O3 -march=athlon-xp -fomit-frame-pointer -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/include -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr-util/include -I. -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/os/unix -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/server/mpm/prefork -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/http -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/filters -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/proxy -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/include -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/generators -I/usr/include/openssl -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/dav/main -export-dynamic -L/usr/lib -o htdigest htdigest.lo -lz -lssl -lcrypto /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/pcre/libpcre.la /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr-util/libaprutil-0.la -lldap -llber -lgdbm -ldb-4.1 -lexpat /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `printw' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `start_color' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `endwin' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `init_pair' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wattr_on' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `echo' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `noecho' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `initscr' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wmove' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wgetch' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `stdscr' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wclear' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wattr_off' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wbkgdset' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wcolor_set' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `pair_content' collect2: ld returned 1 exit status make[2]: *** [htpasswd] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `printw' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `start_color' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `endwin' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `init_pair' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wattr_on' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `echo' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `noecho' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `initscr' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wmove' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wgetch' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `stdscr' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wclear' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wattr_off' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wbkgdset' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wcolor_set' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `pair_content' collect2: ld returned 1 exit status make[2]: *** [htdigest] Error 1 make[2]: Leaving directory `/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/support' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/support' make: *** [all-recursive] Error 1 !!! ERROR: net-www/apache-2.0.49-r3 failed. !!! Function src_compile, Line 198, Exitcode 2 !!! problem compiling Apache2 :( -------- And that's it. Thank you, Andr
When I was trying to do an "emerge --update world" after an "emerge sync" yesterday (June, 08 2004), the first package that would be "emerged" is apache 2.0.49-r3. Like follows: -------- [ebuild U ] net-www/apache-2.0.49-r3 [2.0.49] +berkdb -doc +gdbm -ipv6 +ldap +ssl -static -threads 0 kB -------- Then when it tries to build, it throws some warning messages from autoheader at the beginnig, like this: -------- Creating include/arch/unix/apr_private.h.in ... autoheader-2.59: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader-2.59: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader-2.59: WARNING: is deprecated and discouraged. autoheader-2.59: autoheader-2.59: WARNING: Using the third argument of `AC_DEFINE' and autoheader-2.59: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without autoheader-2.59: WARNING: `acconfig.h': autoheader-2.59: autoheader-2.59: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader-2.59: [Define if a function `main' is needed.]) autoheader-2.59: autoheader-2.59: WARNING: More sophisticated templates can also be produced, see the autoheader-2.59: WARNING: documentation. -------- And ends with these library errors: -------- /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/libtool --silent --mode=link gcc -pthread -O3 -march=athlon-xp -fomit-frame-pointer -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/include -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr-util/include -I. -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/os/unix -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/server/mpm/prefork -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/http -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/filters -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/proxy -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/include -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/generators -I/usr/include/openssl -I/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/modules/dav/main -export-dynamic -L/usr/lib -o htdigest htdigest.lo -lz -lssl -lcrypto /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/pcre/libpcre.la /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr-util/libaprutil-0.la -lldap -llber -lgdbm -ldb-4.1 -lexpat /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `printw' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `start_color' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `endwin' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `init_pair' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wattr_on' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `echo' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `noecho' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `initscr' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wmove' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wgetch' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `stdscr' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wclear' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wattr_off' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wbkgdset' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wcolor_set' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `pair_content' collect2: ld returned 1 exit status make[2]: *** [htpasswd] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `printw' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `start_color' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `endwin' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `init_pair' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wattr_on' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `echo' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `noecho' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `initscr' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wmove' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wgetch' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `stdscr' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wclear' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wattr_off' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wbkgdset' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `wcolor_set' /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/.libs/libapr-0.so: undefined reference to `pair_content' collect2: ld returned 1 exit status make[2]: *** [htdigest] Error 1 make[2]: Leaving directory `/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/support' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/support' make: *** [all-recursive] Error 1 !!! ERROR: net-www/apache-2.0.49-r3 failed. !!! Function src_compile, Line 198, Exitcode 2 !!! problem compiling Apache2 :( -------- And that's it. Thank you, André Carvalho. Reproducible: Always Steps to Reproduce: 1. emerge --update apache Actual Results: It does not compile, ends with "undefined references" errors. Expected Results: Build and install package correctly. Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.9 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acpi alsa arts avi berkdb bonobo cdr crypt cups dvd emacs encode encoder esd firebird flash foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile icq imlib jabber jack java jpeg kde ldap leim libg++ libwww mad mikmod mmx motif mozilla mpeg mule mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xosd xv zlib"
Have you upgraded your ncurses or glibc recently?
You can test your system by doing the following: create a file called test.c and in it: #include <stdio.h> #include <ncurses.h> void main() { initscr(); erase(); printw("Hej mor\n"); getch(); endwin(); } ---END SNIP Compile it by doing the following: gcc test.c -o test -lncurses If you get messages like this: test.c:1: stdio.h: No such file or directory test.c:2: ncurses.h: No such file or directory Then its something with your system. Chuck
The test program for ncurses works just fine, it's not a problem with my ncurses lib. The versions of my ncurses and glibc are: - sys-libs/ncurses-5.4-r1 - sys-libs/glibc-2.3.2-r9 They're the latest versions, right!? -andre
Thats correct. Something on your system is not correct. Could you please post a full log. Thanks
Created attachment 33192 [details] The full output from emerge --update -v apache Here it goes.
Which version of binutils do you have?
My version of binutils: * sys-devel/binutils Latest version available: 2.14.90.0.8-r1 Latest version installed: 2.14.90.0.7-r4 - Should I try to upgrade it before apache?
Try this. USE="-slang" emerge apache-2.0.49-43. Thanks chuck
It makes no difference since this flag does not affect apache ebuild for me. As shown by emerge: [ebuild U ] net-www/apache-2.0.49-r3 [2.0.49] +berkdb -doc +gdbm -ipv6 +ldap +ssl -static -threads 0 kB Anyway I tried and it really doesn't work. Thanks -andre
Can you ldd /usr/sbin/apache2. Thanks
output from ldd /usr/sbin/apache2: linux-gate.so.1 => (0xffffe000) libz.so.1 => /lib/libz.so.1 (0x4002d000) libaprutil-0.so.0 => /usr/lib/libaprutil-0.so.0 (0x4003e000) libldap.so.2 => /usr/lib/libldap.so.2 (0x40053000) libresolv.so.2 => /lib/libresolv.so.2 (0x40086000) libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x40097000) libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x400c8000) liblber.so.2 => /usr/lib/liblber.so.2 (0x401c6000) libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x401d2000) libdb-4.1.so => /usr/lib/libdb-4.1.so (0x401d8000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4029c000) libapr-0.so.0 => /usr/lib/libapr-0.so.0 (0x402c1000) librt.so.1 => /lib/librt.so.1 (0x402e3000) libm.so.6 => /lib/libm.so.6 (0x402f6000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40318000) libnsl.so.1 => /lib/libnsl.so.1 (0x40345000) libpthread.so.0 => /lib/libpthread.so.0 (0x4035a000) libdl.so.2 => /lib/libdl.so.2 (0x403ab000) libc.so.6 => /lib/libc.so.6 (0x403af000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) --- Thanks -andre
Are you exporting any LDFLAGS?
No... I'm not.
Could you post your config.log from srclib/apr. Thanks
Created attachment 34303 [details] config.log from httpd-2.0.49/srclib/apr... Here is the full file found at /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/srclib/apr/config.log Thanks
Have you tried it with disabling ccache?
You mean configure's cache? If it is, I've seen that there are some workarounds in the .ebuild file that use the --cache-file option at configure time. If is another thing, sorry, but I didn't understand. Thanks, -andre
Please try 2.0.50
Hi, just discovered the problem: for some reason the Makefile isn't puting the "-lncurses" flag in the command for libtool. I've read the command line a hundred times and haven't noticed it until today! Running: CFLAGS="-lncurses" emerge --update apache makes it work, so I think it's really a bug with the ebuild, right!? After trying the version 2.0.50 and seen it failed I started looking very carefully for the problem and got it. Unfortunately I don't know how to fix this in the ebuild file. Thanks, -andre.