Compiling test program failed for gtk+-2.0.2



Hi Gtk+ experts,

I am compiling gtk+2.0.2 on a Compaq Tru64 UNIX V5.1A system with
Compaq cc.

The compilation fail at one point for
gtkcontainer.c,  it asked for a missing include file
<gobject/gobjectnotifyqueue.c>.  
I copied the file from the source directory, glib-2.0.1/gobject directory to my
installed glib include directory.

Then the compilation seemed to go forward smoothly until it hit compiling
test programs, it failed to compile two test program:


I make -k
/bin/ksh ../libtool --mode=link cc  -g -L/opt/pkg/gnu/lib -L/opt/pkg/gtk+/lib -lglib-2.0 -lintl -liconv -L/opt/pkg/gra_libs/lib -o testgtk  prop-editor.o testgtk.o ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la ../gtk/libgtk-x11-2.0.la 
cc -g -o .libs/testgtk prop-editor.o testgtk.o  -L/opt/pkg/gnu/lib -L/opt/pkg/gtk+/lib -L/opt/pkg/gra_libs/lib ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so ../gtk/.libs/libgtk-x11-2.0.so /home/zwluxx/src/gtk+-2.0.2/gdk/.libs/libgdk-x11-2.0.so /home/zwluxx/src/gtk+-2.0.2/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -lXext -lX11 -ldnet_stub /opt/pkg/gtk+/lib/libpangox-1.0.so /opt/pkg/gtk+/lib/libpango-1.0.so /opt/pkg/gtk+/lib/libatk-1.0.so /opt/pkg/gtk+/lib/libgobject-2.0.so /opt/pkg/gtk+/lib/libgmodule-2.0.so /opt/pkg/gtk+/lib/libglib-2.0.so /opt/pkg/gnu/lib/libintl.so /opt/pkg/gnu/lib/libiconv.so -lm -rpath /opt/pkg/gtk+/lib:/opt/pkg/gnu/lib
ld:
Unresolved:
gtk_major_version
gtk_minor_version
gtk_micro_version
make: *** [testgtk] Error 1
/bin/ksh ../libtool --mode=link cc  -g -L/opt/pkg/gnu/lib -L/opt/pkg/gtk+/lib -lglib-2.0 -lintl -liconv -L/opt/pkg/gra_libs/lib -o testtextbuffer  testtextbuffer.o ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la ../gtk/libgtk-x11-2.0.la 
cc -g -o .libs/testtextbuffer testtextbuffer.o  -L/opt/pkg/gnu/lib -L/opt/pkg/gtk+/lib -L/opt/pkg/gra_libs/lib ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so ../gdk/.libs/libgdk-x11-2.0.so ../gtk/.libs/libgtk-x11-2.0.so /home/zwluxx/src/gtk+-2.0.2/gdk/.libs/libgdk-x11-2.0.so /home/zwluxx/src/gtk+-2.0.2/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -lXext -lX11 -ldnet_stub /opt/pkg/gtk+/lib/libpangox-1.0.so /opt/pkg/gtk+/lib/libpango-1.0.so /opt/pkg/gtk+/lib/libatk-1.0.so /opt/pkg/gtk+/lib/libgobject-2.0.so /opt/pkg/gtk+/lib/libgmodule-2.0.so /opt/pkg/gtk+/lib/libglib-2.0.so /opt/pkg/gnu/lib/libintl.so /opt/pkg/gnu/lib/libiconv.so -lm -rpath /opt/pkg/gtk+/lib:/opt/pkg/gnu/lib
ld:
Unresolved:
gtk_text_unknown_char_utf8
make: *** [testtextbuffer] Error 1
make: Target `all' not remade because of errors.


If I  could located these symblos if I  do a "strings ../gtk/.libs/libgtk-x11-2.0.so".

The rest of test programs all compiled ok and test okay except for 
testselection, I am getting
Floating point exception (core dumped)

Does anybody have any suggestion for the compilation/linking problem?

Thanks.



-- 
Zhi-Wei Lu 		
CIPIC (Center for Image Processing and Integrated Computing)
UC Davis 	  	Phone:	(530)-752-0494
Davis, CA 95616		Fax:   	(530)-752-8894





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