when emerging licq I get the following error, but libpthread.so exists in /usr/lib. USE="3dnow acpi also apache2 cups dvd encode evo gif -gnome gtk2 java kde ldap lirc mmx mozilla nls oggvorbis pcmcia pdflib png quicktime samba sdl sse tetex tiff truetype usb X xml xml2 xv zlib" CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -g0 -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays" emerge licq Calculating dependencies ...done! >>> emerge (1 of 1) net-im/licq-1.2.6 to / >>> md5 ;-) licq-1.2.6.tar.bz2 >>> Unpacking source... >>> Unpacking licq-1.2.6.tar.bz2 to /var/tmp/portage/licq-1.2.6/work * Setting kde plugin as default...... [ ok ] >>> Source unpacked. ssl configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking for i686-pc-linux-gnu-gcc... cc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of cc... gcc3 checking how to run the C preprocessor... cc -E checking for i686-pc-linux-gnu-g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking whether g++ accepts -fno-exceptions -fno-check-new... yes checking how to run the C++ preprocessor... g++ -E checking for strerror in -lcposix... no checking whether make sets $(MAKE)... (cached) yes checking for a BSD-compatible install... /bin/install -c checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for strip... /usr/bin/strip checking for size... /usr/bin/size Setting Linux compilation options checking for dirent.h that defines DIR... no checking for sys/ndir.h that defines DIR... no checking for sys/dir.h that defines DIR... no checking for ndir.h that defines DIR... no checking for library containing opendir... no checking for egrep... grep -E checking for ANSI C header files... no checking for sys/types.h... no checking for sys/stat.h... no checking for stdlib.h... no checking for string.h... no checking for memory.h... no checking for strings.h... no checking for inttypes.h... no checking for stdint.h... no checking for unistd.h... no checking errno.h usability... no checking errno.h presence... yes configure: WARNING: errno.h: present but cannot be compiled configure: WARNING: errno.h: check for missing prerequisite headers? configure: WARNING: errno.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for errno.h... yes checking fcntl.h usability... no checking fcntl.h presence... yes configure: WARNING: fcntl.h: present but cannot be compiled configure: WARNING: fcntl.h: check for missing prerequisite headers? configure: WARNING: fcntl.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for fcntl.h... yes checking getopt.h usability... no checking getopt.h presence... yes configure: WARNING: getopt.h: present but cannot be compiled configure: WARNING: getopt.h: check for missing prerequisite headers? configure: WARNING: getopt.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for getopt.h... yes checking limits.h usability... no checking limits.h presence... yes configure: WARNING: limits.h: present but cannot be compiled configure: WARNING: limits.h: check for missing prerequisite headers? configure: WARNING: limits.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for limits.h... yes checking malloc.h usability... no checking malloc.h presence... yes configure: WARNING: malloc.h: present but cannot be compiled configure: WARNING: malloc.h: check for missing prerequisite headers? configure: WARNING: malloc.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for malloc.h... yes checking pwd.h usability... no checking pwd.h presence... yes configure: WARNING: pwd.h: present but cannot be compiled configure: WARNING: pwd.h: check for missing prerequisite headers? configure: WARNING: pwd.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for pwd.h... yes checking for unistd.h... (cached) no checking paths.h usability... no checking paths.h presence... yes configure: WARNING: paths.h: present but cannot be compiled configure: WARNING: paths.h: check for missing prerequisite headers? configure: WARNING: paths.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to bug-autoconf@gnu.org. ## configure: WARNING: ## ------------------------------------ ## checking for paths.h... yes checking for inet_addr in -lxnet... no checking for socket in -lsocket... no checking for gethostbyname in -lnsl... no checking for pthread_cancel in -lc_r... no checking for pthread_cancel in -lpthread... no checking for pthread_cancel in -lthread... no checking for pthread_cancel in -lpthreads... no Please install/update your POSIX threads (pthreads) library. Updates should be available from either your system vendor, or, for GNU/Linux systems, go to http://pauillac.inria.fr/~xleroy/linuxthreads/. GNU Pth can also be used if configured with --enable-pthread. !!! ERROR: net-im/licq-1.2.6 failed. !!! Function econf, Line 273, Exitcode 1 !!! econf failed
Could you please add the "emerge info" output?
Compiles fine for me, just doesn't run... 16:20:35: [ERR] Unable to load plugin (qt-gui): /usr/lib/licq/licq_qt-gui.so: undefined symbol: _ZNK12KApplication9classNameEv.
My notebook, runing gentoo 1.4 but other kernel and CFLAGS aborting with the same error messages. But here's the emerge info of the original system: # emerge info Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.21-rc2-nforce2 i686 AMD Athlon(tm) XP 1800+ GENTOO_MIRRORS=" ftp://ftp.easynet.nl/mirror/gentoo// http://ftp.easynet.nl/mirror/gentoo// http://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss apm avi crypt gpm jpeg libg++ mikmod mpeg ncurses spell xmms gtkhtml alsa gdbm berkdb slang readline arts bonobo svga tcltk guile tcpd pam libwww ssl perl python esd imlib gtk qt motif opengl cdr scanner 3dnow acpi also apache2 cups dvd encode evo gif -gnome gtk2 java kde ldap lirc mmx mozilla nls oggvorbis pcmcia pdflib png quicktime samba sdl sse tetex tiff truetype usb X xml xml2 xv zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -g0 -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays" CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -g0 -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Thomas, could you attach /var/tmp/portage/licq-1.2.6/work/licq-1.2.6/config.log so we can take a closer look at the config script errors
Created attachment 12069 [details] /var/tmp/portage/licq-1.2.6/work/licq-1.2.6/config.log log file config log generated in /var/tmp/portage/licq-1.2.6/work/licq-1.2.6/ during configure phase containing error messages about missing header files etc.
Funny. configure:4755: gcc -c -O3 -pipe 0 -mfpmath=sse -march=pentium3 -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -fPIC -DPIC -D_REENTRANT conftest.c >&5 gcc: 0: No such file or directory Somehow a single zero gets behind -pipe, no idea where that comes from. Will check the Makefile later to get an idea where the options are garbled.
It seems that the script attempts to strip the -g0 CFLAG, but does it wrongly.
Line 3670 and following of "configure": if test "$licqdaemon_use_debug" = "no"; then CXXFLAGS="`echo $CXXFLAGS | sed s/-g//`" CFLAGS="`echo $CFLAGS | sed s/-g//`" fi Think we've got it. But how to deal with it? Thomas R., perhaps set this one to LATER and report the problem to the LICQ Authors - I don't see much sense in patching around. Thomas S., please remove -g0 from your CFLAGS while compiling LICQ.
That could be a solution. If you don't want to patch (or sed). A good sed script is easy enough: sed "s/-g[^ ]*//" should allready work (mind the quotes)
Just wondering, btw, what's the sense of -g0? The info page says that -g1 produces minimal information. What's -g0 then? Unusable few information? :-)
It means no debugging information. This is equivalent with not specifying this flag at all. As portage automatically strips the binaries, it doesn't matter anyway (there is no real point in specifying -g0 )
hya! just wondered why i get the licq bugs again ... could someone who actually uses licq take this one please? (i'm sure there are some users in the dev-team too (or maybe kde team?) phosphan? pauldv? kde-team? regards P.S.: normally i don't mind but i already said please not to assign licq to me for some reasons ...
sorry, but i really got no time at the moment for this one .. reassigning
patrick, please patch and inform the licq upstream
Patched, didn't increase revision since this is a build time issue. Tried to report upstream using recommended bug tracker, noticed that the last entries there are three years old and mailed to jon@licq.org if there's a better place.
Update: I was just too dumb to use the bug tracker list correctly. The request ID on SF is 757787.
this stripping of '-g'* creates another problem with any (newer) CFLAGS that contains '-g' like -freduce-all-givs, it strips part of the flag result: configure:5669: i686-pc-linux-gnu-gcc -o conftest -march=pentium3 -m32 -mmmx -msse -maccumulate-outgoing-args -mfpmath=sse -momit-leaf-frame-pointer -O3 -pipe -fomit-frame-pointer -fmove-all-movables -freduce-all -funit-at-a-time -funswitch-loops -fweb -frename-registers -fno-inline-functions -fPIC -DPIC -D_REENTRANT -Wl,-O1 -Wl,-z,now conftest.c -lpthreads >&5 cc1: error: unrecognized command line option "-freduce-all" this stripping should never strip parts of a valid and functional flag
Created attachment 65181 [details] configure error log
Whow, this bug is more than two years old.
Assigning to the correct herd (don't want to mess with their package) - I suggest sed 's/\(^\| \)-g[^ ]*//g' as new sed expression. Or use flag-o-matic and dump this script line completely.
fixed in 1.3.2_rc1 quite a long history, indeed.