Re: Gtk build issues
Seems like include path for GLIB is not properly set. glib.h not found On Sun, 2008-08-31 at 16:20 +0530, Anil Gulecha wrote: > The core dump is now done away with.. i compiled glib2.16.4 removing > the -lgthread flag. > > configure still fails at > > configure:24210: checking for extra flags for POSIX compliance > configure:24233: gcc -c -g -O2 -Wall conftest.c >&5 > conftest.c: In function 'main': > conftest.c:39: warning: unused variable 'dir' > configure:24239: $? = 0 > configure:24244: result: none needed > configure:24387: checking for pkg-config > configure:24417: result: /usr/bin/pkg-config > configure:24446: checking pkg-config is at least version 0.16 > configure:24449: result: yes > configure:24467: checking for GLIB - version >= 2.13.5 > configure:24627: result: no > configure:24665: gcc -o conftest -g -O2 -Wallconftest.c -lintl >&5 > conftest.c:36:18: error: glib.h: No such file or directory > conftest.c: In function 'main': > conftest.c:42: error: 'glib_major_version' undeclared (first use in > this function) > conftest.c:42: error: (Each undeclared identifier is reported only once > conftest.c:42: error: for each function it appears in.) > conftest.c:42: error: 'glib_minor_version' undeclared (first use in > this function) > conftest.c:42: error: 'glib_micro_version' undeclared (first use in > this function) > configure:24671: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "gtk+" > > [snip program] > > | #define ENABLE_NLS 1 > | #define GTK_LOCALEDIR "/usr/local/share/locale" > | /* end confdefs.h. */ > | > | #include > | #include > | > | int > | main () > | { > | return ((glib_major_version) || (glib_minor_version) || > (glib_micro_version)); > | ; > | return 0; > | } > configure:24707: error: > *** GLIB 2.13.5 or better is required. The latest version of > *** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/. > > glib 2.16.4 is installed on the system. > > [EMAIL PROTECTED]:~/libgtk2.0-0/gtk+2.0-2.12.9# dpkg -l | grep libglib > ii libglib2.0-0 2.16.4-0nexenta3 > The GLib library of C routines > ii libglib2.0-0-dbg 2.16.4-0nexenta3 > The GLib libraries and debugging symbols > ii libglib2.0-data 2.16.4-0nexenta3 > Common files for GLib library > ii libglib2.0-dev2.16.4-0nexenta3 > Development files for the GLib library > ii libglib2.0-doc2.16.4-0nexenta3 > Documentation files for the GLib library > > > Regards > Anil > ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: Gtk build issues
The core dump is now done away with.. i compiled glib2.16.4 removing the -lgthread flag. configure still fails at configure:24210: checking for extra flags for POSIX compliance configure:24233: gcc -c -g -O2 -Wall conftest.c >&5 conftest.c: In function 'main': conftest.c:39: warning: unused variable 'dir' configure:24239: $? = 0 configure:24244: result: none needed configure:24387: checking for pkg-config configure:24417: result: /usr/bin/pkg-config configure:24446: checking pkg-config is at least version 0.16 configure:24449: result: yes configure:24467: checking for GLIB - version >= 2.13.5 configure:24627: result: no configure:24665: gcc -o conftest -g -O2 -Wallconftest.c -lintl >&5 conftest.c:36:18: error: glib.h: No such file or directory conftest.c: In function 'main': conftest.c:42: error: 'glib_major_version' undeclared (first use in this function) conftest.c:42: error: (Each undeclared identifier is reported only once conftest.c:42: error: for each function it appears in.) conftest.c:42: error: 'glib_minor_version' undeclared (first use in this function) conftest.c:42: error: 'glib_micro_version' undeclared (first use in this function) configure:24671: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "gtk+" [snip program] | #define ENABLE_NLS 1 | #define GTK_LOCALEDIR "/usr/local/share/locale" | /* end confdefs.h. */ | | #include | #include | | int | main () | { | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); | ; | return 0; | } configure:24707: error: *** GLIB 2.13.5 or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/. glib 2.16.4 is installed on the system. [EMAIL PROTECTED]:~/libgtk2.0-0/gtk+2.0-2.12.9# dpkg -l | grep libglib ii libglib2.0-0 2.16.4-0nexenta3 The GLib library of C routines ii libglib2.0-0-dbg 2.16.4-0nexenta3 The GLib libraries and debugging symbols ii libglib2.0-data 2.16.4-0nexenta3 Common files for GLib library ii libglib2.0-dev2.16.4-0nexenta3 Development files for the GLib library ii libglib2.0-doc2.16.4-0nexenta3 Documentation files for the GLib library Regards Anil ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: Gtk build issues
Continuing IRC discussion, the offending line probably is in gthread-2.0.pc.in <@rootard> anilg: the program is segfaulting before it hits main()... if you remove "-lgthread-2.0" from the gcc line the program runs. <@rootard> I'm surprised that we have -lgthread and -lpthread and -lthread all in one line. I would think they would conflict <@rootard> Now comes the fun part... figuring out where the -lgthread-2.0 is coming from. <@rootard> (and removing it) <@rootard> I guess we could also try and fix gthread < erast> pthread is just a stub.. < erast> now, gthread comes from GLIB <@rootard> libglib2.0-0: /usr/lib/libgthread-2.0.so.0.1600.3 <@rootard> right < erast> I think we need to recompile GLIB and enable Solaris-specific flags... < erast> or at least verify it.. [EMAIL PROTECTED]:~/xork/glib/glib2.0-2.16.4# grep lgthread * ChangeLog.pre-1-2: into a separate library -lgthread. gthread-2.0.pc.in:Libs: -L${libdir} -lgthread-2.0 @G_THREAD_LIBS@ Erast: which particular solaris flags? Regards Anil ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel
Re: Gtk build issues
We need to debug why GLIB-linked application core dumps... Do we have any other glib-linked packages uploaded and working? On Sat, 2008-08-30 at 20:59 +0530, Anil Gulecha wrote: > Hi, > > I'm tryign to build the gtk2.0 package for hardy.. and configure fails with > > .. > checking for pkg-config... (cached) /usr/bin/pkg-config > checking pkg-config is at least version 0.16... yes > checking for GLIB - version >= 2.13.5... no > *** Could not run GLIB test program, checking why... > *** The test program compiled, but did not run. This usually means > *** that the run-time linker is not finding GLIB or finding the wrong > *** version of GLIB. If it is not finding GLIB, you'll need to set your > *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point > *** to the installed location Also, make sure you have run ldconfig if that > *** is required on your system > *** > *** If you have an old version installed, it is best to remove it, although > *** you may also be able to get things to work by modifying LD_LIBRARY_PATH > configure: error: > *** GLIB 2.13.5 or better is required. The latest version of > *** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/. > > from config.log: > configure:24591: gcc -o conftest -g -O2 -Wall -D_REENTRANT -D_PTHREADS > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include conftest.c > -lgobject-2.0 -lgmo > dule-2.0 -lgthread-2.0 -lpthread -lthread -lglib-2.0 -lintl -liconv > -lintl >&5 > configure:24594: $? = 0 > configure:24600: ./conftest > ./configure: line 24601: 20986 Segmentation Fault (core dumped) > ./conftest$ac_exeext > configure:24603: $? = 139 > configure: program exited with status 139 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "gtk+" > | #define PACKAGE_TARNAME "gtk+" > .snip program that failes. > .. > | } > | } > | return 1; > | } > | > configure:24627: result: no > configure:24665: gcc -o conftest -g -O2 -Wall -D_REENTRANT -D_PTHREADS > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include conftest.c > -lintl -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lpthread -lthread > -lglib-2.0 -lintl -liconv >&5 > configure:24671: $? = 0 > configure:24707: error: > *** GLIB 2.13.5 or better is required. The latest version of > *** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/. > > This error has widely seen on solaris packages that require glib. i've > tried setting LD_LIBRARY_PATH=/usr/lib.. but that didnt help. > > Has anyone faced this error before? > > Anil > ___ > gnusol-devel mailing list > gnusol-devel@lists.sonic.net > http://lists.sonic.net/mailman/listinfo/gnusol-devel > ___ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel