[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Problems with Chicken 2.732 on Mac OS X
From: |
Joel Reymont |
Subject: |
Re: [Chicken-users] Problems with Chicken 2.732 on Mac OS X |
Date: |
Wed, 26 Dec 2007 09:32:38 +0000 |
On Dec 26, 2007, at 1:24 AM, Ivan Raikov wrote:
Okay, so removing /opt/local/bin from my path, and compiling Chicken
2.732 followed by 2.739 seems to work, thanks. However, now I have
problems with unresolved symbols in the numbers and gettext eggs,
Numbers first...
--
sudo chicken-setup numbers
...
downloading numbers.egg from (www.call-with-current-continuation.org
eggs 80) .
gzip -d -c ../numbers.egg | tar xf -
/usr/local/bin/csc -feature compiling-extension -s -O2 -d1 numbers-
base.scm -lgmp -D numbers-bootstrap -check-imports -emit-exports
numbers.exports -extend easyffi -disable-compiler-macros
In file included from numbers-base.c:18:
numbers-c.c:4:17: error: gmp.h: No such file or directory
--
Woops! Lets try again. I have GMP from MacPorts.
--
sudo chicken-setup -csc-option "-I/opt/local/include -L/opt/local/lib"
numbers
/usr/local/bin/csc -feature compiling-extension -I/opt/local/
include -L/opt/local/lib -s -O2 -d1 numbers-base.scm -lgmp -D numbers-
bootstrap -check-imports -emit-exports numbers.exports -extend easyffi
-disable-compiler-macros
/usr/local/bin/csc -feature compiling-extension -I/opt/local/
include -L/opt/local/lib -O2 -d1 numbers-base.scm -c -D numbers-
bootstrap -unit numbers -o numbers-static.o -extend easyffi -disable-
compiler-macros
rm -fr /usr/local/lib/chicken/3/numbers-base.so
cp -r numbers-base.so /usr/local/lib/chicken/3/numbers-base.so
chmod a+r /usr/local/lib/chicken/3/numbers-base.so
cp -r numbers.scm /usr/local/lib/chicken/3/numbers.scm
chmod a+r /usr/local/lib/chicken/3/numbers.scm
cp -r numbers-compiler-macros.scm /usr/local/lib/chicken/3/numbers-
compiler-macros.scm
chmod a+r /usr/local/lib/chicken/3/numbers-compiler-macros.scm
cp -r numbers-static.o /usr/local/lib/chicken/3/numbers-static.o
chmod a+r /usr/local/lib/chicken/3/numbers-static.o
* Installing documentation files in /usr/local/lib/chicken/3:
cp -r numbers.html /usr/local/lib/chicken/3/numbers.html
chmod a+r /usr/local/lib/chicken/3/numbers.setup-info
--
Now gettext...
--
sudo chicken-setup -csc-option "-I/opt/local/include -L/opt/local/lib"
gettext
The extension gettext does not exist.
Do you want to download it ? (yes/no/abort) [yes]
downloading gettext.egg from (www.call-with-current-continuation.org
eggs 80)
gzip -d -c ../gettext.egg | tar xf -
/usr/local/bin/csc -feature compiling-extension -I/opt/local/
include -L/opt/local/lib -s -O2 -d1 gettext.scm
Undefined symbols:
"_libintl_textdomain", referenced from:
_f_128 in gettext.o
"_libintl_bindtextdomain", referenced from:
_f_103 in gettext.o
"_libintl_gettext", referenced from:
_f_153 in gettext.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
*** Shell command terminated with exit status 1: gcc gettext.o -o
gettext.so -bundle -L/usr/local/lib -L/opt/local/lib -lm -lchicken
Error: shell invocation failed with non-zero return status
"/usr/local/bin/csc -feature compiling-extension -I/opt/local/include -
L/opt/lo...
256
--
I do have gettext installed from MacPorts. Also,
--
nm /opt/local/lib/libintl.a |grep intl_textdomain
00000000 T _libintl_textdomain
U _libintl_textdomain
--
Could it be that -lintl is missing?
--
sudo chicken-setup -csc-option "-I/opt/local/include -L/opt/local/lib -
lintl" gettext
/usr/local/bin/csc -feature compiling-extension -I/opt/local/
include -L/opt/local/lib -lintl -s -O2 -d1 gettext.scm
rm -fr /usr/local/lib/chicken/3/gettext.so
cp -r gettext.so /usr/local/lib/chicken/3/gettext.so
chmod a+r /usr/local/lib/chicken/3/gettext.so
cp -r gettext.html /usr/local/lib/chicken/3/gettext.html
chmod a+r /usr/local/lib/chicken/3/gettext.html
* Installing documentation files in /usr/local/lib/chicken/3:
cp -r gettext.html /usr/local/lib/chicken/3/gettext.html
chmod a+r /usr/local/lib/chicken/3/gettext.setup-info
--
--
http://wagerlabs.com
Re: [Chicken-users] Problems with Chicken 2.732 on Mac OS X, felix winkelmann, 2007/12/27