Re: [Plib-users] PLib compilation fails on OpenBSD
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2001-04-09 03:10:53
|
Heikki Korpela wrote: > > I'm using OpenBSD 2.8, stable. Both 1.2.0 and 1.3.1 versions of PLib > fail to compile: > > c++ -DPACKAGE=\"plib\" -DVERSION=\"1.2.0\" -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 -DHAVE_LIBGLUT=1 -DSTDC_HEADERS=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DGLUT_IS_PRESENT=1 -I. -I. -I/usr/local/include -L/usr/local/lib -I/usr/local/include -L/usr/local/lib -O6 -Wall -c slDSP.cxx > In file included from slDSP.cxx:2: > sl.h:96: macro `ioctl' used with only 2 args > > README.openbsd for SL suggests to use 'make openbsd', while target > openbsd is not defined for any targets as far as I can see. I guess the OpenBSD community hasn't been using PLIB recently so the code has 'rotted'...if you have a fix, please contribute it - but there are not (AFAIK) any other OpenBSD users here who could hope to solve your problem. Maybe some NetBSD or FreeBSD people here can help? Under Linux, the 'ioctl' call has an optional third argument: #include <sys/ioctl.h> int ioctl(int d, int request, ...) I think (from the sound of the error), that OpenBSD has somehow defined 'ioctl' as a macro - that's **WRONG** because in C++ you should be able to overload the names of system functions (as we have done here) - but if the host OS defines them as macro's, that won't work. I guess you should demand that OpenBSD fix this - but since that's unlikely to have the immediate effect you need, I guess the best fix is to replace all of *our* overloaded ioctl functions with something like XXXioctl - so they don't trigger the macro substitution. Can you confirm that this *truly* is the cause - and if it is, one of us will fix it for you. Yuk, Yuk, Yuk! -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net http://freeglut.sourceforge.net |