[gambit-list] gambit-c and Subsystem for UNIX-based applications

Cristian Baboi cristian.baboi at gmail.com
Sun Jun 17 12:39:01 EDT 2012


After changing os.h to define NETDB_INTERNAL and NETDB_SUCCESS, I get:

     gcc: unrecognized option `-rdynamic'

After removing -rdynamic, I get

rm -f libgambc.so
/opt/gcc.4.2/bin/gcc -shared -Wl,-soname,libgambc.so -o libgambc.so main.o  
setup.o mem.o c_intf.o os.o os_base.o os_time.o os_shell.o os_files.o  
os_dyn.o os_tty.o os_io.o _kernel.o _system.o _num.o _s
td.o  _eval.o _io.o _nonstd.o _thread.o _repl.o _gambc.o  -ldl -lm
/opt/gcc.4.2/lib/gcc/i586-pc-interix3/4.2.0/../../../../i586-pc-interix3/bin/ld:  
libgambc.so: No such file: No such file or directory
collect2: ld returned 1 exit status
*** Error code 1

Stop in /dev/fs/C/Users/cristi/Downloads/gambit-c/gambc-v4_6_6/lib (line  
146 of makefile).
*** Error code 1

Stop in /dev/fs/C/Users/cristi/Downloads/gambit-c/gambc-v4_6_6 (line 405  
of makefile).




With CC=/bin/cc I get cc: unknown option -n

În data de Sun, 17 Jun 2012 15:06:36 +0300, Cristian Baboi  
<cristian.baboi at gmail.com> a scris:

> After replacing config.sub and config.guess from:
>   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
>   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
>
> then runnig from C-Shell:
>   ./configure --enable-single-host --enable-c-opts --enable-inline-jumps  
> --enable-shared
>   make bootstrap
>
> gives:
> os_base.c: In function `___err_code_from_h_errno':
> os_base.c:889: error: `NETDB_INTERNAL' undeclared (first use in this  
> function)
> os_base.c:889: error: (Each undeclared identifier is reported only once
> os_base.c:889: error: for each function it appears in.)
> os_base.c:904: error: `NETDB_SUCCESS' undeclared (first use in this  
> function)


More information about the Gambit-list mailing list