[gambit-list] can't find ___main_char

Hendrik Boom hendrik at topoi.pooq.com
Fri Nov 18 11:47:20 EST 2011


Working from gambc-v4_6_1-devel.tgz

configure went fine.  Fore reference, teh command was 

./configure --enable-multiple-versions --enable-single-host --enable-gcc-opts ---enable-cplusplus --enable-shared

but it failed on make.

I got lots of warnings about
warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

a few of

warning: "__USE_LARGEFILE64" redefined [enabled by default]

and at the end,

g++ -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fmodulo-sched -freschedule-modulo-scheduled-loops -fomit-frame-pointer -fPIC -fno-common -mieee-fp   -rdynamic  -I"../include"  -o "gsi"    _gsi.o _gsi_.o "../lib/libgambc.so" -lutil -ldl  libgambcgsi.so
_gsi_.o: In function `main':
_gsi_.c:(.text+0x47): undefined reference to `___main_char'
collect2: ld returned 1 exit status
make[1]: *** [gsi] Error 1
make[1]: Leaving directory `/home/hendrik/dv/lang/gambit/gambit/gsi'
make: *** [all-recursive] Error 1
hendrik at notlookedfor:~/dv/lang/gambit/gambit$ 

Now the symbol ___main_char occurs in os_base.c.  Here's the output from compiling os_base.c.  Let me know if you need the full compilation log.  It's rather long and tedious.

g++ -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fmodulo-sched -freschedule-modulo-scheduled-loops -fomit-frame-pointer -fPIC -fno-common -mieee-fp   -I"../include" -c -o "os_base.o" -I. -DHAVE_CONFIG_H -D___GAMBCDIR="\"/usr/local/Gambit-C/v4.6.1\"" -D___SYS_TYPE_CPU="\"i686\"" -D___SYS_TYPE_VENDOR="\"pc\"" -D___SYS_TYPE_OS="\"linux-gnu\"" -D___CONFIGURE_COMMAND="\"./configure --enable-multiple-versions --enable-single-host --enable-gcc-opts --enable-cplusplus --enable-shared\"" -D___OBJ_EXTENSION="\".o\"" -D___EXE_EXTENSION="\"\"" -D___BAT_EXTENSION="\"\"" -D___PRIMAL os_base.c -D___LIBRARY
In file included from os_base.h:8:0,
                 from os_base.c:13:
os.h:1043:0: warning: "__USE_LARGEFILE64" redefined [enabled by default]
/usr/include/features.h:280:0: note: this is the location of the previous definition
os_base.c: In function ‘void ___fatal_error(char**)’:
os_base.c:630:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:637:23: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c: At global scope:
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1099:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c: In function ‘int ___os_err_code_to_string(int)’:
os_base.c:1194:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1200:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
os_base.c:1248:15: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]




More information about the Gambit-list mailing list