[PLUG] Compiling loki_setupdb on CentOS 5...

David Fleck david.fleck at mchsi.com
Tue Nov 25 13:05:26 UTC 2008


On Mon, 24 Nov 2008, someone wrote:
> Apparently, linking xml2-common to xml-common isn't enough...
> 
> [root at eagle loki_setupdb]# make all
> make: Nothing to be done for `all'.
> [root at eagle loki_setupdb]# make setupdb
> gcc -O2 -fsigned-char -Wall -g -I. -D_REENTRANT -I/usr/include/libxml2  
> -DSETUPDB_VERSION_MAJOR=1 -DSETUPDB_VERSION_MINOR=6 -o setupdb  
> register.c x86/libsetupdb.a -L/usr/local/lib /usr/lib/libxml.a  
> -Wl,-Bstatic -lz -Wl,-Bdynamic
> /usr/lib/libxml.a(xpath.o): In function `xmlXPathStringEvalNumber':
> (.text+0x2e9c): undefined reference to `pow'
...
> collect2: ld returned 1 exit status
> make: *** [setupdb] Error 1

You probably need to include the math library ( -lm ) in the link 
arguments.

--
David Fleck
david.fleck at mchsi.com




More information about the PLUG mailing list