[CentOS] which gcc package?

Sun May 9 16:33:37 UTC 2010
Alexander Dalloz <ad+lists at uni-x.org>

Am 09.05.2010 17:48, schrieb Michael Klinosky:
> Hakan Koseoglu wrote:
>> Depending on the requirements of the source code you are trying to
>> compile you might have to fetch some development packages for various
>> libraries, for example if it uses ncurses, you will want ncurses-devel
>> package.
> 
> This problem seems (to my semi-newby brain) to be related to X --
> 
> [root at sr1220 plugger-5.1.3]# make
> gcc -c -O2 -Ipluginsdk/include -INONE -DXP_UNIX  -DVERSION=\"5.1.3\"
> -fPIC  -o plugger.o plugger.c
> In file included from plugger.c:43:
> pluginsdk/include/npapi.h:129:22: error: X11/Xlib.h: No such file or
> directory
> In file included from plugger.c:43:
> pluginsdk/include/npapi.h:148: error: expected specifier-qualifier-list
> before ‘Display’
> plugger.c:48:19: error: X11/X.h: No such file or directory
> plugger.c:49:21: error: X11/Xos.h: No such file or directory
> plugger.c:50:27: error: X11/Intrinsic.h: No such file or directory
> plugger.c:51:23: error: X11/Xatom.h: No such file or directory
> plugger.c:76: error: expected specifier-qualifier-list before ‘Display’
> plugger.c: In function ‘my_fork’:
> plugger.c:231: error: ‘struct data’ has no member named ‘flags’
> plugger.c:232: error: ‘struct data’ has no member named ‘display’
> ... and a bunch more errors (which are probably due to these).
> 
> I emailed the coder yesterday - still waiting for a reply.

You need to install an additional -devel packages.

yum provides */Xlib.h

libX11-devel-1.0.3-11.el5.x86_64 : X.Org X11 libX11 Entwicklungspaket
Repo        : base
Matched from:
Filename    : /usr/include/X11/Xlib.h

Same result for all the other missinge includes.

Alexander