help-smalltalk
[Top][All Lists]
Advanced

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

[Help-smalltalk] Problems while configuring and compilation (mac os x)


From: Alexey Zakhlestin
Subject: [Help-smalltalk] Problems while configuring and compilation (mac os x)
Date: Fri, 30 Jan 2009 19:04:29 +0300

Hi.

I am trying to build gnu-smalltalk from git-master and bumped into
several (probably interconnected) problems.

I use
OS: Mac OS X 10.5.6
Developer Tools (XCode): 3.1.2
autoconf: 2.63
automake: 1.10.2
libtoolize: 2.2.6
gcc: 4.0.1 and 4.2.1

So, I run "autoreconf -vi". Here's output:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I build-aux
configure.ac:213: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
build-aux/libtool.m4:609: AC_LIBTOOL_LINKER_OPTION is expanded from...
build-aux/libtool.m4:2494: _LT_AC_LANG_C_CONFIG is expanded from...
build-aux/libtool.m4:2493: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build-aux/libtool.m4:93: AC_LIBTOOL_SETUP is expanded from...
build-aux/libtool.m4:73: _AC_PROG_LIBTOOL is expanded from...
build-aux/libtool.m4:38: AC_PROG_LIBTOOL is expanded from...
configure.ac:213: the top level
configure.ac:213: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works,
...): suspicious cache-id, must contain _cv_ to be cached
build-aux/libtool.m4:566: AC_LIBTOOL_COMPILER_OPTION is expanded from...
build-aux/libtool.m4:4557: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
autoreconf: configure.ac: tracing
configure.ac:213: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
build-aux/libtool.m4:609: AC_LIBTOOL_LINKER_OPTION is expanded from...
build-aux/libtool.m4:2494: _LT_AC_LANG_C_CONFIG is expanded from...
build-aux/libtool.m4:2493: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
build-aux/libtool.m4:93: AC_LIBTOOL_SETUP is expanded from...
build-aux/libtool.m4:73: _AC_PROG_LIBTOOL is expanded from...
build-aux/libtool.m4:38: AC_PROG_LIBTOOL is expanded from...
configure.ac:213: the top level
configure.ac:213: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works,
...): suspicious cache-id, must contain _cv_ to be cached
build-aux/libtool.m4:566: AC_LIBTOOL_COMPILER_OPTION is expanded from...
build-aux/libtool.m4:4557: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
autoreconf: configure.ac: adding subdirectory libffi to autoreconf
autoreconf: Entering directory `libffi'
autoreconf: running: aclocal -I ../build-aux
configure.ac:23: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
../build-aux/libtool.m4:609: AC_LIBTOOL_LINKER_OPTION is expanded from...
../build-aux/libtool.m4:2494: _LT_AC_LANG_C_CONFIG is expanded from...
../build-aux/libtool.m4:2493: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
../build-aux/libtool.m4:93: AC_LIBTOOL_SETUP is expanded from...
../build-aux/libtool.m4:73: _AC_PROG_LIBTOOL is expanded from...
../build-aux/libtool.m4:38: AC_PROG_LIBTOOL is expanded from...
configure.ac:23: the top level
configure.ac:23: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works,
...): suspicious cache-id, must contain _cv_ to be cached
../build-aux/libtool.m4:566: AC_LIBTOOL_COMPILER_OPTION is expanded from...
../build-aux/libtool.m4:4557: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.ac:23: warning: AC_CACHE_VAL(lt_prog_compiler_static_works,
...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
../build-aux/libtool.m4:609: AC_LIBTOOL_LINKER_OPTION is expanded from...
../build-aux/libtool.m4:2494: _LT_AC_LANG_C_CONFIG is expanded from...
../build-aux/libtool.m4:2493: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
../build-aux/libtool.m4:93: AC_LIBTOOL_SETUP is expanded from...
../build-aux/libtool.m4:73: _AC_PROG_LIBTOOL is expanded from...
../build-aux/libtool.m4:38: AC_PROG_LIBTOOL is expanded from...
configure.ac:23: the top level
configure.ac:23: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works,
...): suspicious cache-id, must contain _cv_ to be cached
../build-aux/libtool.m4:566: AC_LIBTOOL_COMPILER_OPTION is expanded from...
../build-aux/libtool.m4:4557: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
autoreconf: running: libtoolize --copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `../build-aux'.
libtoolize: copying file `../build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `../build-aux'.
libtoolize: copying file `../build-aux/libtool.m4'
libtoolize: copying file `../build-aux/ltoptions.m4'
libtoolize: You should add the contents of `../build-aux/ltoptions.m4'
to `aclocal.m4'.
libtoolize: copying file `../build-aux/ltsugar.m4'
libtoolize: You should add the contents of `../build-aux/ltsugar.m4'
to `aclocal.m4'.
libtoolize: copying file `../build-aux/ltversion.m4'
libtoolize: You should add the contents of `../build-aux/ltversion.m4'
to `aclocal.m4'.
libtoolize: copying file `../build-aux/lt~obsolete.m4'
libtoolize: You should add the contents of
`../build-aux/lt~obsolete.m4' to `aclocal.m4'.
autoreconf: running: /sw/bin/autoconf-2.63
autoreconf: running: /sw/bin/autoheader-2.63
autoreconf: running: automake --add-missing --copy --no-force
autoreconf: Leaving directory `libffi'
autoreconf: configure.ac: adding subdirectory snprintfv to autoreconf
autoreconf: Entering directory `snprintfv'
libtoolize: putting auxiliary files in `../build-aux'.
libtoolize: copying file `libltdl/config/compile'
libtoolize: copying file `libltdl/config/config.guess'
libtoolize: copying file `libltdl/config/config.sub'
libtoolize: copying file `libltdl/config/depcomp'
libtoolize: copying file `libltdl/config/install-sh'
libtoolize: copying file `libltdl/config/missing'
libtoolize: copying file `libltdl/config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `../build-aux'.
libtoolize: copying file `../build-aux/argz.m4'
libtoolize: You should add the contents of `../build-aux/argz.m4' to
`aclocal.m4'.
libtoolize: copying file `../build-aux/ltdl.m4'
libtoolize: putting macros in `libltdl/m4'.
libtoolize: copying file `libltdl/m4/argz.m4'
libtoolize: copying file `libltdl/m4/libtool.m4'
libtoolize: copying file `libltdl/m4/ltdl.m4'
libtoolize: copying file `libltdl/m4/ltoptions.m4'
libtoolize: copying file `libltdl/m4/ltsugar.m4'
libtoolize: copying file `libltdl/m4/ltversion.m4'
libtoolize: copying file `libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in `libltdl'.
libtoolize: `libltdl/COPYING.LIB' exists: use `--force' to overwrite
libtoolize: `libltdl/README' exists: use `--force' to overwrite
libtoolize: `libltdl/Makefile.am' exists: use `--force' to overwrite
libtoolize: `libltdl/configure.ac' exists: use `--force' to overwrite
libtoolize: `libltdl/aclocal.m4' exists: use `--force' to overwrite
libtoolize: `libltdl/Makefile.in' exists: use `--force' to overwrite
libtoolize: `libltdl/config-h.in' exists: use `--force' to overwrite
libtoolize: `libltdl/configure' exists: use `--force' to overwrite
libtoolize: copying file `libltdl/argz_.h'
libtoolize: copying file `libltdl/argz.c'
libtoolize: copying file `libltdl/loaders/dld_link.c'
libtoolize: copying file `libltdl/loaders/dlopen.c'
libtoolize: copying file `libltdl/loaders/dyld.c'
libtoolize: copying file `libltdl/loaders/load_add_on.c'
libtoolize: copying file `libltdl/loaders/loadlibrary.c'
libtoolize: copying file `libltdl/loaders/shl_load.c'
libtoolize: copying file `libltdl/lt__dirent.c'
libtoolize: copying file `libltdl/lt__strl.c'
libtoolize: copying file `libltdl/libltdl/lt__alloc.h'
libtoolize: copying file `libltdl/libltdl/lt__dirent.h'
libtoolize: copying file `libltdl/libltdl/lt__glibc.h'
libtoolize: copying file `libltdl/libltdl/lt__private.h'
libtoolize: copying file `libltdl/libltdl/lt__strl.h'
libtoolize: copying file `libltdl/libltdl/lt_dlloader.h'
libtoolize: copying file `libltdl/libltdl/lt_error.h'
libtoolize: copying file `libltdl/libltdl/lt_system.h'
libtoolize: copying file `libltdl/libltdl/slist.h'
libtoolize: copying file `libltdl/loaders/preopen.c'
libtoolize: copying file `libltdl/lt__alloc.c'
libtoolize: copying file `libltdl/lt_dlloader.c'
libtoolize: copying file `libltdl/lt_error.c'
libtoolize: `libltdl/ltdl.c' exists: use `--force' to overwrite
libtoolize: `libltdl/ltdl.h' exists: use `--force' to overwrite
libtoolize: copying file `libltdl/slist.c'
libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.ac'.
libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in
configure.ac.
libtoolize: Consider using `AC_CONFIG_MACRO_DIR([libltdl/m4])' in configure.ac.
snprintfv/Makefile.am:111: `%'-style pattern rules are a GNU make extension
snprintfv/Makefile.am:114: `%'-style pattern rules are a GNU make extension
autoreconf: Leaving directory `snprintfv'
autoreconf: configure.ac: adding subdirectory sigsegv to autoreconf
autoreconf: Entering directory `sigsegv'
autoreconf: Leaving directory `sigsegv'
libtoolize: putting auxiliary files in `build-aux'.
libtoolize: copying file `libltdl/config/compile'
libtoolize: copying file `libltdl/config/config.guess'
libtoolize: copying file `libltdl/config/config.sub'
libtoolize: copying file `libltdl/config/depcomp'
libtoolize: copying file `libltdl/config/install-sh'
libtoolize: copying file `libltdl/config/missing'
libtoolize: copying file `libltdl/config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build-aux'.
libtoolize: You should add the contents of `build-aux/argz.m4' to `aclocal.m4'.
libtoolize: You should add the contents of `build-aux/ltoptions.m4' to
`aclocal.m4'.
libtoolize: You should add the contents of `build-aux/ltsugar.m4' to
`aclocal.m4'.
libtoolize: You should add the contents of `build-aux/ltversion.m4' to
`aclocal.m4'.
libtoolize: You should add the contents of `build-aux/lt~obsolete.m4'
to `aclocal.m4'.
libtoolize: putting macros in `libltdl/m4'.
libtoolize: copying file `libltdl/m4/argz.m4'
libtoolize: copying file `libltdl/m4/libtool.m4'
libtoolize: copying file `libltdl/m4/ltdl.m4'
libtoolize: copying file `libltdl/m4/ltoptions.m4'
libtoolize: copying file `libltdl/m4/ltsugar.m4'
libtoolize: copying file `libltdl/m4/ltversion.m4'
libtoolize: copying file `libltdl/m4/lt~obsolete.m4'
libtoolize: putting libltdl files in `libltdl'.
libtoolize: copying file `libltdl/COPYING.LIB'
libtoolize: copying file `libltdl/README'
libtoolize: copying file `libltdl/Makefile.am'
libtoolize: copying file `libltdl/configure.ac'
libtoolize: copying file `libltdl/aclocal.m4'
libtoolize: copying file `libltdl/Makefile.in'
libtoolize: copying file `libltdl/config-h.in'
libtoolize: copying file `libltdl/configure'
libtoolize: copying file `libltdl/argz_.h'
libtoolize: copying file `libltdl/argz.c'
libtoolize: copying file `libltdl/loaders/dld_link.c'
libtoolize: copying file `libltdl/loaders/dlopen.c'
libtoolize: copying file `libltdl/loaders/dyld.c'
libtoolize: copying file `libltdl/loaders/load_add_on.c'
libtoolize: copying file `libltdl/loaders/loadlibrary.c'
libtoolize: copying file `libltdl/loaders/shl_load.c'
libtoolize: copying file `libltdl/lt__dirent.c'
libtoolize: copying file `libltdl/lt__strl.c'
libtoolize: copying file `libltdl/libltdl/lt__alloc.h'
libtoolize: copying file `libltdl/libltdl/lt__dirent.h'
libtoolize: copying file `libltdl/libltdl/lt__glibc.h'
libtoolize: copying file `libltdl/libltdl/lt__private.h'
libtoolize: copying file `libltdl/libltdl/lt__strl.h'
libtoolize: copying file `libltdl/libltdl/lt_dlloader.h'
libtoolize: copying file `libltdl/libltdl/lt_error.h'
libtoolize: copying file `libltdl/libltdl/lt_system.h'
libtoolize: copying file `libltdl/libltdl/slist.h'
libtoolize: copying file `libltdl/loaders/preopen.c'
libtoolize: copying file `libltdl/lt__alloc.c'
libtoolize: copying file `libltdl/lt_dlloader.c'
libtoolize: copying file `libltdl/lt_error.c'
libtoolize: copying file `libltdl/ltdl.c'
libtoolize: copying file `libltdl/ltdl.h'
libtoolize: copying file `libltdl/slist.c'
libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.ac'.
libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in
configure.ac.
libtoolize: Consider using `AC_CONFIG_MACRO_DIR([libltdl/m4])' in configure.ac.
doc/Makefile.am:86: patsubst %, %/package.xml, $(^D: non-POSIX variable name
doc/Makefile.am:86: (probably a GNU make extension)
doc/Makefile.am:94: patsubst %, %/package.xml, $(^D: non-POSIX variable name
doc/Makefile.am:94: (probably a GNU make extension)
doc/Makefile.am:102: patsubst %, %/package.xml, $(^D: non-POSIX variable name
doc/Makefile.am:102: (probably a GNU make extension)
doc/Makefile.am:110: patsubst %, %/package.xml, $(^D: non-POSIX variable name
doc/Makefile.am:110: (probably a GNU make extension)
doc/Makefile.am:118: patsubst %, %/package.xml, $(^D: non-POSIX variable name
doc/Makefile.am:118: (probably a GNU make extension)
doc/Makefile.am:126: patsubst %, %/package.xml, $(^D: non-POSIX variable name
doc/Makefile.am:126: (probably a GNU make extension)
doc/Makefile.am:134: patsubst %, %/package.xml, $(^D: non-POSIX variable name
doc/Makefile.am:134: (probably a GNU make extension)
packages/gtk/Makefile.am:54: `%'-style pattern rules are a GNU make extension
autoreconf: Leaving directory `.'

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

A lot of warnings, but nothing critical…
then I run "./configure --prefix=/opt/smalltalk --with-gmp=/sw
--enable-ltdl-install"

It works mostly fine, except 1 fragment:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
…
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
./configure: line 17292: =$: command not found
./configure: line 17293: =$: command not found
./configure: line 17294: =$: command not found
./configure: line 17295: =$: command not found
./configure: line 17296: =$: command not found
./configure: line 17297: =$: command not found
./configure: line 17298: =$: command not found
./configure: line 17299: =$: command not found
./configure: line 17300: =$: command not found
./configure: line 17301: =$: command not found
./configure: line 17302: =$: command not found
./configure: line 17303: =$: command not found
./configure: line 17304: =$: command not found
./configure: line 17305: =$: command not found
./configure: line 17306: =$: command not found
./configure: line 17307: =$: command not found
./configure: line 17308: =$: command not found
./configure: line 17309: =$: command not found
./configure: line 17310: =$: command not found
./configure: line 17311: =$: command not found
./configure: line 17312: =$: command not found
./configure: line 17313: =$: command not found
./configure: line 17314: =$: command not found
./configure: line 17315: =$: command not found
./configure: line 17316: =$: command not found
./configure: line 17317: =$: command not found
./configure: line 17318: =$: command not found
./configure: line 17319: =$: command not found
./configure: line 17320: =$: command not found
./configure: line 17321: =$: command not found
./configure: line 17322: =$: command not found
./configure: line 17323: =$: command not found
./configure: line 17324: =$: command not found
./configure: line 17325: =$: command not found
./configure: line 17326: =$: command not found
./configure: line 17327: =$: command not found
./configure: line 17328: =$: command not found
./configure: line 17329: =$: command not found
./configure: line 17330: =$: command not found
./configure: line 17331: =$: command not found
./configure: line 17332: =$: command not found
./configure: line 17333: =$: command not found
./configure: line 17334: =$: command not found
./configure: line 17355: = -fno-common -DPIC -fomit-frame-pointer:
command not found
configure: appending configuration tag "LIBGST" to libtool

C library features:
…
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

after it finishes, I run "make", which results in error:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
…
/bin/sh ../libtool --tag=CC   --mode=compile gcc-4.2 -DHAVE_CONFIG_H
-I. -I..   -I/sw/local/include -I/sw/include -I/usr/local/include
-I/usr/include -I/sw/../include  -g -O2 -Wall -Wno-strict-aliasing
-Wno-switch -fno-gcse -fstrict-aliasing -Wdeclaration-after-statement
-Wno-format -Wpointer-arith -Wno-pointer-sign -Wwrite-strings  -MT
ltdl.lo -MD -MP -MF .deps/ltdl.Tpo -c -o ltdl.lo ltdl.c
libtool: compile:  gcc-4.2 -DHAVE_CONFIG_H -I. -I..
-I/sw/local/include -I/sw/include -I/usr/local/include -I/usr/include
-I/sw/../include -g -O2 -Wall -Wno-strict-aliasing -Wno-switch
-fno-gcse -fstrict-aliasing -Wdeclaration-after-statement -Wno-format
-Wpointer-arith -Wno-pointer-sign -Wwrite-strings -MT ltdl.lo -MD -MP
-MF .deps/ltdl.Tpo -c ltdl.c  -fno-common -DPIC -o .libs/ltdl.o
ltdl.c: In function 'rpl_argz_append':
ltdl.c:583: error: 'ENOMEM' undeclared (first use in this function)
ltdl.c:583: error: (Each undeclared identifier is reported only once
ltdl.c:583: error: for each function it appears in.)
ltdl.c: In function 'rpl_argz_create_sep':
ltdl.c:627: error: 'ENOMEM' undeclared (first use in this function)
ltdl.c: In function 'rpl_argz_insert':
ltdl.c:695: error: 'ENOMEM' undeclared (first use in this function)
ltdl.c: At top level:
ltdl.c:855: error: 'LTDL_OBJDIR' undeclared here (not in a function)
ltdl.c:2146: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
ltdl.c: In function 'tryall_dlopen_module':
ltdl.c:2481: warning: implicit declaration of function 'sprintf'
ltdl.c:2481: warning: incompatible implicit declaration of built-in
function 'sprintf'
ltdl.c: In function 'argzize_path':
ltdl.c:2626: error: 'ENOMEM' undeclared (first use in this function)
ltdl.c: In function 'find_file_callback':
ltdl.c:2726: error: 'FILE' undeclared (first use in this function)
ltdl.c:2726: error: 'pfile' undeclared (first use in this function)
ltdl.c:2726: error: invalid operands to binary * (have 'const char *' and 'int')
ltdl.c:2726: error: expected expression before ')' token
ltdl.c:2726: error: invalid operands to binary * (have 'const char *' and 'int')
ltdl.c:2726: warning: statement with no effect
ltdl.c:2727: warning: ISO C90 forbids mixed declarations and code
ltdl.c:2733: warning: implicit declaration of function 'fopen'
ltdl.c:2733: error: assignment of read-only location
ltdl.c:2735: warning: initialization discards qualifiers from pointer
target type
ltdl.c: At top level:
ltdl.c:2748: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
ltdl.c:2753: error: expected identifier or '(' before '{' token
ltdl.c: In function 'try_dlopen':
ltdl.c:3082: warning: assignment discards qualifiers from pointer target type
ltdl.c:3109: error: 'FILE' undeclared (first use in this function)
ltdl.c:3109: error: 'file' undeclared (first use in this function)
ltdl.c:3109: error: invalid operands to binary * (have 'const char *'
and 'const char *')
ltdl.c:3109: warning: statement with no effect
ltdl.c:3110: warning: ISO C90 forbids mixed declarations and code
ltdl.c:3135: warning: implicit declaration of function 'isalnum'
ltdl.c:3158: warning: implicit declaration of function 'find_file'
ltdl.c:3158: warning: statement with no effect
ltdl.c:3165: warning: statement with no effect
ltdl.c:3185: warning: statement with no effect
ltdl.c:3201: warning: implicit declaration of function 'fclose'
ltdl.c:3207: warning: implicit declaration of function 'feof'
ltdl.c:3209: warning: implicit declaration of function 'fgets'
ltdl.c:3277: warning: assignment discards qualifiers from pointer target type
ltdl.c: In function 'lt_dlopenext':
ltdl.c:3458: warning: assignment discards qualifiers from pointer target type
ltdl.c: In function 'lt_argz_insert':
ltdl.c:3513: error: 'ENOMEM' undeclared (first use in this function)
make[2]: *** [ltdl.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

-- 
Alexey Zakhlestin
http://www.milkfarmsoft.com/




reply via email to

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