[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] Compiling OC on OS X Leopard box
From: |
Duke Normandin |
Subject: |
[open-cobol-list] Compiling OC on OS X Leopard box |
Date: |
Mon, 3 Aug 2009 09:59:40 -0600 (MDT) |
User-agent: |
Alpine 2.00 (OSX 1167 2008-08-23) |
Hello OC list....
I really-really-REALLY hope that Roger While is reading this
list... ;)
I've been trying to compile OC1.0 cleanly on my OS X 10.5.7 box. NO
JOY!
So far, I haven't got past the "configure" file. It chokes here:
checking for ld used by
GCC... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
is GNU ld... no
checking for shared library run path origin... done
checking for iconv... yes
checking how to link with libiconv... -liconv
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for getopt_long_only... yes
checking kpathsea/getopt.h usability... no
checking kpathsea/getopt.h presence... no
checking for kpathsea/getopt.h... no
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking gmp.h usability... no
checking gmp.h presence... no
checking for gmp.h... no
configure: error: gmp.h is required
However, the file(s) exist on my system:
address@hidden ~/downloads/open-cobol-1.0
09:55 am >> ls /opt/local/include/gmp*
/opt/local/include/gmp.h /opt/local/include/gmpxx.h
Before I run "configure", I execute the following:
export CPPFLAGS='$CPPFLAGS -I/opt/local/include'
But obviously "configure" is still not finding it. WTF???
I found the following that may be of help to me:
http://sourceforge.net/tracker/index.php?func=detail&aid=2122139&group_id=34923&atid=412913
but I need further direction on the contents of Darren Bane's message.
Specifically, where do I do the following:
[quote]
3. Set the environment up as follows:
CC=llvm-gcc
export CC
CFLAGS=-Os -DNDEBUG -pipe -I/opt/local/include
-I/opt/local/include/db46
-march=nocona
export CFLAGS
LDFLAGS=-L/opt/local/lib -L/opt/local/lib/db46
export LDFLAGS
[/quote]
Should I be editing the "configure" or "makefile" to do this?
I haven't done much programming in C, so I'm stumbling around using
the tools.
BTW, I'm also new to COBOL in general, so it would be extra cool to
get OC fired-up so I can learn this thing. TIA...
--
Duke
- [open-cobol-list] Compiling OC on OS X Leopard box,
Duke Normandin <=