Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54756 - httrack 3.32.03 ebuild fails on undefined reference to `hts_getcategories'
Summary: httrack 3.32.03 ebuild fails on undefined reference to `hts_getcategories'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: David Holm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-22 09:25 UTC by Joe Roberts
Modified: 2004-08-19 21:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Roberts 2004-06-22 09:25:43 UTC
ACCEPT_KEYWORDS="~x86"

As part of emerge --update world, which would upgrade from httrack ver 3.30, which is already installed:

gcc -shared  htscore.lo htsparse.lo htsback.lo htscache.lo htscatchurl.lo htsfilters.lo htsftp.lo htshash.lo htsinthash.lo htshelp.lo htsjava.lo htslib.lo htscoremain.lo htsname.lo htsrobots.lo htstools.lo htswizard.lo htsalias.lo htsthread.lo htsindex.lo htsbauth.lo htsmd5.lo htszlib.lo htsnostatic.lo htswrap.lo htsmodules.lo md5.lo ioapi.lo mztools.lo unzip.lo zip.lo  -L/usr/lib -lpthread -ldl -lz  -Wl,-soname -Wl,libhttrack.so.1 -o .libs/libhttrack.so.1.0.32
htsserver.o(.text+0x52dd): In function `smallserver':
/var/tmp/portage/httrack-3.32.2/work/httrack-3.32.03/src/htsserver.c:906: undefined reference to `hts_getcategories'
htsserver.o(.text+0x52f0):/var/tmp/portage/httrack-3.32.2/work/httrack-3.32.03/src/htsserver.c:907: undefined reference to `hts_getcategories'
collect2: ld returned 1 exit status
make[2]: *** [htsserver] Error 1
make[2]: *** Waiting for unfinished jobs....
(cd .libs && rm -f libhttrack.so.1 && ln -s libhttrack.so.1.0.32 libhttrack.so.1)
(cd .libs && rm -f libhttrack.so && ln -s libhttrack.so.1.0.32 libhttrack.so)
ar cru .libs/libhttrack.a  htscore.o htsparse.o htsback.o htscache.o htscatchurl.o htsfilters.o htsftp.o htshash.o htsinthash.o htshelp.o htsjava.o htslib.o htscoremain.o htsname.o htsrobots.o htstools.o htswizard.o htsalias.o htsthread.o htsindex.o htsbauth.o htsmd5.o htszlib.o htsnostatic.o htswrap.o htsmodules.o md5.o ioapi.o mztools.o unzip.o zip.o 
ranlib .libs/libhttrack.a
creating libhttrack.la
(cd .libs && rm -f libhttrack.la && ln -s ../libhttrack.la libhttrack.la)
make[2]: Leaving directory `/var/tmp/portage/httrack-3.32.2/work/httrack-3.32.03/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/httrack-3.32.2/work/httrack-3.32.03'
make: *** [all] Error 2

!!! ERROR: net-www/httrack-3.32.2 failed.
!!! Function src_compile, Line 19, Exitcode 2
!!! make failed

-----------

A grep in the work directory on hts_getcategories returns:

htsserver.c:                            char* profiles = hts_getcategories(rpath, 0);
htsserver.c:                            char* categ = hts_getcategories(rpath,1 );
Binary file htsserver.o matches
htstools.c:HTSEXT_API char* hts_getcategories(char* path, int type) {
Binary file htstools.lo matches
Binary file htstools.o matches
httrack-library.h:HTSEXT_API char* hts_getcategories(char* path, int type);
Comment 1 scott 2004-06-25 11:26:29 UTC
I was able to get a compile by unmerging the older version of httrack.
Comment 2 Sven Wegener gentoo-dev 2004-06-25 21:49:41 UTC
I ran into this problem myself. Package is not parallel build capable, added -j1.

Fixed in CVS. Thanks for reporting.
Comment 3 Matthew Schulkind 2004-08-19 21:10:32 UTC
I still had to remove the old httrack also before I could get this to work. 

This does not seem to have to do with parallel building. I'd wager this has to do with an include path problem with an old header sticking around.