[plt-scheme] ubuntu compiling plt from source errors

From: Rohan Nicholls (rohan.nicholls at pareto.nl)
Date: Wed Feb 15 09:45:14 EST 2006

Hi all,

I have been trying to compile plt 301 from source on ubuntu and have run 
into this error during compilation, something it doesn't like in wxxt.

Installed packages:
g++-4.0, g++-3.3 - version 4 is active
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
libx11-6, libx11-dev and just about every xorg driver package there is
libcairo2, libcairo2-dev
libxft-dev, libxft2

Below is the compilation output from where things seem to go pear
shaped.  I noticed that it is not finding some header files:

./XWidgets/xwTabString.c:6:27: error: X11/Intrinsic.h: No such file or 
directory
./XWidgets/xwTabString.c:7:28: error: X11/StringDefs.h: No such file or 
directory


I assume this is important, would anyone know what I am missing for
these header files to be absent?

In file included from ./XWidgets/xwTabString.c:12:
./XWidgets/xwTabString.h:56: error: syntax error before ‘*’ token
In file included from ./XWidgets/xwTabString.c:13:
./XWidgets/wxAllocColor.h:8: error: syntax error before ‘wxAllocColor’
./XWidgets/wxAllocColor.h:8: error: syntax error before ‘*’ token
./XWidgets/wxAllocColor.h:8: warning: type defaults to ‘int’ in 
declaration of ‘wxAllocColor’

And then a lot of different errors turn up, but I assume they are
connected to the above problems.

Any help with this would be much appreciated.

Rohan

./XWidgets/wxAllocColor.h:8: warning: data definition has no type or 
storage class
./XWidgets/wxAllocColor.h:9: error: syntax error before ‘*’ token
In file included from ./XWidgets/wxAllocColor.h:15,
                  from ./XWidgets/xwTabString.c:13:
./../../wxxt/src/wx_visual.h:1: error: syntax error before ‘*’ token
./../../wxxt/src/wx_visual.h:1: warning: type defaults to ‘int’ in 
declaration of ‘wxAPP_VISUAL’
./../../wxxt/src/wx_visual.h:1: warning: data definition has no type or 
storage class
./../../wxxt/src/wx_visual.h:3: error: syntax error before 
‘wx_default_colormap’
./../../wxxt/src/wx_visual.h:3: warning: type defaults to ‘int’ in 
declaration of ‘wx_default_colormap’
./../../wxxt/src/wx_visual.h:3: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c: In function ‘leading_utf8_len’:
./XWidgets/xwTabString.c:28: warning: pointer targets in passing 
argument 1 of ‘scheme_utf8_decode’ differ in signedness
./XWidgets/xwTabString.c: In function ‘xdoDraw’:
./XWidgets/xwTabString.c:39: error: syntax error before ‘XFontStruct’
./XWidgets/xwTabString.c:45: error: syntax error before ‘String’
./XWidgets/xwTabString.c:58: warning: passing argument 1 of 
‘scheme_utf8_decode_all’ makes pointer from integer without a cast
./XWidgets/xwTabString.c:62: warning: implicit declaration of function 
‘XtMalloc’
./XWidgets/xwTabString.c:63: warning: passing argument 1 of 
‘scheme_utf8_decode_all’ makes pointer from integer without a cast
./XWidgets/xwTabString.c:78: error: ‘XChar2b’ undeclared (first use in 
this function)
./XWidgets/xwTabString.c:78: error: (Each undeclared identifier is 
reported only once
./XWidgets/xwTabString.c:78: error: for each function it appears in.)
./XWidgets/xwTabString.c:78: error: syntax error before ‘)’ token
./XWidgets/xwTabString.c:79: error: syntax error before ‘)’ token
./XWidgets/xwTabString.c:135: warning: implicit declaration of function 
‘XTextWidth16’
./XWidgets/xwTabString.c:135: error: syntax error before ‘)’ token
./XWidgets/xwTabString.c:147: warning: implicit declaration of function 
‘XDrawImageString16’
./XWidgets/xwTabString.c:147: error: syntax error before ‘)’ token
./XWidgets/xwTabString.c:154: warning: implicit declaration of function 
‘XtFree’
./XWidgets/xwTabString.c: At top level:
./XWidgets/xwTabString.c:180: error: syntax error before ‘Display’
./XWidgets/xwTabString.c:180: warning: type defaults to ‘int’ in 
declaration of ‘display’
./XWidgets/xwTabString.c:180: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:181: error: syntax error before ‘drawable’
./XWidgets/xwTabString.c:181: warning: type defaults to ‘int’ in 
declaration of ‘drawable’
./XWidgets/xwTabString.c:181: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:182: error: syntax error before ‘gc’
./XWidgets/xwTabString.c:182: warning: type defaults to ‘int’ in 
declaration of ‘gc’
./XWidgets/xwTabString.c:182: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:185: error: syntax error before ‘string’
./XWidgets/xwTabString.c:185: warning: type defaults to ‘int’ in 
declaration of ‘string’
./XWidgets/xwTabString.c:185: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:188: error: syntax error before ‘*’ token
./XWidgets/xwTabString.c:188: warning: type defaults to ‘int’ in 
declaration of ‘font’
./XWidgets/xwTabString.c:188: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:189: error: syntax error before ‘xfont’
./XWidgets/xwTabString.c:189: warning: type defaults to ‘int’ in 
declaration of ‘xfont’
./XWidgets/xwTabString.c:189: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:193: error: syntax error before ‘clip’
./XWidgets/xwTabString.c:193: warning: type defaults to ‘int’ in 
declaration of ‘clip’
./XWidgets/xwTabString.c:193: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:202: error: syntax error before ‘if’
./XWidgets/xwTabString.c:238: warning: type defaults to ‘int’ in 
declaration of ‘tab’
./XWidgets/xwTabString.c:238: error: non-static declaration of ‘tab’ 
follows static declaration
./XWidgets/xwTabString.c:196: error: previous declaration of ‘tab’ was here
./XWidgets/xwTabString.c:238: error: initializer element is not constant
./XWidgets/xwTabString.c:238: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:239: error: syntax error before ‘for’
./XWidgets/xwTabString.c:239: warning: type defaults to ‘int’ in 
declaration of ‘length’
./XWidgets/xwTabString.c:239: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:239: error: syntax error before ‘)’ token
./XWidgets/xwTabString.c:259: warning: type defaults to ‘int’ in 
declaration of ‘tx’
./XWidgets/xwTabString.c:259: error: non-static declaration of ‘tx’ 
follows static declaration
./XWidgets/xwTabString.c:196: error: previous declaration of ‘tx’ was here
./XWidgets/xwTabString.c:259: error: initializer element is not constant
./XWidgets/xwTabString.c:259: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:260: error: syntax error before ‘-=’ token
./XWidgets/xwTabString.c:261: warning: type defaults to ‘int’ in 
declaration of ‘p’
./XWidgets/xwTabString.c:261: error: ‘ep’ undeclared here (not in a 
function)
./XWidgets/xwTabString.c:261: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:262: error: syntax error before ‘}’ token
./XWidgets/xwTabString.c:266: warning: type defaults to ‘int’ in 
declaration of ‘p’
./XWidgets/xwTabString.c:266: error: redefinition of ‘p’
./XWidgets/xwTabString.c:261: error: previous definition of ‘p’ was here
./XWidgets/xwTabString.c:266: error: ‘ap’ undeclared here (not in a 
function)
./XWidgets/xwTabString.c:266: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:267: error: syntax error before ‘if’
./XWidgets/xwTabString.c:272: warning: type defaults to ‘int’ in 
declaration of ‘csize’
./XWidgets/xwTabString.c:272: warning: passing argument 1 of 
‘leading_utf8_len’ makes pointer from integer without a cast
./XWidgets/xwTabString.c:272: error: initializer element is not constant
./XWidgets/xwTabString.c:272: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:274: warning: type defaults to ‘int’ in 
declaration of ‘ww’
./XWidgets/xwTabString.c:274: error: initializer element is not constant
./XWidgets/xwTabString.c:274: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:275: error: syntax error before numeric constant
./XWidgets/xwTabString.c:275: warning: type defaults to ‘int’ in 
declaration of ‘xdoDraw’
./XWidgets/xwTabString.c:275: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:302: error: syntax error before ‘Display’
./XWidgets/xwTabString.c:302: warning: type defaults to ‘int’ in 
declaration of ‘display’
./XWidgets/xwTabString.c:302: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:303: error: syntax error before ‘drawable’
./XWidgets/xwTabString.c:303: warning: type defaults to ‘int’ in 
declaration of ‘drawable’
./XWidgets/xwTabString.c:303: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:304: error: syntax error before ‘gc’
./XWidgets/xwTabString.c:304: warning: type defaults to ‘int’ in 
declaration of ‘gc’
./XWidgets/xwTabString.c:304: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:307: error: syntax error before ‘string’
./XWidgets/xwTabString.c:307: warning: type defaults to ‘int’ in 
declaration of ‘string’
./XWidgets/xwTabString.c:307: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:310: error: syntax error before ‘*’ token
./XWidgets/xwTabString.c:310: warning: type defaults to ‘int’ in 
declaration of ‘fnt’
./XWidgets/xwTabString.c:310: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:311: error: syntax error before ‘xfnt’
./XWidgets/xwTabString.c:311: warning: type defaults to ‘int’ in 
declaration of ‘xfnt’
./XWidgets/xwTabString.c:311: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:313: error: syntax error before ‘clip’
./XWidgets/xwTabString.c:313: warning: type defaults to ‘int’ in 
declaration of ‘clip’
./XWidgets/xwTabString.c:313: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:320: error: syntax error before ‘Display’
./XWidgets/xwTabString.c:320: warning: type defaults to ‘int’ in 
declaration of ‘display’
./XWidgets/xwTabString.c:320: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:321: error: syntax error before ‘drawable’
./XWidgets/xwTabString.c:321: warning: type defaults to ‘int’ in 
declaration of ‘drawable’
./XWidgets/xwTabString.c:321: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:322: error: syntax error before ‘gc’
./XWidgets/xwTabString.c:322: warning: type defaults to ‘int’ in 
declaration of ‘gc’
./XWidgets/xwTabString.c:322: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:325: error: syntax error before ‘string’
./XWidgets/xwTabString.c:325: warning: type defaults to ‘int’ in 
declaration of ‘string’
./XWidgets/xwTabString.c:325: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:328: error: syntax error before ‘*’ token
./XWidgets/xwTabString.c:328: warning: type defaults to ‘int’ in 
declaration of ‘fnt’
./XWidgets/xwTabString.c:328: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:329: error: syntax error before ‘xfnt’
./XWidgets/xwTabString.c:329: warning: type defaults to ‘int’ in 
declaration of ‘xfnt’
./XWidgets/xwTabString.c:329: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:332: error: syntax error before ‘clip’
./XWidgets/xwTabString.c:332: warning: type defaults to ‘int’ in 
declaration of ‘clip’
./XWidgets/xwTabString.c:332: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c: In function ‘XfwfTablist2Tabs’:
./XWidgets/xwTabString.c:357: warning: implicit declaration of function 
‘XtRealloc’
./XWidgets/xwTabString.c: At top level:
./XWidgets/xwTabString.c:378: error: syntax error before ‘Display’
./XWidgets/xwTabString.c:378: warning: type defaults to ‘int’ in 
declaration of ‘display’
./XWidgets/xwTabString.c:378: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:379: error: syntax error before ‘*’ token
./XWidgets/xwTabString.c:379: warning: type defaults to ‘int’ in 
declaration of ‘font’
./XWidgets/xwTabString.c:379: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:380: error: syntax error before ‘xfont’
./XWidgets/xwTabString.c:380: warning: type defaults to ‘int’ in 
declaration of ‘xfont’
./XWidgets/xwTabString.c:380: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:381: error: syntax error before ‘str’
./XWidgets/xwTabString.c:381: warning: type defaults to ‘int’ in 
declaration of ‘str’
./XWidgets/xwTabString.c:381: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:384: error: syntax error before ‘{’ token
./XWidgets/xwTabString.c:386: error: static declaration of ‘tx’ follows 
non-static declaration
./XWidgets/xwTabString.c:259: error: previous definition of ‘tx’ was here
./XWidgets/xwTabString.c:386: error: static declaration of ‘tab’ follows 
non-static declaration
./XWidgets/xwTabString.c:238: error: previous definition of ‘tab’ was here
./XWidgets/xwTabString.c:388: error: syntax error before ‘if’
./XWidgets/xwTabString.c:391: warning: type defaults to ‘int’ in 
declaration of ‘p’
./XWidgets/xwTabString.c:391: error: redefinition of ‘p’
./XWidgets/xwTabString.c:261: error: previous definition of ‘p’ was here
./XWidgets/xwTabString.c:391: error: ‘pp’ undeclared here (not in a 
function)
./XWidgets/xwTabString.c:391: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:392: warning: type defaults to ‘int’ in 
declaration of ‘ll’
./XWidgets/xwTabString.c:392: error: non-static declaration of ‘ll’ 
follows static declaration
./XWidgets/xwTabString.c:386: error: previous declaration of ‘ll’ was here
./XWidgets/xwTabString.c:392: error: initializer element is not constant
./XWidgets/xwTabString.c:392: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:394: error: syntax error before ‘while’
./XWidgets/xwTabString.c:400: warning: type defaults to ‘int’ in 
declaration of ‘memmove’
./XWidgets/xwTabString.c:400: warning: parameter names (without types) 
in function declaration
./XWidgets/xwTabString.c:400: warning: conflicting types for built-in 
function ‘memmove’
./XWidgets/xwTabString.c:400: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:401: error: syntax error before ‘+’ token
./XWidgets/xwTabString.c:401: warning: type defaults to ‘int’ in 
declaration of ‘memmove’
./XWidgets/xwTabString.c:401: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:402: error: syntax error before ‘-=’ token
./XWidgets/xwTabString.c:403: warning: type defaults to ‘int’ in 
declaration of ‘p’
./XWidgets/xwTabString.c:403: error: redefinition of ‘p’
./XWidgets/xwTabString.c:261: error: previous definition of ‘p’ was here
./XWidgets/xwTabString.c:403: error: ‘c’ undeclared here (not in a function)
./XWidgets/xwTabString.c:403: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:404: error: syntax error before ‘if’
./XWidgets/xwTabString.c:406: warning: type defaults to ‘int’ in 
declaration of ‘ll’
./XWidgets/xwTabString.c:406: error: redefinition of ‘ll’
./XWidgets/xwTabString.c:392: error: previous definition of ‘ll’ was here
./XWidgets/xwTabString.c:406: error: ‘l’ undeclared here (not in a function)
./XWidgets/xwTabString.c:406: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:407: error: syntax error before ‘}’ token
./XWidgets/xwTabString.c:409: warning: type defaults to ‘int’ in 
declaration of ‘ll’
./XWidgets/xwTabString.c:409: error: redefinition of ‘ll’
./XWidgets/xwTabString.c:406: error: previous definition of ‘ll’ was here
./XWidgets/xwTabString.c:409: error: initializer element is not constant
./XWidgets/xwTabString.c:409: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:410: error: syntax error before ‘}’ token
./XWidgets/xwTabString.c:415: warning: type defaults to ‘int’ in 
declaration of ‘tab’
./XWidgets/xwTabString.c:415: error: non-static declaration of ‘tab’ 
follows static declaration
./XWidgets/xwTabString.c:386: error: previous declaration of ‘tab’ was here
./XWidgets/xwTabString.c:415: error: initializer element is not constant
./XWidgets/xwTabString.c:415: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:416: error: syntax error before ‘if’
./XWidgets/xwTabString.c:421: warning: type defaults to ‘int’ in 
declaration of ‘length’
./XWidgets/xwTabString.c:421: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:421: error: syntax error before ‘)’ token
./XWidgets/xwTabString.c:426: warning: type defaults to ‘int’ in 
declaration of ‘p’
./XWidgets/xwTabString.c:426: error: redefinition of ‘p’
./XWidgets/xwTabString.c:261: error: previous definition of ‘p’ was here
./XWidgets/xwTabString.c:426: warning: data definition has no type or 
storage class
./XWidgets/xwTabString.c:427: error: syntax error before ‘}’ token
./XWidgets/xwTabString.c:455: error: syntax error before ‘*’ token
make[5]: *** [XWidgets/xwTabString.o] Error 1
make[5]: Leaving directory `/home/rohan/temp/plt/src/wxxt/src'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/rohan/temp/plt/src/wxxt/src/x'
make[3]: *** [wx_xt] Error 2
make[3]: Leaving directory `/home/rohan/temp/plt/src/mred'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/rohan/temp/plt/src/mred'
make[1]: *** [mr] Error 2
make[1]: Leaving directory `/home/rohan/temp/plt/src'
make: *** [all] Error 2


Posted on the users mailing list.