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 -Wall    conftest.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 <glib.h>
> | #include <stdio.h>
> |
> | 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-dev                    2.16.4-0nexenta3
>          Development files for the GLib library
> ii  libglib2.0-doc                    2.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

Reply via email to