On 8/18/05, manas sahu <[EMAIL PROTECTED]> wrote: > I am trying to build and install DBI module. I have built and installed > perl Version 5.8.7. The compiler gives the following errors; > > > "DBI.c", line 3577: Error: Unexpected type name "SV" encountered. > "DBI.c", line 3577: Error: Operand expected instead of "class". > "DBI.c", line 3577: Error: Identifier expected instead of "=". > "DBI.xs", line 3561: Error: Expected an expression. > "DBI.xs", line 3561: Error: Identifier expected instead of ",". > > Compiler command line: > > /opt/Forte6.2/SUNWspro/bin/CC -c -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.48\" -DXS_VERSION=\"1.48\" -KPIC > -I/home17/SG/clearcase/perl5/lib/5.8.7/sun4-solaris/CORE -DDBI_NO_THREADS > DBI.c >
It appears that there's something missing somewhere. I wonder if /usr/local/include has a header in it that is confusing thing? You said you built your Perl? So, have you installed any other modules that use C code? For example, Digest::MD5 or ... many others. If not, try to do so; I would expect them to fail too, pointing to a defect somewhere in the installation of Perl. If those work but DBI still fails, then it isn't clear what the issue is. You're on Solaris in some shape or form - please always include version information - and I've not had problems there with Perl versions dating back to 5.004 (probably 5.003 even), or DBI versions dating way back to 0.6x or earlier (let's see - shall we say 1996). So, on average, I'd expect the problem to be with your Perl. Failing that, with your Sun C compiler - though I've used the 6.2 version without problems... -- Jonathan Leffler <[EMAIL PROTECTED]> #include <disclaimer.h> Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org "I don't suffer from insanity - I enjoy every minute of it."