Hi!

I'm having some troubles linking the current main-branch.

The dependency information that is automatically created by automake
during the build of a development version can only be generated with gcc.

If you do a make distdir, automake merges the dependency info into the
Makefile.in's, so I tried to use those for compiling with AIX xlC. (The
script that copies this files into the CVS tree is attached below.)

Unfortunately this doesn't solve the problem.
xlC and the AIX linker still have problems putting the binaries together:

Making all in htfuzzy
/bin/sh ../libtool --mode=link xlC  -O -qlanglvl=compat -L/usr/local/lib -o htfuzzy  
htfuzzy.o libfuzzy.la ../htcommon/libcommon.la             ../htlib/libht.la           
    ../db/dist/libdb.a -lz 
xlC -O -qlanglvl=compat -L/usr/local/lib -o .libs/htfuzzy htfuzzy.o -L.libs -lfuzzy 
-lz -L../htcommon/.libs -lcommon -lz -L../htlib/.libs -lht -lz ../db/dist/libdb.a -lz 
-b nolibpath -b libpath:/opt/www/lib:/usr/lib:/lib
ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: .strcmp
ld: 0711-224 WARNING: Duplicate symbol: strcmp
ld: 0711-224 WARNING: Duplicate symbol: .main
ld: 0711-224 WARNING: Duplicate symbol: .usage()
ld: 0711-224 WARNING: Duplicate symbol: .reportError(char*)
ld: 0711-224 WARNING: Duplicate symbol: debug
ld: 0711-224 WARNING: Duplicate symbol: p_xrcfg
ld: 0711-224 WARNING: Duplicate symbol: p_xrc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: .WordList::~WordList()
ld: 0711-317 ERROR: Undefined symbol: .List::~List()
ld: 0711-317 ERROR: Undefined symbol: .String::~String()
ld: 0711-317 ERROR: Undefined symbol: Virtual table for class "String": first 
non-inline virtual function in "String" is not defined.
ld: 0711-317 ERROR: Undefined symbol: .String::String(char*)
ld: 0711-317 ERROR: Undefined symbol: .List::List()
ld: 0711-317 ERROR: Undefined symbol: .Soundex::Soundex()
ld: 0711-317 ERROR: Undefined symbol: .Metaphone::Metaphone()
ld: 0711-317 ERROR: Undefined symbol: .Endings::Endings()
ld: 0711-317 ERROR: Undefined symbol: .Synonym::Synonym()
ld: 0711-317 ERROR: Undefined symbol: .WordList::WordList()
ld: 0711-317 ERROR: Undefined symbol: .Configuration::operator[](char*)
ld: 0711-317 ERROR: Undefined symbol: .String::operator=(const String&)
ld: 0711-317 ERROR: Undefined symbol: .String::operator=(char*)
gmake: *** [htfuzzy] Error 8
make: The error code from the last command is 1.

You need to put htfuzzy.o to the end of the commandline for this to work. :(

But it's not over yet... I couldn't find the correct order for linking
htdig and the other binaries...
Any hints?

Cheers,
         Leo

Btw.: Sorry about the missing log-entry. I got the list of files to check
in via a pipe and xargs, so the editor couldn't start and the confirmation
query couldn't read from tty...

---------- begin: makedep.sh ----------
#!/bin/sh

# you have to do a
# make distdir
# first!

eval `grep -e "^VERSION *=" -e "^PACKAGE *=" -e "top_srcdir *=" Makefile \
        | sed -e 's/ *= */=/'`

CWD=`pwd`

cd $PACKAGE-$VERSION

find . -name "Makefile.in" | cut -b3- | \
  while read f; do
    echo cp $f $top_srcdir/$f
    cp $f $top_srcdir/$f
  done

cd $CDW
---------- end: makedep.sh ----------

-----------------------------------------------------------------------
Alexander (Leo) Bergolth                          [EMAIL PROTECTED]
WU-Wien - Zentrum fuer Informatikdienste       http://leo.wu-wien.ac.at
Info Center
Linux - because reboots are for hardware changes




------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to