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 753771 - libgxps-0.2.3.1/libgxps/gxps-brush.c:66: undefined reference to `hypot'
libgxps-0.2.3.1/libgxps/gxps-brush.c:66: undefined reference to `hypot'
Status: RESOLVED FIXED
Product: libgxps
Classification: Platform
Component: general
0.2.x
Other All
: Normal major
: ---
Assigned To: libgxps maintainers
libgxps maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-18 17:00 UTC by Olav Vitters
Modified: 2015-09-04 08:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
link libgxps with -lm (544 bytes, patch)
2015-08-20 07:34 UTC, Jason Crain
committed Details | Review

Description Olav Vitters 2015-08-18 17:00:55 UTC
Build error

Build log:
http://pkgsubmit.mageia.org/uploads/failure/cauldron/core/release/20150814155233.ovitters.valstar.1400/log/libgxps-0.2.3.1-1.mga6/build.0.20150814155245.log


make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libgxps-0.2.3.1/libgxps'
  CCLD     libgxps.la
.libs/libgxps_la-gxps-brush.o: In function `gxps_transform_hypot':
/home/iurt/rpmbuild/BUILD/libgxps-0.2.3.1/libgxps/gxps-brush.c:66: undefined reference to `hypot'
/home/iurt/rpmbuild/BUILD/libgxps-0.2.3.1/libgxps/gxps-brush.c:66: undefined reference to `hypot'
collect2: error: ld returned 1 exit status
Makefile:559: recipe for target 'libgxps.la' failed


Mageia builds with --as-needed.
Comment 1 Jason Crain 2015-08-20 07:34:53 UTC
Created attachment 309679 [details] [review]
link libgxps with -lm
Comment 2 Olav Vitters 2015-08-20 20:18:15 UTC
That patch fixed the build for me :-D Thanks!!
Comment 3 Carlos Garcia Campos 2015-09-04 08:03:21 UTC
Review of attachment 309679 [details] [review]:

Pushed, thanks!
Comment 4 Carlos Garcia Campos 2015-09-04 08:03:51 UTC
I'll make another follow up release with this build fix.