| Summary: | ERROR: www-client/httrack-3.33 failed. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexey Maximov <amax> |
| Component: | Current packages | Assignee: | Marcelo Goes (RETIRED) <vanquirius> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | flash3001, int.teo, sparc |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Makefile.in.patch
Makefile.in.patch httrack-3.33.ebuild.patch httrack-3.40.ebuild |
||
|
Description
Alexey Maximov
2005-04-06 20:19:24 UTC
same error here: htsserver.h:148: warning: 'concat' defined but not used htsserver.h:159: warning: 'fexist' defined but not used htslib.h:238: warning: 'linputsoc_t' declared `static' but never defined htsserver.h:215: warning: 'unescapeini' defined but not used htslib.h:405: warning: 'strcmpnocase' defined but not used htslib.h:446: warning: 'is_hypertext_mime' defined but not used htslib.h:459: warning: 'may_be_hypertext_mime' defined but not used htslib.h:472: warning: 'compare_mime' defined but not used htscore.h:199: warning: 'cache_writable' defined but not used htscore.h:203: warning: 'cache_readable' defined but not used /bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer -L/usr/lib -o htsserver htsserver.o htsweb.o -lpthread -lhttrack -lz i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -pipe -fomit-frame-pointer -o htsserver htsserver.o htsweb.o -L/usr/lib /usr/lib/libhttrack.so -lpthread -ldl -lz htsweb.o(.text+0x1a1d): In function `webhttrack_main': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:271: undefined reference to `hts_newthread' htsweb.o(.text+0x1c85): In function `back_launch_cmd': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:301: undefined reference to `htsthread_wait_n' htsweb.o(.text+0x2244): In function `main': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:203: undefined reference to `htsthread_wait' collect2: ld returned 1 exit status make[2]: *** [htsserver] Error 1 make[2]: Leaving directory `/var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/httrack-3.33/work/httrack-3.33.15' make: *** [all] Error 2 !!! ERROR: www-client/httrack-3.33 failed. !!! Function src_compile, Line 19, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message. emerge info: Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 AMD Sempron(tm) 2600+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 27 2005, 00:22:37)] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apm avi berkdb bitmap-fonts cdr crypt cups curl emboss encode fam flac foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib java jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly nvidia oggvorbis opengl oss pdflib perl png ppds python quicktime readline scanner sdl slang spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode usb xml2 xv zlib linguas_it" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS I also receive the same error: htscore.h:203: warning: 'cache_readable' defined but not used /bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc -O2 -march=pentium4 -fomit-frame-pointer -L/usr/lib -o htsserver htsserver.o htsweb.o -lpthread -lhttrack -lz i686-pc-linux-gnu-gcc -O2 -march=pentium4 -fomit-frame-pointer -o htsserver htsserver.o htsweb.o -L/usr/lib /usr/lib/libhttrack.so -lpthread -ldl -lz htsweb.o(.text+0x1389): In function `webhttrack_main': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:271: undefined reference to `hts_newthread' htsweb.o(.text+0x15e9): In function `back_launch_cmd': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:301: undefined reference to `htsthread_wait_n' htsweb.o(.text+0x1a53): In function `main': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:203: undefined reference to `htsthread_wait' collect2: ld returned 1 exit status make[2]: *** [htsserver] Error 1 make[2]: Leaving directory `/var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/httrack-3.33/work/httrack-3.33.15' make: *** [all] Error 2 !!! ERROR: www-client/httrack-3.33 failed. !!! Function src_compile, Line 19, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message. I'll attempt to debug further. Okay after some debugging I have found the problem, but not quite a solution. The problem lies in the -L/usr/lib being passed to libtool. This causes the current build to attempt to link against the already installed httrack, which is obviously missing important functions, hense all the linking errors. Temporary solution is to unmerge your current version of httrack and then emerge the latest. That works since there is no current httrack to link against and libtool uses the src/.libs directory to link against. Perm solution would involve figuring out how that -L/usr/lib got into the libtool argument and remove it. Its late here so I'll tackle this one later. Created attachment 61716 [details, diff]
Makefile.in.patch
Created attachment 61718 [details, diff]
Makefile.in.patch
Created attachment 61720 [details, diff]
httrack-3.33.ebuild.patch
With both those patches you can fix this problem. I tried to get the LDFLAG to
change automaticaly by doing the necessary changes in Makefile.am but I always
get some error messages that I cannot decipher :-) I'm probably not that good
with automake/autoconf but it works just fine this way!
Ok, I'm trying to emerge last version, but error as similar as yours appears: htsweb.o: In function `webhttrack_main': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:271: undefined reference to `hts_newthread' htsweb.o: In function `webhttrack_runmain': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:301: undefined reference to `htsthread_wait_n' htsweb.o: In function `main': /var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src/htsweb.c:203: undefined reference to `htsthread_wait' collect2: ld returned 1 exit status make[2]: *** [htsserver] Error 1 make[2]: Leaving directory `/var/tmp/portage/httrack-3.33/work/httrack-3.33.15/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/httrack-3.33/work/httrack-3.33.15' make: *** [all] Error 2 !!! ERROR: www-client/httrack-3.33 failed. I proceeded with: * emerge -C httrack * esync (emerge sync) * etc-update * env-update && source /etc/profile * cleaned ccache * emerge -av httrack My `emerge info` at <a href="http://sssupa.sssup.it/~testina/gentoo_einfo.txt" target="_new">this link</a> Created attachment 78837 [details]
httrack-3.40.ebuild
I have tried httrack 3.40 and it compiles successfully!! I have added a dep in the ebuild
Hi there, I just bumped httrack to 3.40 for bug 123183. Please reopen this bug if it still won't compile. Fabio: the zlib dep isn't really necessary, since it is part of system already. Cheers |