When building a shared library of FLTK 1.3.2 on Mac OS X 10.4 (Linux cross
compilation), we get this exotic error message:
Linking CXX shared library ../lib/libfltk.dylib
/usr/lib/gcc/i686-apple-darwin8/4.5.3/../../../../i686-apple-darwin8/bin/ld:
CMakeFiles/fltk_SHARED.dir/Fl_Native_File_Chooser_MAC.mm.o literal pointer
section (__OBJC,__cls_refs) does not have is exactly one relocation entry for
each pointer
collect2: ld returned 1 exit status
Indeed, this strange sentence can be found in
http://www.opensource.apple.com/source/cctools/cctools-499/ld/mod_sections.c,
but it's not obvious what the problem is. There are some warnings though:
[ 78%] Building CXX object
src/CMakeFiles/fltk.dir/Fl_Native_File_Chooser_MAC.mm.o
/local/home/astrand/rpm/BUILD/fltk-1.3.2/src/Fl_Native_File_Chooser_MAC.mm: In
member function 'int Fl_Native_File_Chooser::runmodal()':
/local/home/astrand/rpm/BUILD/fltk-1.3.2/src/Fl_Native_File_Chooser_MAC.mm:504:79:
warning: 'NSSavePanel' may not respond to '-setDirectoryURL:'
/local/home/astrand/rpm/BUILD/fltk-1.3.2/src/Fl_Native_File_Chooser_MAC.mm:504:79:
warning: (Messages without a matching method signature
/local/home/astrand/rpm/BUILD/fltk-1.3.2/src/Fl_Native_File_Chooser_MAC.mm:504:79:
warning: will be assumed to return 'id' and accept
/local/home/astrand/rpm/BUILD/fltk-1.3.2/src/Fl_Native_File_Chooser_MAC.mm:504:79:
warning: '...' as arguments.)
/local/home/astrand/rpm/BUILD/fltk-1.3.2/src/Fl_Native_File_Chooser_MAC.mm:505:67:
warning: 'NSSavePanel' may not respond to '-setNameFieldStringValue:'
If anyone has a clue... In the mean time, we're disabling the shared
library.
Rgds,
---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://cendio.com
Teknikringen 8 http://twitter.com/ThinLinc
583 30 Linköping http://facebook.com/ThinLinc
Phone: +46-13-214600 http://plus.google.com/112509906846170010689
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev