"J. op den Brouw" wrote:
> 
> Hi, when compiling the Berkeley DB, I get these:
> 
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/include/string.h:24:
> warning: conflicting types for built-in function `memcmp'
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/include/string.h:28:
> warning: conflicting types for built-in function `strcpy'
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/include/string.h:31:
> warning: conflicting types for built-in function `strcmp'
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/include/string.h:76:
> warning: conflicting types for built-in function `memcpy'
> 
> Is this serious, or...

Could be, depending on what caused this warning.  If it is related
to pointer representation on the HP, this could cause a segfault.
If it is only a matter of declaring the function parameters (const vs.
non-const) this should not be a problem.

 
> And I get this....
> 
>         gcc -o htfuzzy -L../htlib -L../htcommon -L../db/dist -L/usr/lib
> Endings.o EndingsDB.o Exact.o  Fuzzy.o Metaphone.o Soundex.o
> SuffixEntry.o Synonym.o htfuzzy.o  Substring.o Prefix.o
> ./htcommon/libcommon.a  ../htlib/libht.a  ../db/dist/libdb.a
> collect2: ld returned 1 exit status
> /usr/ccs/bin/ld: Unsatisfied symbols:
>    istream::getline(char *, int, char)(code)
>    fstreambase::ios virtual table(data)
>    cout (data)
>    istream::ios virtual table(data)
>    ostream::write(char const *, int)(code)
>    ostream::flush(void)(code)
>    ios virtual table(data)
>    ostream::operator<<(int)(code)
>    filebuf::~filebuf(void)(code)
>    ostream::operator<<(char)(code)
>    cerr (data)
>    fstreambase::close(void)(code)
>    endl(ostream &)  (code)
>    fstreambase::fstreambase(int, char const *, int, int)(code)
>    ifstream::ios virtual table(data)
>    ostream::operator<<(void const *)(code)
>    ifstream::~ifstream(void)(code)
>    ostream::operator<<(char const *)(code)
> *** Error exit code 1
> 

You're linking with gcc, not g++.
By default, gcc does not include libgpp in the list of libraries to
link against when calling ld.  Using g++ (or manually adding the
C++ libraries with -L/-l) should solve this.


hth,
  Torsten

-- 
InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH
Waldhofstra�e 14                            Tel: +49-4101-403605
D-25474 Ellerbek                            Fax: +49-4101-403606
E-Mail: [EMAIL PROTECTED]            Internet: http://www.inwise.de

------------------------------------
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