gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Has Anyone Tried Compiling OpenCOBOL on OpenSolari


From: Frank Swarbrick
Subject: Re: [open-cobol-list] Has Anyone Tried Compiling OpenCOBOL on OpenSolaris?
Date: Mon, 21 Jul 2008 19:11:41 -0600
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

Kevin Monceaux wrote:
COBOL Fans,

Has anyone tried compiling OpenCOBOL on OpenSolaris? I've been checking occasionally on OpenCOBOL's progress. I was excited recently to notice that a SCREEN SECTION has been implemented. Now, if it only had embedded SQL ...

I'm currently running OpenSolaris Indiana:

SunOS Blaidd-Drwg 5.11 snv_93 i86pc i386 i86pc

and I'm not having any luck compiling OpenCOBOL. I've installed Berkeley DB 4.4 via the package available from BlastWave.org's IPS repository, which installs the library files in:

/opt/csw/lib/bdb44/lib

and the header files in:

/opt/csw/lib/bdb44/include

I've tried various settings for CFLAGS and LDFLAGS.  I currently have:

LDFLAGS=-L/opt/csw/lib -L/opt/csw/bdb44/lib -L/usr/local/lib
CFLAGS=-I/opt/csw/include -I/opt/csw/bdb44/include -I/usr/local/include

When I run ./configure with the above flags set, it fails with:

checking for BDB db.h version >= 4.1 ... yes (4.4)
configure: error: Include file db.h implies version >=4.1 but no library found
I had the same problem compiling on Mac OS X. I tried something similar with ./configure and never could get it working. What I ended up doing is setting C_INCLUDE_PATH to include the include libraries that I needed, and LIBRARY_PATH to include the lib libraries that I needed:

export C_INCLUDE_PATH=/opt/local/include:/opt/local/include/db46
export LIBRARY_PATH=/opt/local/lib:/opt/local/lib/db46

In your case I would guess this might work:

export C_INCLUDE_PATH=/opt/csw/include:/opt/csw/bdb44/include:/usr/local/include
export LIBRARY_PATH=/opt/csw/lib:/opt/csw/bdb44/lib:/usr/local/lib

Place those two lines in a member (I called mine 'libs') and then 'source' it, 
ie:
source libs

I placed that in my .profile member.

Not sure if any of this will work on Solaris, but...

Frank









reply via email to

[Prev in Thread] Current Thread [Next in Thread]