Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88223 - ERROR: www-client/httrack-3.33 failed.
Summary: ERROR: www-client/httrack-3.33 failed.
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-06 20:19 UTC by Alexey Maximov
Modified: 2006-02-18 19:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Makefile.in.patch (Makefile.in.patch,352 bytes, patch)
2005-06-22 06:10 UTC, Theofilos Intzoglou
Details | Diff
Makefile.in.patch (Makefile.in.patch,360 bytes, patch)
2005-06-22 06:27 UTC, Theofilos Intzoglou
Details | Diff
httrack-3.33.ebuild.patch (httrack-3.33.ebuild.patch,633 bytes, patch)
2005-06-22 06:30 UTC, Theofilos Intzoglou
Details | Diff
httrack-3.40.ebuild (httrack-3.40.ebuild,750 bytes, text/plain)
2006-02-03 16:21 UTC, Fabio Rossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Maximov 2005-04-06 20:19:24 UTC
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -march=i686 -O2 -pipe -fomit-frame-pointer  -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -L/usr/lib -o httrack  httrack.o -lpthread -lhttrack -lz
i686-pc-linux-gnu-gcc -march=i686 -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -o httrack httrack.o  -L/usr/lib /usr/lib/libhttrack.so -lpthread -ldl -lz
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O -g3 -Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wnested-externs -D_REENTRANT -DINET6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DDATADIR=\""/usr/share"\" -DLIBDIR=\""/usr/lib"\"  -I/usr/include  -march=i686 -O2 -pipe -fomit-frame-pointer -MT htsserver.o -MD -MP -MF ".deps/htsserver.Tpo" \
  -c -o htsserver.o `test -f 'htsserver.c' || echo './'`htsserver.c; \
then mv ".deps/htsserver.Tpo" ".deps/htsserver.Po"; \
else rm -f ".deps/htsserver.Tpo"; exit 1; \
fi
htsserver.c: In function `smallserver':
htsserver.c:502: warning: unused variable `adrw'
htsserver.c:598: warning: unused variable `adrpath'
htsserver.c:598: warning: unused variable `adrprojname'
htsserver.c: In function `htslang_init':
htsserver.c:1280: warning: unused variable `i'
htsserver.c: In function `LANG_INIT':
htsserver.c:1526: warning: unused variable `test'
htsserver.c: In function `LANG_SEARCH':
htsserver.c:1544: warning: unused variable `adr'
htsserver.c: In function `LANG_LIST':
htsserver.c:1562: warning: unused variable `found'
htsserver.c: At top level:
htslib.h:405: warning: 'strcmpnocase' defined but not used
htsstrings.h:61: warning: 'StringBuffN_' defined but not used
htsserver.c:1523: warning: 'LANG_INIT' defined but not used
htsserver.c:1539: warning: 'LANG_SEARCH' defined but not used
htsserver.c:1674: warning: 'check_readinput' defined but not used
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O -g3 -Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wnested-externs -D_REENTRANT -DINET6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DDATADIR=\""/usr/share"\" -DLIBDIR=\""/usr/lib"\"  -I/usr/include  -march=i686 -O2 -pipe -fomit-frame-pointer -MT htsweb.o -MD -MP -MF ".deps/htsweb.Tpo" \
  -c -o htsweb.o `test -f 'htsweb.c' || echo './'`htsweb.c; \
then mv ".deps/htsweb.Tpo" ".deps/htsweb.Po"; \
else rm -f ".deps/htsweb.Tpo"; exit 1; \
fi
In file included from htsweb.c:64:
htsmd5.c: In function `md5sum32':
htsmd5.c:90: warning: unused variable `md5digest_'
htsweb.c: At top level:
htsstrings.h:61: warning: 'StringBuffN_' defined but not used
htsstrings.h:90: warning: 'StringAcquire' defined but not used
htsstrings.h:116: warning: 'unescapehttp' defined but not used
htsserver.h:97: warning: 'htslang_load' declared `static' but never defined
htsserver.h:98: warning: 'conv_printf' declared `static' but never defined
htsserver.h:99: warning: 'LANG_DELETE' declared `static' but never defined
htsserver.h:100: warning: 'LANG_INIT' declared `static' but never defined
htsserver.h:101: warning: 'LANG_T' declared `static' but never defined
htsserver.h:102: warning: 'QLANG_T' declared `static' but never defined
htsserver.h:103: warning: 'LANGSEL' declared `static' but never defined
htsserver.h:104: warning: 'LANGINTKEY' declared `static' but never defined
htsserver.h:105: warning: 'LANG_SEARCH' declared `static' but never defined
htsserver.h:106: warning: 'LANG_LIST' declared `static' but never defined
htsserver.h:121: warning: 'gethomedir' defined but not used
htsserver.h:128: warning: 'linput_cpp' defined but not used
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  -march=i686 -O2 -pipe -fomit-frame-pointer  -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -L/usr/lib -o htsserver  htsserver.o htsweb.o -lpthread  -lhttrack -lz
i686-pc-linux-gnu-gcc -march=i686 -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -o htsserver htsserver.o htsweb.o  -L/usr/lib /usr/lib/libhttrack.so -lpthread -ldl -lz
htsweb.o(.text+0x140b): 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+0x1697): 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+0x1b4d): 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






amazing ~ # 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.4-cko2 i686)
=================================================================
System uname: 2.6.11.4-cko2 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 17 2005, 16:36:13)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.9.5, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6
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="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig distlocks prelink sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.CP1251"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acl acpi acpi4linux activefilter alsa apm arts artswrappersuid audiofile avi bash-completion bitmap-fonts bluetooth bonobo caps cdda cddb cdio cdparanoia cdr crypt cscope cups curl dga directfb dpms dts dv dvb dvd dvdr dvdread emboss encode exif fam fbcon ffmpeg fftw flac foomaticdb freetype ftp gd ggi gif gimp glitz gnokii gnutls gphoto2 gpm gstreamer gtk2 guile hal howl iconv icq icu ieee1394 imagemagick imap imlib innodb irmc jack jack-tmpfs joystick jpeg jpeg2k kde kdeenablefinal kdepim kerberos ladcca ladspa lcd lcms ldap libcaca libg++ libgda libvisual libwww lirc live lm_sensors lmtp logitech-mouse lua lufsusermount lzo mad maildir mailwrapper matroska mbox mikmod mjpeg mmx mng mono mozdevelop mozilla mozsvg mp3 mpeg mppe-mppc msn mythtv nas ncurses network nntp no-old-linux nptl nptlonly ntlm oav odbc ogg oggvorbis openal opengl opie pam pcmcia pcre pda pdflib pic plotutils png portaudio povray pvm pwdb qt quicktime quotas rdesktop readline real rtc samba sasl sblive scanner sdl silc skey slang slp smartcard sndfile socks5 speex spell ssl stream svg svga svgz symlink sysfs tcltk tcpd tetex theora threads tidy tiff transcode truetype truetype-fonts usb utf8 v4l v4l2 vcd vcdimager vidix vlm wifi winbind wmf wxwindows xanim xine xml xml2 xrandr xv xvid yv12 zeroconf zlib linguas_ru linguas_uk"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
Comment 1 fctk86 2005-04-10 10:38:04 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
Comment 2 Ray Russell Reese III (RETIRED) gentoo-dev 2005-04-11 21:35:50 UTC
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.
Comment 3 Ray Russell Reese III (RETIRED) gentoo-dev 2005-04-11 21:42:07 UTC
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. 

Comment 4 Theofilos Intzoglou 2005-06-22 06:10:25 UTC
Created attachment 61716 [details, diff]
Makefile.in.patch
Comment 5 Theofilos Intzoglou 2005-06-22 06:27:12 UTC
Created attachment 61718 [details, diff]
Makefile.in.patch
Comment 6 Theofilos Intzoglou 2005-06-22 06:30:40 UTC
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!
Comment 7 Emiliano Vavassori 2005-07-19 08:05:38 UTC
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>
Comment 8 Fabio Rossi 2006-02-03 16:21:42 UTC
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
Comment 9 Marcelo Goes (RETIRED) gentoo-dev 2006-02-18 19:05:07 UTC
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