[plt-scheme] 205 build trouble

From: Geoffrey Knauth (geoff at knauth.org)
Date: Thu Oct 2 07:06:12 EDT 2003

I just did a download and successful build on GNU/Linux (RedHat 9), 
kernel 2.4.20-18.9, gcc 3.2.2, g++ 3.2.2.

cd test/plt/src
./configure --prefix=/usr/local/plt --enable-shared

I notice my line for compiling Pen+Brush.cc is different from yours.  
This worked:

g++ -c -I/usr/X11R6/include -I/usr/X11R6/include 
-I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include 
-I./../../mzscheme/gc -I./../../wxxt/src/AIAI-include 
-I./../../wxxt/src -I./../../mred/wxme/ -I./../../mzscheme/include/ 
-I./XWidgets ./GDI-Classes/Pen+Brush.cc  -fPIC -DPIC -o 

Maybe you need -DOPERATOR_NEW_ARRAY?  Looking at configure line 4375, 
that's where I picked it up.  Try GCC 3.2.2 and see if the problem goes 

Geoffrey S. Knauth | http://knauth.org/gsk

On Thursday, October 2, 2003, at 04:29 AM, Anton van Straaten wrote:

>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> I'm getting an error building v205, in wxcommon/Region.cxx, while 
> compiling src/wxxt/src/Pen+Brush.cc. Both line 685 and 721 of 
> Region.cxx have statements of the form "... = new WXGC_ATOMIC 
> char[...];", and the messages indicate maybe it's not picking up the 
> necessary declarations for 'new':
> make[5]: Entering directory `/usr/local/src/plt/src/wxxt/src'
> g++ -c -I/usr/X11R6/include -I./../../mzscheme/gc 
> -I./../../wxxt/src/AIAI-include -I./../../wxxt/src 
> -I./../../mred/wxme/ -I./../../mzscheme/include/ -DNO_XKB_LIB_PRESENT 
> -DWX_USE_LIBJPEG -Dwx_xt  -Wall  -g -O2  -MMD -I. -I./XWidgets -o 
> GDI-Classes/Pen+Brush.o ./GDI-Classes/Pen+Brush.cc
> In file included from GDI-Classes/Pen+Brush.cc:302:
> <internal>: In member function `void wxRegion::Put(const char*)':
> <internal>:685: too many arguments to function `void* operator new 
> [](unsigned   int)'
> ../../wxcommon/Region.cxx:685: at this point in file
> <internal>: In member function `char* 
> wxPSRgn_Composite::MakeString(const   char*, const char*, const 
> char*)':
> <internal>:721: too many arguments to function `void* operator new 
> [](unsigned   int)'
> ../../wxcommon/Region.cxx:721: at this point in file
> make[5]: *** [GDI-Classes/Pen+Brush.o] Error 1
> make[5]: Leaving directory `/usr/local/src/plt/src/wxxt/src'
> I haven't yet tried to track this down further, but I have a feeling 
> I'm doing something dumb, and I'm hoping someone else can point out 
> what it might be.  I'm using gcc 3.2.1, if that makes a difference - I 
> think the last time I built PLT on Linux, it was v202.5 and I used gcc 
> 2.9.x.
> Anton

Posted on the users mailing list.