Bug 557357 - linking problem, missing reference to libm
linking problem, missing reference to libm
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
trunk
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2008-10-22 06:39 UTC by Götz Waschk
Modified: 2008-10-22 12:11 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
fix linking (827 bytes, patch)
2008-10-22 06:42 UTC, Götz Waschk
committed Details | Diff | Review

Description Götz Waschk 2008-10-22 06:39:46 UTC
This happens on Mandriva with the default linker flags containing --no-undefined and --as-needed:

/bin/sh ../libtool --tag=CC   --mode=link gcc  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -no-undefined -Wl,--as-needed -Wl,--no-undefined -o libmetacity-private.la -rpath /usr/lib libmetacity_private_la-boxes.lo libmetacity_private_la-gradient.lo libmetacity_private_la-util.lo libmetacity_private_la-preview-widget.lo libmetacity_private_la-theme-parser.lo libmetacity_private_la-theme.lo -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lfreetype -lz -lfontconfig -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgconf-2 -lglib-2.0 -lstartup-notification-1 -lXcomposite -lXrender -lX11 -lXdamage -lXfixes -lXcursor   -lXext -lXrandr -lXext  -L/usr/lib  -lSM -lICE -lX11 -lXext -lXinerama  
gcc -shared -Wl,--as-needed  .libs/libmetacity_private_la-boxes.o .libs/libmetacity_private_la-gradient.o .libs/libmetacity_private_la-util.o .libs/libmetacity_private_la-preview-widget.o .libs/libmetacity_private_la-theme-parser.o .libs/libmetacity_private_la-theme.o  /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangocairo-1.0.so /usr/lib/libcairo.so /usr/lib/libfreetype.so -lz /usr/lib/libfontconfig.so /usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgconf-2.so /usr/lib/libglib-2.0.so /usr/lib/libstartup-notification-1.so /usr/lib/libXcomposite.so /usr/lib/libXrender.so /usr/lib/libXdamage.so /usr/lib/libXfixes.so /usr/lib/libXcursor.so /usr/lib/libXrandr.so -L/usr/lib /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libX11.so /usr/lib/libXext.so /usr/lib/libXinerama.so  -march=i586 -mtune=generic -Wl,--as-needed -Wl,--no-undefined -Wl,-soname -Wl,libmetacity-private.so.0 -o .libs/libmetacity-private.so.0.0.0
.libs/libmetacity_private_la-preview-widget.o: In function `meta_preview_get_clip_region':
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:523: undefined reference to `sqrt'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:523: undefined reference to `floor'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:541: undefined reference to `sqrt'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:541: undefined reference to `floor'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:559: undefined reference to `sqrt'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:559: undefined reference to `floor'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:577: undefined reference to `sqrt'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:577: undefined reference to `floor'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:536: undefined reference to `sqrt'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:554: undefined reference to `sqrt'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:572: undefined reference to `sqrt'
/home/goetz/svn/metacity/BUILD/metacity-2.25.2/src/ui/preview-widget.c:517: undefined reference to `sqrt'
Comment 1 Götz Waschk 2008-10-22 06:42:47 UTC
Created attachment 121088 [details] [review]
fix linking
Comment 2 Thomas Thurman 2008-10-22 12:11:12 UTC
Many thanks-- checked in.

http://svn.gnome.org/viewvc/metacity?rev=3984&view=rev

Note You need to log in before you can comment on or make changes to this bug.