Re: DBD::Oracle Install Fails on Gentoo Linux
- From: scoles@xxxxxxxxxxx (John Scoles)
- Date: Thu, 12 Apr 2007 06:49:15 -0400
If you have no objection I will add this to the new README.64bit.txt. I am collecting there all sorts of info related to compily DBD::Oracle on 64 bit boxes. Geting the Makefile.PL to work for 64 bit system is one of the jobs penciled in for a later version of DBD::Oracle
----- Original Message ----- From: "tom r" <mailbin@xxxxxxxxxxx>
To: <dbi-users@xxxxxxxx>
Sent: Thursday, April 12, 2007 1:04 AM
Subject: DBD::Oracle Install Fails on Gentoo Linux
Installing DBD::Oracle on Gentoo Linux fails with the following error:
x86_64-pc-linux-gnu-gcc: unrecognized option '-wchar-stdc++'
x86_64-pc-linux-gnu-gcc: unrecognized option '-cxxlib-gcc'
cc1: error: /ee/dev/bastring.h: No such file or directory
I tracked this down to the Oracle XE install problem. Makefile.PL is reading
$OH/rdbms/demo/demo_xe.mk which has these paragraphs at the end:
ifdef BUILD_CCC296
CC=/usr/bin/g++296
CCFLAGS = -include /ee/dev/bastring.h
$(CCINCLUDES) -wchar-stdc++ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g
endif
ifdef BUILD_ICC
COMPDIR=/usr/local/remote/packages/icc_remote/8.1-022
CC=$(COMPDIR)/bin/icpc
CCFLAGS += -DOCCI_NO_WSTRING=1 -cxxlib-gcc
endif
This creates a CCFLAGS value of
'-include /ee/dev/bastring.h -I../ -wchar-stdc++ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g -DOCCI_NO_WSTRING=1 -cxxlib-gcc';
where '-wchar-stdc++' and '-cxxlib-gcc' are, apparently invalid options to gcc
and furthermore /ee/dev/bastring.h doesn't exist. By commenting out these
last two paragraphs Makefile.PL builds CCFLAGS with a value of
'-I../ -DLINUX -D_GNU_SOURCE -D_REENTRANT -g'
which gcc likes much better. This modification to demo_xe.mk allows
DBD::Oracle to install and work properly. I don't know what BUILD_CCC296 or
BUILD_ICC mean but I suppose it's a Solaris thing that doesn't work under
Linux. Just a guess. In any event it would be nice if Makefile.PL took this
into account.
tom
--
ours is the age that is proud of machines that try to think and suspicious of
men that do. --h. mumford jones
.
- Follow-Ups:
- Re: DBD::Oracle Install Fails on Gentoo Linux
- From: Tom R
- Re: DBD::Oracle Install Fails on Gentoo Linux
- References:
- DBD::Oracle Install Fails on Gentoo Linux
- From: Tom R
- DBD::Oracle Install Fails on Gentoo Linux
- Prev by Date: Re: DBD::Oracle Install Fails on Gentoo Linux
- Next by Date: RE: DBD::Oracle 1.19 tests core against Oracle 10.2.0.1 - Solaris build
- Previous by thread: Re: DBD::Oracle Install Fails on Gentoo Linux
- Next by thread: Re: DBD::Oracle Install Fails on Gentoo Linux
- Index(es):