[xml/sgml-pkgs] Bug#721602: Bug#721602: libxslt1-dev: libxslt.pc should include -lm
Alberto Garcia
berto at igalia.com
Fri Sep 20 11:45:22 UTC 2013
On Fri, Sep 20, 2013 at 03:33:11PM +0800, Aron Xu wrote:
> > Here's how to reproduce it:
> >
> > $ echo 'main(){}' > test.c
> > $ gcc -o /dev/null test.c `pkg-config --cflags --libs libxslt`
> >
> > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'fmod'
> > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'pow'
> > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: error: undefined reference to 'floor'
> > collect2: error: ld returned 1 exit status
>
> But I got no problem running this test case, even passing
> -Wl,--no-add-needed does not make any difference.
Are you using the gold linker? With the latest binutils package you
have to add -fuse-ld=gold to the gcc command line.
Berto
More information about the debian-xml-sgml-pkgs
mailing list