On Wed, Aug 06, 2003 at 05:54:50PM -0700 Bill Moseley wrote: > Trying to build Text::Aspell 0.03 on Solaris 2.8 (using one of the > SourceForge compile farm machines). Seems perl was built with cc: > > bash-2.03$ perl -V | grep cc= > cc='cc', optimize='-xO3 -xdepend', gccversion= > > When I try to make Text::Aspell I get lots of: > > cp Aspell.pm blib/lib/Text/Aspell.pm > /usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 > /usr/perl5/5.00503/ExtUtils/xsubpp -noprototypes -typemap > /usr/perl5/5.00503/ExtUtils/typemap -typemap typemap Aspell.xs >xstmp.c && mv > xstmp.c Aspell.c > cc -c -I/home/users/w/wh/whmoseley/aspell/include -xO3 -xdepend > -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -KPIC > -I/usr/perl5/5.00503/sun4-solaris/CORE Aspell.c > "/usr/perl5/5.00503/sun4-solaris/CORE/perlvars.h", line 21: invalid token: ## > "/usr/perl5/5.00503/sun4-solaris/CORE/perlvars.h", line 21: undefined or not a type: > PL_ > "/usr/perl5/5.00503/sun4-solaris/CORE/perlvars.h", line 21: syntax error before or > at: Gcurinterp > "/usr/perl5/5.00503/sun4-solaris/CORE/perlvars.h", line 21: warning: old-style > declaration or incorrect type for: Gcurinterp > "/usr/perl5/5.00503/sun4-solaris/CORE/perlvars.h", line 42: invalid token: ## > "/usr/perl5/5.00503/sun4-solaris/CORE/perlvars.h", line 42: undefined or not a type: > PL_ > "/usr/perl5/5.00503/sun4-solaris/CORE/perlvars.h", line 42: syntax error before or > at: Gninterps > "/usr/perl5/5.00503/sun4-solaris/CORE/perlvars.h", line 42: warning: old-style > declaration or incorrect type for: Gninterps > > I don't really understand what's happening. > > Is there something I need to do in my xs module to get to build under > this environment?
I have had the same symptoms with my XS modules under these Solaris machines (the ones on Sourceforge's compile-farm). For me these problems went away when putting suncc into ANSI mode: perl Makefile.PL CCFLAGS=-Xa > My xs code links with libaspell, and Aspell was built with gcc (or g++, > really). The above errors and warnings are coming from the Perl headers, so no linking yet involved. Tassilo -- $_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({ pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#; $_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval