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 587261 - Build failure...missing boost symbols
Build failure...missing boost symbols
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: build
0.5.x
Other Mac OS
: Normal normal
: 1.0
Assigned To: gnote-maint
gnote-maint
Depends on:
Blocks:
 
 
Reported: 2009-06-29 02:12 UTC by Daniel Macks
Modified: 2009-07-17 22:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add missing boost lib (also fix some other bugs I found) (1.33 KB, patch)
2009-06-29 04:44 UTC, Daniel Macks
none Details | Review

Description Daniel Macks 2009-06-29 02:12:32 UTC
On OS X 10.4/ppc, compiling gnote-0.5.0 fails (I did 'make V=1 so you can see full output):


/bin/sh ../libtool --tag=CXX --mode=link /bin/sh ../shave cxx g++ -g -O2 -DNDEBUG -Wall -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wunused -Wpointer-arith -Wshadow -fshow-column -export-dynamic -L/sw/lib/fontconfig2/lib -L/sw/lib -o gnote main.o libgnote.a -L/sw/lib -lglibmm-2.4 -lgobject-2.0 -lsigc-2.0 -lglib-2.0 -lintl -L/sw/lib/fontconfig2/lib -L/sw/lib -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -lgtkmm-2.4 -lgiomm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lgtk-x11-2.0 -lpangomm-1.4 -lcairomm-1.0 -lglibmm-2.4 -lsigc-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -L/sw/lib -lgconf-2 -lglib-2.0 -lintl -lboost_filesystem-mt-1_35 -L/sw/lib -lxslt -lz -lpthread -liconv -lm -lxml2 -L/sw/lib -lpcre -lpcrecpp -L/sw/lib/fontconfig2/lib -L/sw/lib -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -lgtkspell -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 -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -L/sw/lib/fontconfig2/lib -L/sw/lib -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -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 -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -luuid -L../libtomboy -ltomboy -luuid --shave-mode=link
libtool: link: /bin/sh ../shave cxx g++ -g -O2 -DNDEBUG -Wall -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wunused -Wpointer-arith -Wshadow -fshow-column -o gnote main.o -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices --shave-mode=link  -L/sw/lib/fontconfig2/lib -L/sw/lib libgnote.a /sw/lib/libgtkmm-2.4.dylib -L/sw/lib/freetype219/lib -L/usr/X11R6/lib /sw/lib/libgiomm-2.4.dylib /sw/lib/libgdkmm-2.4.dylib /sw/lib/libatkmm-1.6.dylib /sw/lib/libpangomm-1.4.dylib /sw/lib/libcairomm-1.0.dylib /sw/lib/libglibmm-2.4.dylib /sw/lib/libsigc-2.0.dylib /sw/lib/libgconf-2.dylib /sw/lib/libORBit-2.dylib -lresolv /sw/lib/libgthread-2.0.dylib /sw/lib/libdbus-glib-1.dylib /sw/lib/libdbus-1.dylib -lboost_filesystem-mt-1_35 /sw/lib/libxslt.dylib /sw/lib/libxml2.dylib -lpthread /sw/lib/libpcre.dylib /sw/lib/libpcrecpp.dylib /sw/lib/libgtkspell.dylib /sw/lib/libenchant.dylib -L/sw/build.build/gnote-0.5.0-1/gnote-0.5.0/libtomboy /sw/build.build/gnote-0.5.0-1/gnote-0.5.0/libtomboy/.libs/libtomboy.a /sw/lib/libgtk-x11-2.0.dylib /sw/lib/libgdk-x11-2.0.dylib /sw/lib/libatk-1.0.dylib /sw/lib/libgdk_pixbuf-2.0.dylib /sw/lib/libgio-2.0.dylib /sw/lib/pango-ft219/lib/libpangocairo-1.0.dylib /sw/lib/pango-ft219/lib/libpangoft2-1.0.dylib /sw/lib/libcairo.dylib /sw/lib/libpixman-1.dylib /sw/lib/libglitz.dylib /sw/lib/libpng12.dylib -lXrender -lSM -lICE -lX11 /sw/lib/pango-ft219/lib/libpango-1.0.dylib -lm /sw/lib/fontconfig2/lib/libfontconfig.dylib /sw/lib/freetype219/lib/libfreetype.dylib -lz /sw/lib/libexpat.dylib /sw/lib/libgobject-2.0.dylib /sw/lib/libgmodule-2.0.dylib /sw/lib/libglib-2.0.dylib /sw/lib/libintl.dylib /sw/lib/libiconv.dylib -lc /sw/lib/libuuid.dylib
g++ -g -O2 -DNDEBUG -Wall -Wextra -Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wunused -Wpointer-arith -Wshadow -fshow-column -o gnote main.o -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -L/sw/lib/fontconfig2/lib -L/sw/lib libgnote.a /sw/lib/libgtkmm-2.4.dylib -L/sw/lib/freetype219/lib -L/usr/X11R6/lib /sw/lib/libgiomm-2.4.dylib /sw/lib/libgdkmm-2.4.dylib /sw/lib/libatkmm-1.6.dylib /sw/lib/libpangomm-1.4.dylib /sw/lib/libcairomm-1.0.dylib /sw/lib/libglibmm-2.4.dylib /sw/lib/libsigc-2.0.dylib /sw/lib/libgconf-2.dylib /sw/lib/libORBit-2.dylib -lresolv /sw/lib/libgthread-2.0.dylib /sw/lib/libdbus-glib-1.dylib /sw/lib/libdbus-1.dylib -lboost_filesystem-mt-1_35 /sw/lib/libxslt.dylib /sw/lib/libxml2.dylib -lpthread /sw/lib/libpcre.dylib /sw/lib/libpcrecpp.dylib /sw/lib/libgtkspell.dylib /sw/lib/libenchant.dylib -L/sw/build.build/gnote-0.5.0-1/gnote-0.5.0/libtomboy /sw/build.build/gnote-0.5.0-1/gnote-0.5.0/libtomboy/.libs/libtomboy.a /sw/lib/libgtk-x11-2.0.dylib /sw/lib/libgdk-x11-2.0.dylib /sw/lib/libatk-1.0.dylib /sw/lib/libgdk_pixbuf-2.0.dylib /sw/lib/libgio-2.0.dylib /sw/lib/pango-ft219/lib/libpangocairo-1.0.dylib /sw/lib/pango-ft219/lib/libpangoft2-1.0.dylib /sw/lib/libcairo.dylib /sw/lib/libpixman-1.dylib /sw/lib/libglitz.dylib /sw/lib/libpng12.dylib -lXrender -lSM -lICE -lX11 /sw/lib/pango-ft219/lib/libpango-1.0.dylib -lm /sw/lib/fontconfig2/lib/libfontconfig.dylib /sw/lib/freetype219/lib/libfreetype.dylib -lz /sw/lib/libexpat.dylib /sw/lib/libgobject-2.0.dylib /sw/lib/libgmodule-2.0.dylib /sw/lib/libglib-2.0.dylib /sw/lib/libintl.dylib /sw/lib/libiconv.dylib -lc /sw/lib/libuuid.dylib
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
boost::system::get_posix_category()
boost::system::get_system_category()
collect2: ld returned 1 exit status
make[3]: *** [gnote] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


I'm using boost-1.35, which I understand to be the current major upstream release. Maybe forgetting to link against one of the boost shared libraries? I know nothing about how one is supposed to use boost, how it publishes which compiler flags to use, etc. Not sure what other versioning or other information would be useful to get this diagnosed and solved.
Comment 1 Daniel Macks 2009-06-29 02:32:09 UTC
Adding @BOOST_SYSTEM_LIBS@ to src/Makefile.am GNOTE_LIBS fixes this problem.
Comment 2 Hubert Figuiere (:hub) 2009-06-29 02:45:43 UTC
what about providing patches?
Comment 3 Daniel Macks 2009-06-29 04:44:55 UTC
Created attachment 137540 [details] [review]
Add missing boost lib (also fix some other bugs I found)

This also includes the patches to fix Bug #587228 and Bug #587262 because the changes are to adjacent lines in src/Makefile.am so I can't write a .patch that applies cleanly without knowing if those other patches are applied or not:( If you want a patch *just* to fix this bug, let me know whether or not it should presume either of those other two have been already applied.
Comment 4 Hubert Figuiere (:hub) 2009-06-29 05:18:29 UTC
(In reply to comment #3)

> This also includes the patches to fix Bug #587228 and Bug #587262 because the
> changes are to adjacent lines in src/Makefile.am so I can't write a .patch that
> applies cleanly without knowing if those other patches are applied or not:( If
> you want a patch *just* to fix this bug, let me know whether or not it should
> presume either of those other two have been already applied.

You could if you were using. And that would also make the patch against the last version instead of an already out of date release.
Comment 5 Daniel Macks 2009-07-01 16:30:44 UTC
I have no idea what you're recommending I do. Following the development link for your project at http://bugzilla.gnome.org/browse.cgi?product=gnote all I find is a broken link to an apparently nonexistent SVN repo.
Comment 6 Hubert Figuiere (:hub) 2009-07-01 16:33:43 UTC
Given that Gnote has never been in SVN....

You have read the README file then.

Or this:

http://live.gnome.org/Gnote
Comment 7 Hubert Figuiere (:hub) 2009-07-17 22:56:49 UTC
fixed in master. thanks.