From: Bil Kleb Date: 2002-07-27T01:04:46+09:00 Subject: Re: Compiling ruby on SGI origins Yukihiro Matsumoto wrote: > > Kleb wrote: > | > |ld32: FATAL 9 : I/O error (-ltk8.0): No such file or directory > > You need to supply the directory where libtk8.0 is, by --with-tcl-lib= > to configure, or extconf.rb. Shouldn't configure have complained about not finding tk lib before I got into the make? (it's in /usr/local/lib.) Anyway, I did this and now I'm getting the same error on the other SGI... > | gcc -fPIC -g -O2 -Dsocklen_t=int -I. -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 > |-I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -I/u/gnoffo/local/include -DHAVE_NETINET_UDP_H > |-DHAVE_INET_NTOP -DHAVE_INET_PTON -DHAVE_GETSERVBYPORT -DHAVE_ARPA_INET_H > |socket.c:93: warning: `_SS_ALIGNSIZE' redefined > > It shouldn't happen since redefinition should be detected by > extconf.rb. Could you show me your ext/extmk.log? It's 17,000 lines long (lots of blank lines), do you want the whole thing? In the mean time, here are some out-of-context highlights, $ egrep "(ERROR|FATAL)" extmk.log ld32: FATAL 9 : I/O error (-lgdbm): No such file or directory ld32: ERROR 33 : Unresolved text symbol "setresuid" -- 1st referenced by /scratch2/tmpdir.17427989a/cca0pZ3z1.o. ld32: ERROR 33 : Unresolved text symbol "openpty" -- 1st referenced by /scratch2/tmpdir.17427989a/cca11j5p1.o. ld32: FATAL 9 : I/O error (-lgdbm): No such file or directory ld32: FATAL 9 : I/O error (-lncurses): No such file or directory ld32: FATAL 12 : Expecting n32 objects: /lib/libc.so.1 is o32. ld32: ERROR 33 : Unresolved text symbol "hsterror" -- 1st referenced by /scratch2/tmpdir.17427989a/cca130s41.o. and the last section: # 1 "conftest.c" 2 gcc -o conftest -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -g -O2 -I/u/gnoffo/local/include -L${prefix}/lib -Dsocklen_t=int -I. -Dss_family=__ss_family -Dss_len=__ss_len conftest.c -lsocket -lnsl -lc -ldl -lcrypt -lm ld32: WARNING 84 : /usr/lib32/libsocket.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/libnsl.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/libdl.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/libm.so is not used for resolving any symbol. ld32: WARNING 127: Two shared objects with the same soname, /usr/lib32/mips3/libc.so and /usr/lib32/libc.so, have been been linked. This is probably due to a missing -L specification. Ignoring the latter. gcc -o conftest -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -g -O2 -I/u/gnoffo/local/include -L${prefix}/lib -Dsocklen_t=int -I. -Dss_family=__ss_family -Dss_len=__ss_len conftest.c -lsocket -lnsl -lc -ldl -lcrypt -lm ld32: WARNING 84 : /usr/lib32/libsocket.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/libnsl.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/libdl.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/libm.so is not used for resolving any symbol. ld32: WARNING 127: Two shared objects with the same soname, /usr/lib32/mips3/libc.so and /usr/lib32/libc.so, have been been linked. This is probably due to a missing -L specification. Ignoring the latter. ld32: ERROR 33 : Unresolved text symbol "hsterror" -- 1st referenced by /scratch2/tmpdir.17427989a/cca130s41.o. Use linker option -v to see when and which objects, archives and dsos are loaded. ld32: INFO 152: Output file removed because of error. gcc -o conftest -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -g -O2 -I/u/gnoffo/local/include -L${prefix}/lib -Dsocklen_t=int -I. -Dss_family=__ss_family -Dss_len=__ss_len conftest.c -lsocket -lnsl -lc -ldl -lcrypt -lm conftest.c: In function `t': conftest.c:2: `hsterror' undeclared (first use in this function) conftest.c:2: (Each undeclared identifier is reported only once conftest.c:2: for each function it appears in.) gcc -o conftest -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -I/u/.realmounts/le/gnoffo/local/ruby-1.6.7 -g -O2 -I/u/gnoffo/local/include -L${prefix}/lib -Dsocklen_t=int -I. -Dss_family=__ss_family -Dss_len=__ss_len conftest.c -lsocket -lnsl -lc -ldl -lcrypt -lm ld32: WARNING 84 : /usr/lib32/libsocket.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/libdl.so is not used for resolving any symbol. ld32: WARNING 84 : /usr/lib32/libm.so is not used for resolving any symbol. ld32: WARNING 127: Two shared objects with the same soname, /usr/lib32/mips3/libc.so and /usr/lib32/libc.so, have been been linked. This is probably due to a missing -L specification. Ignoring the latter. -- Bil