GNOME Bugzilla – Bug 492370
monitor name conflict with libc on solaris10.diff
Last modified: 2007-11-01 15:55:17 UTC
Building gthumb on Solaris 10u4 fails due to a name conflict with the global symbol monitor in src/main.h, etc. and monitor in libc: pkgbuild: /opt/SunStudio12/SUNWspro/bin/cc -i -xO4 -xspace -xstrconst -xpentium -mr -xregs=no%frameptr -g -xdebugformat=stabs -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect -o .libs/gthumb GNOME_GThumb-stubs.o GNOME_GThumb-skels.o GNOME_GThumb-common.o bookmark-list.o catalog-list.o dlg-bookmarks.o dlg-brightness-contrast.o dlg-catalog.o dlg-categories.o dlg-change-date.o dlg-color-balance.o dlg-comment.o dlg-convert.o dlg-crop.o dlg-file-utils.o dlg-hue-saturation.o dlg-image-prop.o dlg-open-with.o dlg-posterize.o dlg-preferences.o dlg-redeye-removal.o dlg-rename-series.o dlg-reset-exif.o dlg-scale-image.o dlg-scale-series.o dlg-write-to-cd.o gs-fade.o gth-application.o gth-batch-op.o gth-browser.o gth-browser-actions-callbacks.o gth-category-selection-dialog.o gth-dir-list.o gth-exif-data-viewer.o gth-filter-bar.o gth-folder-selection-dialog.o gth-fullscreen.o gth-fullscreen-actions-callbacks.o gth-image-history.o gth-image-selector.o gth-location.o gth-monitor.o gth-viewer.o gth-viewer-actions-callbacks.o gth-window.o gth-window-actions-callbacks.o gth-window-utils.o gthumb-preloader.o gtkcellrendererthreestates.o main.o totem-scrsaver.o rotation-utils.o -L/usr/sfw/lib ../libgthumb/jpegutils/.libs/libgthumb-jpegutils.a ../libgthumb/.libs/libgthumb.so -L/usr/openwin/sfw/lib -lgnomeui-2 -lSM -lICE -lsocket -lnsl -lbonoboui-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lgailutil -lbonobo-2 -lbonobo-activation -lgnomevfs-2 -lgconf-2 -lORBit-2 -lgthread-2.0 -lpthread -lthread -lrt -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -lXi -latk-1.0 -lgdk_pixbuf-2.0 -lmlib -lpangocairo-1.0 -lfontconfig -lXdamage -lpango-1.0 -lcairo -lXfixes -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -ljpeg -ltiff -lz -lXrender -lXext -lgphoto2 -lgphoto2_port -lexif -lm -lX11 -lXtst -R/usr/sfw/lib -R/usr/openwin/sfw/lib pkgbuild: ld: warning: symbol `monitor' has differing types: pkgbuild: (file main.o type=OBJT; file /lib/libc.so type=FUNC); pkgbuild: main.o definition taken pkgbuild: ld: warning: symbol `monitor' has differing types: pkgbuild: (file main.o type=OBJT; file /lib/libc.so type=FUNC); pkgbuild: Undefined first referenced pkgbuild: symbol in file pkgbuild: mkdtemp ../libgthumb/.libs/libgthumb.so pkgbuild: ld: fatal: Symbol referencing errors. No output written to .libs/gthumb pkgbuild: make[3]: *** [gthumb] Error 1 pkgbuild: make[3]: Leaving directory `/h/goanna/2/os_5.10/cbe/BUILD/SUNWgnome-img-organizer-2.20.1/gthumb-2.10.7/src' pkgbuild: make[2]: *** [all-recursive] Error 1 pkgbuild: make[2]: Leaving directory `/h/goanna/2/os_5.10/cbe/BUILD/SUNWgnome-img-organizer-2.20.1/gthumb-2.10.7/src' pkgbuild: make[1]: *** [all-recursive] Error 1 pkgbuild: make[1]: Leaving directory `/h/goanna/2/os_5.10/cbe/BUILD/SUNWgnome-img-organizer-2.20.1/gthumb-2.10.7' pkgbuild: make: *** [all] Error 2 pkgbuild: Bad exit status from /var/tmp/pkgbuild-mwright/pkgbuild-tmp-2.13530 (%build) --- command output ends --- finished at Thu Nov 1 17:05:35 EST 2007 I will post diffs with my proposed fix.
Created attachment 98320 [details] [review] diffs for proposed fix
Patch committed. Thanks! http://svn.gnome.org/viewvc/gthumb?view=revision&revision=2046 http://svn.gnome.org/viewvc/gthumb?view=revision&revision=2047 Should appear in 2.10.8. - Mike