It looks like the APIENTRY symbol is not defined or has been #undef'ed
somewhere.
The second guess seems the most probable, as osg/GL defines APIENTRY for non
Win32 environments, and osg/BufferObject includes osg/GL. On MSVC, I discovered
that glut.h included by plib/pu.h #undef it. I am clueless why it is a problem
on Un*x systems.

-Fred

Quoting Jon Stockill :

> I'm attempting to build the current cvs version of flightgear on a
> slackware 11.0 system. OSG and friends built from
> OSG_OP_OT-1.2-Flightgear.tar.gz without issue. A fresh checkout of
> SimGear into a new directory also gave no problems, however when
> attempting to build FlightGear I get the following error:
>
> if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src
> -I/usr/local/include -I/usr/X11R6/include  -g -O2 -D_REENTRANT -MT
> atis.o -MD -MP -MF ".deps/atis.Tpo" -c -o atis.o atis.cxx; \
>          then mv -f ".deps/atis.Tpo" ".deps/atis.Po"; else rm -f
> ".deps/atis.Tpo"; exit 1; fi
> In file included from /usr/local/include/osg/Image:17,
>                   from /usr/local/include/osg/Texture:18,
>                   from /usr/local/include/osg/Texture2D:17,
>                   from /usr/include/simgear/scene/model/model.hxx:22,
>                   from AIPlane.hxx:25,
>                   from tower.hxx:37,
>                   from ATCmgr.hxx:34,
>                   from atis.cxx:50:
> /usr/local/include/osg/BufferObject:173: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:174: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:175: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:176: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:177: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:178: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:179: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:180: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:180: error: expected `;' before '*'
> token
> /usr/local/include/osg/BufferObject:181: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:182: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:183: error: expected `)' before '*'
> token
> /usr/local/include/osg/BufferObject:185: error: `GenBuffersProc' does
> not name a type
> /usr/local/include/osg/BufferObject:186: error: `BindBufferProc' does
> not name a type
> /usr/local/include/osg/BufferObject:187: error: `BufferDataProc' does
> not name a type
> /usr/local/include/osg/BufferObject:188: error: `BufferSubDataProc' does
> not name a type
> /usr/local/include/osg/BufferObject:189: error: `DeleteBuffersProc' does
> not name a type
> /usr/local/include/osg/BufferObject:190: error: `IsBufferProc' does not
> name a type
> /usr/local/include/osg/BufferObject:191: error: `GetBufferSubDataProc'
> does not name a type
> /usr/local/include/osg/BufferObject:192: error: `MapBufferProc' does not
> name a type
> /usr/local/include/osg/BufferObject:193: error: `UnmapBufferProc' does
> not name a type
> /usr/local/include/osg/BufferObject:194: error:
> `GetBufferParameterivProc' does not name a type
> /usr/local/include/osg/BufferObject:195: error: `GetBufferPointervProc'
> does not name a type
> /usr/local/include/osg/BufferObject: In member function `bool
> osg::BufferObject::Extensions::isBufferObjectSupported() const':
> /usr/local/include/osg/BufferObject:156: error: `_glGenBuffers' was not
> declared in this scope
> make[2]: *** [atis.o] Error 1
> make[2]: Leaving directory
> `/export/Mirror/flightgear/FlightGear-OSG/src/ATC'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/export/Mirror/flightgear/FlightGear-OSG/src'
> make: *** [all-recursive] Error 1
>
> The system is slackware 11.0 using gcc 3.4.6 with glibc 2.3.6.
> There's an nVidia 6500 install with version 8776 of the driver which
> happily runs the plib version of FlightGear on xorg 6.9.0.
>
> Has anyone seen this before?
>
> --
> Jon Stockill
> [EMAIL PROTECTED]
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Flightgear-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>


--
Frédéric Bouvier
http://frfoto.free.fr                      Photo gallery - album photo
http://www.fotolia.fr/p/2278/partner/2278  Other photo gallery
http://fgsd.sourceforge.net/               FlightGear Scenery Designer

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to