Post modules don't compile on MacOS X 10.1.x
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2665
Reported by @grubba
From the pike@roxen.com mailinglist:
From: Bill Welliver <hww3@riverweb.com>
To: "pike@roxen.com" <pike@roxen.com>
Date: Sun, 6 Jan 2002 14:56:18 -0500
Subject: Pike and MacOS X 10.1.x
The other problems are in the post_modules: I don't have GL, but configure doesn't seem to remove GL or GLUT from the lists of modules to build. The build process doesn't seem to like my GTK installation either, as I get a whole bunch of errors similar to this:
Compiling pgtk_1.c
./gdkeventstrings.h:1: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:1: warning: garbage at end of number
./gdkeventstrings.h:1: illegal external declaration, missing `;' after
`s_2button'
./gdkeventstrings.h:2: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:2: warning: garbage at end of number
./gdkeventstrings.h:2: illegal external declaration, missing `;' after
`s_3button'
./gdkeventstrings.h:1: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:1: warning: garbage at end of number
./gdkeventstrings.h:1: illegal statement, missing `;' after `s_2button'
./gdkeventstrings.h:2: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:2: warning: garbage at end of number
./gdkeventstrings.h:2: illegal statement, missing `;' after `s_3button'
pgtk_1.c:84: warning: nondigits in number and not hexadecimal
pgtk_1.c:84: warning: garbage at end of number
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
syntax error, missing `;' after `s_2button'
pgtk_1.c:86: warning: nondigits in number and not hexadecimal
pgtk_1.c:86: warning: garbage at end of number
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
syntax error, missing `;' after `s_3button'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:13:
./gdkeventstrings.h:1: parse error before `_press'
./gdkeventstrings.h:1: warning: data definition has no type or storage
class
./gdkeventstrings.h:2: parse error before `_press'
./gdkeventstrings.h:2: warning: data definition has no type or storage
class
In file included from
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:19:
./gdkeventstrings.h: In function `define_gdkeventstrings':
./gdkeventstrings.h:1: `s_2button' undeclared (first use in this
function)
./gdkeventstrings.h:1: (Each undeclared identifier is reported only once
./gdkeventstrings.h:1: for each function it appears in.)
./gdkeventstrings.h:1: parse error before `_press'
./gdkeventstrings.h:2: `s_3button' undeclared (first use in this
function)
./gdkeventstrings.h:2: parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:
In function `pgdk_event__index':
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
`s_2button' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
`s_3button' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:
In function `pgdk_event_cast':
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:288:
`s_2button_press' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:291:
`s_3button_press' undeclared (first use in this function)
WARNING: Compiler failure! Trying without optimization!
/Users/hww3/Desktop/Pike/src/smartlink cc -I.
-I/Users/hww3/Desktop/Pike/src/post_modules/GTK
-I/Users/hww3/Desktop/Pike/src/post_modules/GTK/../.. -I../.. -I.
-I/usr/local/include -I/sw/include -I/usr/X11R6/include
-I/Users/hww3/Desktop/Pike/src -I/usr/local/include -I/sw/include
-I/usr/X11R6/include -I/Users/hww3/Desktop/Pike/src -fPIC
-DDYNAMIC_MODULE -I/sw/include/gtk-1.2 -I/sw/include/glib-1.2
-I/sw/lib/glib/include -I/usr/X11R6/include -I/sw/include
-DNEED_GNOMESUPPORT_H -I/sw/lib/gnome-libs/include -I/sw/include/gtk-1.2
-I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include
-I/sw/include/gnome-xml -I/sw/include -I/sw/include/gtk-1.2
-I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include -c
pgtk_1.c -o pgtk_1.o
./gdkeventstrings.h:1: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:1: warning: garbage at end of number
./gdkeventstrings.h:1: illegal external declaration, missing `;' after
`s_2button'
./gdkeventstrings.h:2: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:2: warning: garbage at end of number
./gdkeventstrings.h:2: illegal external declaration, missing `;' after
`s_3button'
./gdkeventstrings.h:1: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:1: warning: garbage at end of number
./gdkeventstrings.h:1: illegal statement, missing `;' after `s_2button'
./gdkeventstrings.h:2: warning: nondigits in number and not hexadecimal
./gdkeventstrings.h:2: warning: garbage at end of number
./gdkeventstrings.h:2: illegal statement, missing `;' after `s_3button'
pgtk_1.c:84: warning: nondigits in number and not hexadecimal
pgtk_1.c:84: warning: garbage at end of number
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
syntax error, missing `;' after `s_2button'
pgtk_1.c:86: warning: nondigits in number and not hexadecimal
pgtk_1.c:86: warning: garbage at end of number
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
syntax error, missing `;' after `s_3button'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
In file included from
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:13:
./gdkeventstrings.h:1: parse error before `_press'
./gdkeventstrings.h:1: warning: data definition has no type or storage
class
./gdkeventstrings.h:2: parse error before `_press'
./gdkeventstrings.h:2: warning: data definition has no type or storage
class
In file included from
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:19:
./gdkeventstrings.h: In function `define_gdkeventstrings':
./gdkeventstrings.h:1: `s_2button' undeclared (first use in this
function)
./gdkeventstrings.h:1: (Each undeclared identifier is reported only once
./gdkeventstrings.h:1: for each function it appears in.)
./gdkeventstrings.h:1: parse error before `_press'
./gdkeventstrings.h:2: `s_3button' undeclared (first use in this
function)
./gdkeventstrings.h:2: parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:
In function `pgdk_event__index':
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
`s_2button' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:84:
parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
`s_3button' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:86:
parse error before `_press'
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:
In function `pgdk_event_cast':
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:288:
`s_2button_press' undeclared (first use in this function)
/Users/hww3/Desktop/Pike/src/post_modules/GTK/source/gdkevent.pre:291:
`s_3button_press' undeclared (first use in this function)
make[2]: *** [pgtk_1.o] Error 1
make[1]: *** [compile1] Error 2
make: *** [GTK] Error 1
I didn't feel like diving into that mess at the time, so I decided to ignore it for the time being. Any suggestions that might help figure out this particular set of errors would be greatly appreciated. I removed GL, GLUT and GTK from the list of post_modules in src/post_modules/Makefile, leaving only Unicode.
Having done all of this, pike seems to compile and install properly. I've posted my diffs for getting Caudium to compile on a the caudium.general newsgroup.
Best regards,
Bill Welliver hww3@riverweb.com