When compiling (gcc10) the perl OpenGL package with the mesa header
/usr/X11/include/mesa/gl.h, it fails :

In file included from gl_util.h:20,
                 from OpenGL.xs:60:
/usr/X11R6/include/GL/gl.h:93:28: error: expected declaration specifiers or '...' before '*' token
   93 | #define APIENTRYP APIENTRY *
      |                            ^
glext_procs.h:11563:17: note: in expansion of macro 'APIENTRYP'

Following the definition chain to APIENTRYP shows that it ends
in a single * because GLAPIENTRY is empty, which can't work:

.....
#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
#  define GLAPI __attribute__((visibility("default")))
#  define GLAPIENTRY
#endif /* WIN32 && !CYGWIN */
....
#ifndef GLAPIENTRY
#define GLAPIENTRY
#endif

#ifndef APIENTRY
#define APIENTRY GLAPIENTRY
#endif

/* "P" suffix to be used for a pointer to a function */
#ifndef APIENTRYP
#define APIENTRYP APIENTRY *
#endif

#ifndef GLAPIENTRYP
#define GLAPIENTRYP GLAPIENTRY *
#endif

Any idea how to fix that (apart from the fact that the mesa gl.h
shouldn't be here, because the NVIDIA headers are missing, see
my previous post) ?
--
Dr.Udo Grabowski   Inst.f.Meteorology & Climate Research IMK-ASF-SAT
http://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology           http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev

Reply via email to