After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 664439 - Missing to link libm on the tools
Missing to link libm on the tools
Status: RESOLVED FIXED
Product: libgxps
Classification: Platform
Component: general
0.2.x
Other Linux
: Normal normal
: ---
Assigned To: libgxps maintainers
libgxps maintainers
Depends on:
Blocks:
 
 
Reported: 2011-11-20 21:50 UTC by Dominique Leuenberger
Modified: 2011-11-22 09:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add missing libm linking (942 bytes, patch)
2011-11-20 21:51 UTC, Dominique Leuenberger
none Details | Review
Thanks for the pointer! Much better indeed. Please see a 'rewrite' of the patch. (1.51 KB, patch)
2011-11-21 07:53 UTC, Dominique Leuenberger
committed Details | Review

Description Dominique Leuenberger 2011-11-20 21:50:37 UTC
While building libgxps on openSUSE 12.1 / Factory, this build error appears:


  CCLD   xpstops
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: ./.libs/libgxpstools.a(libgxpstools_la-gxps-converter.o): undefined reference to symbol 'ceil@@GLIBC_2.2.5'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [xpstopng] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: ./.libs/libgxpstools.a(libgxpstools_la-gxps-converter.o): undefined reference to symbol 'ceil@@GLIBC_2.2.5'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: ./.libs/libgxpstools.a(libgxpstools_la-gxps-converter.o): undefined reference to symbol 'ceil@@GLIBC_2.2.5'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [xpstojpeg] Error 1
make[2]: *** [xpstopdf] Error 1
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: ./.libs/libgxpstools.a(libgxpstools_la-gxps-converter.o): undefined reference to symbol 'ceil@@GLIBC_2.2.5'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [xpstosvg] Error 1
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: ./.libs/libgxpstools.a(libgxpstools_la-gxps-converter.o): undefined reference to symbol 'ceil@@GLIBC_2.2.5'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [xpstops] Error 1
make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/libgxps-0.2.0/tools'
Comment 1 Dominique Leuenberger 2011-11-20 21:51:09 UTC
Created attachment 201776 [details] [review]
Add missing libm linking
Comment 2 Christian Persch 2011-11-20 22:48:51 UTC
I think you should use LT_LIB_M in configure.ac and then $(LIBM) in the Makefile.am .
Comment 3 Dominique Leuenberger 2011-11-21 07:53:32 UTC
Created attachment 201788 [details] [review]
Thanks for the pointer! Much better indeed. Please see a 'rewrite' of the patch.
Comment 4 Carlos Garcia Campos 2011-11-22 09:34:43 UTC
Review of attachment 201788 [details] [review]:

Pushed! thank you very much.
Comment 5 Carlos Garcia Campos 2011-11-22 09:35:39 UTC
(In reply to comment #2)
> I think you should use LT_LIB_M in configure.ac and then $(LIBM) in the
> Makefile.am .

Thanks for the quick review :-)