LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-01-2010, 05:40 AM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
glib.h:2335: error: expected ',' or '}'


hello when i try to compile pkg-config.it shows error as
Code:
fp -mfpu=vfp3 -ftree-vectorize -funroll-all-loops -Wall -D_REENTRANT -MT garray.lo -MD -MP -MF .deps/garray.Tpo -c garray.c  -fPIC -DPIC -o .libs/garray.o
In file included from garray.c:32:
glib.h:2335: error: expected ',' or '}' before 'GLIB_SYSDEF_POLLIN'
make[2]: *** [garray.lo] Error 1
make[2]: Leaving directory `/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8'
make: *** [all] Error 2
sharief@sharief-desktop:/mnt/freescale/sources/pkg-config-0.20/glib-1.2.8$ vim glib.h
This the glib.h file

Code:
 */

typedef struct _GIOFuncs GIOFuncs;
typedef enum
{
  G_IO_ERROR_NONE,
  G_IO_ERROR_AGAIN,
  G_IO_ERROR_INVAL,
  G_IO_ERROR_UNKNOWN
} GIOError;
typedef enum
{
  G_SEEK_CUR,
  G_SEEK_SET,
  G_SEEK_END
} GSeekType;
typedef enum
{
  G_IO_IN       GLIB_SYSDEF_POLLIN,
  G_IO_OUT      GLIB_SYSDEF_POLLOUT,
  G_IO_PRI      GLIB_SYSDEF_POLLPRI,
  G_IO_ERR      GLIB_SYSDEF_POLLERR,
  G_IO_HUP      GLIB_SYSDEF_POLLHUP,
  G_IO_NVAL     GLIB_SYSDEF_POLLNVAL
} GIOCondition;

struct _GIOChannel
{
  guint channel_flags;
Can anyone help me
 
Old 01-02-2010, 06:12 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
The macro GLIB_SYSDEF_POLLIN has not been defined. It would normally have been defined in the glibconfig.h included from glib.h.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with libraries pkg-config lite123 Red Hat 9 01-27-2009 02:23 PM
Pkg-config error during install gentoonix Linux - Software 5 08-14-2007 11:34 PM
Compile issues related to GTK, pkg-config Snivek Slackware 7 11-01-2005 10:28 AM
pkg-config error hotstyle765 Linux - Software 6 01-31-2005 03:46 PM
pkg-config error. eye Linux - Software 2 08-29-2003 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration