Julio Santiago wrote:
> Hi there,
>
> So i have my C Compiler installed, Makefile.pl runs ok, but when it comes to
> make i get this error (first lines of the error)
>
> cc -c -I/usr/local/include -O -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\"
> -KPIC -I/usr/local/nsPerl5.005_03/lib/sun4-solaris/CORE -DDBI_NO_THREADS
> Perl.c
> "/usr/local/nsPerl5.005_03/lib/sun4-solaris/CORE/perlvars.h", line 21:
> invalid token: ##
> "/usr/local/nsPerl5.005_03/lib/sun4-solaris/CORE/perlvars.h", line 21:
> undefined or not a type: PL_
> "/usr/local/nsPerl5.005_03/lib/sun4-solaris/CORE/perlvars.h", line 21:
> syntax error before or at: Gcurinterp
> "/usr/local/nsPerl5.005_03/lib/sun4-solaris/CORE/perlvars.h", line 21:
> warning: old-style declaration or incorrect type for: Gcurinterp
> "/usr/local/nsPerl5.005_03/lib/sun4-solaris/CORE/perlvars.h", line 42:
> invalid token: ##
>
> Im runnig Perl 5.005
> On a Solaris Box
>
> Any help would be Highly apreciated, since my boss is driving me nuts.
As Ilya said, which C compiler are you using, because it is clearly the wrong
one. Given the error message, I think you're using /usr/ucb/cc, which is not a
sensible choice. You should either get the SUNWspro compiler or the GNU C
Compiler -- and if you get the latter, you'll also need to recompile and
reinstall Perl.
The error message means that the C compiler does not understand ANSI/ISO C-89
preprocessor syntax.
--
Jonathan Leffler ([EMAIL PROTECTED], [EMAIL PROTECTED])
Guardian of DBD::Informix 1.00.PC1 -- see http://www.cpan.org/
#include <disclaimer.h>