Need help in compilation of DBI.c

Need help in compilation of DBI.c

am 18.08.2005 13:38:05 von manaskumarsahu

--0-902402714-1124365085=:61560
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,

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

Any help will be greatly appreciated.

Regards,
Manas Kumar Sahu

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--0-902402714-1124365085=:61560--

Re: Need help in compilation of DBI.c

am 20.08.2005 08:04:59 von jonathan.leffler

------=_Part_1259_15001499.1124517899806
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 8/18/05, manas sahu wrote:

> I am trying to build and install DBI module. I have built and installed=
=20
> perl Version 5.8.7. The compiler gives the following errors;
>=20
>=20
> "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 "=3D".
> "DBI.xs", line 3561: Error: Expected an expression.
> "DBI.xs", line 3561: Error: Identifier expected instead of ",".
>=20
> Compiler command line:
>=20
> /opt/Forte6.2/SUNWspro/bin/CC -c -I/usr/local/include -D_LARGEFILE_SOURCE=
=20
> -D_FILE_OFFSET_BITS=3D64 -O -DVERSION=3D\"1.48\" -DXS_VERSION=3D\"1.48\" =
-KPIC=20
> -I/home17/SG/clearcase/perl5/lib/5.8.7/sun4-solaris/CORE -DDBI_NO_THREADS=
=20
> DBI.c
>=20

It appears that there's something missing somewhere. I wonder if=20
/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=
=20
use C code?
For example, Digest::MD5 or ... many others. If not, try to do so; I would=
=20
expect them to fail too, pointing to a defect somewhere in the installation=
=20
of Perl.

If those work but DBI still fails, then it isn't clear what the issue is.=
=20
You're on Solaris in some shape or form - please always include version=20
information - and I've not had problems there with Perl versions dating bac=
k=20
to 5.004 (probably 5.003 even), or DBI versions dating way back to 0.6x or=
=20
earlier (let's see - shall we say 1996). So, on average, I'd expect the=20
problem to be with your Perl. Failing that, with your Sun C compiler -=20
though I've used the 6.2 version without problems...

--=20
Jonathan Leffler #include
Guardian of DBD::Informix - v2005.02 - http://dbi.perl.org
"I don't suffer from insanity - I enjoy every minute of it."

------=_Part_1259_15001499.1124517899806--