[parisc-linux] $$divU undefined reference

Matthew Wilcox willy@debian.org
Tue, 12 Feb 2002 16:26:36 +0000


On Tue, Feb 12, 2002 at 05:23:24PM +0100, Arnaud.ATOCH@oecd.org wrote:
> I'm trying to compile sqlrelay http://www.firstworks.com/sqlrelay on a 0.9.3
> HP 712 box with 2.4.16 kernel and deb packages up-to-date.
> 
> I got the following linking error message :
> 
> ecodev01:/tmp/rudiments-0.23/src# ld -G -o ../lib/librudiments.so.0.23
> daemonprocess.o signalclasses.o commandline.o server.o client.o
> semaphoreset.o sharedmemory.o randomnumber.o regularexpression.o text.o
> datetime.o permissions.o -lc -lm -ll
> server.o: In function `std::__default_alloc_template<true,
> 0>::_S_chunk_alloc(unsigned, int&)':
> server.o(.gnu.linkonce.t._ZNSt24__default_alloc_templateILb1ELi0EE14_S_chunk
> _allocEjRi+0xa0): undefined reference to `$$divU'

Don't use `ld' to link shared objects.  Link using gcc (if it's c code) or
g++ (if c++ code).  the compiler driver knows what extra libs to link in.

-- 
Revolutions do not require corporate support.