gdk/gtk missing symbols on solaris



Hello,

I've built GTK+ 2.2.4 on Solaris 8 (sparc) using the Forte compiler. I'm not trying to build an application with it and it's failing to link due to a ton of missing symbols. The weird thing is that pkg-config seems to produce the correct -l flags and the linker isn't reporting any problems finding/loading the libs. I ran "nm" on the gdk & gtk libs I built and every one of the supposedly missing symbols I checked seems to be present in the .so files. (Also, I installed GTK+ in /usr/local/gtk22, added a -L/usr/local/gtk22/lib to the LDFLAGS, and added the path to my LD_LIBRARY_PATH.)

Maybe someone can give me a hint or suggestion for what I can do to further debug/deduce what's wrong. I'd appreciate any help. Thanks!

The link command looks like this:

CC -xnolib -fast -xtarget=generic -xarch=v8plusa -xO5 -o dbg/hxplay.bin dbg/obj/support.o dbg/obj/clipdetails_interface.o dbg/obj/main_interface.o dbg/obj/preferences_interface.o dbg/obj/uri_interface.o dbg/obj/about_interface.o dbg/obj/contextmenu_interface.o dbg/obj/contextmenu_embedded_interface.o dbg/obj/auth_interface.o dbg/obj/transport_interface.o dbg/obj/plugins_interface.o dbg/obj/hxplayer.o dbg/obj/hxplayeripc.o dbg/obj/prefsdialog.o dbg/obj/xutils.o dbg/obj/hxcommon.o dbg/obj/hxembedded.o dbg/obj/hxstatus.o dbg/obj/hxstatusinfopanel.o dbg/obj/hxstatustop.o dbg/obj/hxstatuspositionfield.o dbg/obj/hxstatuspositionslider.o dbg/obj/hxstatusfield.o dbg/obj/hxstatustacctrl.o dbg/obj/clipinfo.o dbg/hxplay.bin_libs.a -L/usr/local/gtk22/lib -lsocket -lnsl -lc -lX11 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lintl -liconv -lm -lgtk-x11-2.0 -lpthread -Bstatic -lCstd -lCrun -Bdynamic

And a sampling of the missing symbols (there are a couple hundred) look like this:

Undefined                       first referenced
 symbol                             in file
gtk_widget_unref                    dbg/obj/clipdetails_interface.o
gtk_entry_get_type                  dbg/obj/preferences_interface.o
gdk_window_set_events               /usr/local/gtk22/lib/libgtk-x11-2.0.so
gdk_font_from_description_for_display /usr/local/gtk22/lib/libgtk-x11-2.0.so
gdk_x11_get_default_root_xwindow    dbg/obj/xutils.o
gtk_list_store_append               dbg/obj/hxcommon.o
gdk_event_get                       /usr/local/gtk22/lib/libgtk-x11-2.0.so
gdk_window_clear                    /usr/local/gtk22/lib/libgtk-x11-2.0.so
gtk_widget_set_size_request         dbg/obj/clipdetails_interface.o
gtk_widget_realize                  dbg/obj/hxembedded.o
gdk_window_get_frame_extents        /usr/local/gtk22/lib/libgtk-x11-2.0.so
gtk_menu_item_get_type              dbg/obj/main_interface.o
gdk_drawable_get_image              /usr/local/gtk22/lib/libgtk-x11-2.0.so
gtk_scrolled_window_set_shadow_type dbg/obj/preferences_interface.o
gdk_window_maximize                 /usr/local/gtk22/lib/libgtk-x11-2.0.so
...extra removed...
ld: fatal: Symbol referencing errors. No output written to dbg/hxplay.bin



--
Nicholas Hart
nhart real com
Technical Lead for Helix Player
https://player.helixcommunity.org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]