[Mono-devel-list] Beta 1 Solaris 8 Build Issue

Sandy Dunlop sandy at sorn.net
Fri May 7 01:58:31 EDT 2004


It looks like it might be related to the order the libraries are specified on 
the command line for the linker. The undefined symbols are definitely in the 
NSL library. I didn't have any problems compiling 0.31 on Solaris 9 (can't 
remember which compiler I used).

On Wednesday 05 May 2004 21:48, Chris Alton wrote:
> Hi,
>
> I posted earlier about the build issue I was having with mono on Solaris 8
> (using 0.31 mono). It seems I am still having this issue. I've included the
> issue below. Has anyone had the same issue or can help me out with this? If
> you need me to post anything else regarding this issue let me know. Thanks.
> (This is using GCC 3.4.0)
>
> creating libmint.la
> (cd .libs && rm -f libmint.la && ln -s ../libmint.la libmint.la)
> source='main.c' object='main.o' libtool=no \
> depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
> depmode=gcc3 /bin/bash ../../depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libgc/include
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include   -threads
> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT
> -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
> -D_XOPEN_SOURCE_EXTENDED=1 -DNO_UNALIGNED_ACCESS  -g -O2
> -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes
> -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes
> -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align
> -Wwrite-strings -Wno-char-subscripts -c `test -f 'main.c' || echo
> './'`main.c
> /bin/bash ../../libtool --mode=link gcc  -g -O2 -fno-strict-aliasing -g
> -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
> -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith
> -Wno-cast-qual -Wcast-align -Wwrite-strings -Wno-char-subscripts   -o mint
> main.o libmint.la -lrt  -lsocket -lnsl -lxnet -lpthread -lm -lrt
> gcc -g -O2 -fno-strict-aliasing -g -Wall -Wunused -Wmissing-prototypes
> -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes
> -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align
> -Wwrite-strings -Wno-char-subscripts -o .libs/mint main.o 
> ./.libs/libmint.so
> -L/usr/local/lib /usr/local/lib/libgthread-2.0.so
> /usr/local/lib/libgmodule-2.0.so -ldl /usr/local/lib/libglib-2.0.so
> -lsocket -lnsl -lxnet -lpthread -lm -lrt -Wl,--rpath -Wl,/usr/local/lib
> ./.libs/libmint.so: undefined reference to `listen at SUNW_1.1'
> ./.libs/libmint.so: undefined reference to `accept at SUNW_1.1'
> ./.libs/libmint.so: undefined reference to `recv at SUNW_1.1'
> ./.libs/libmint.so: undefined reference to `recvfrom at SUNW_1.1'
> ./.libs/libmint.so: undefined reference to `shutdown at SUNW_1.1'
> ./.libs/libmint.so: undefined reference to `getsockname at SUNW_1.1'
> ./.libs/libmint.so: undefined reference to `getpeername at SUNW_1.1'
> ./.libs/libmint.so: undefined reference to `setsockopt at SUNW_1.1'
> ./.libs/libmint.so: undefined reference to `send at SUNW_1.1'
> collect2: ld returned 1 exit status
> gmake[3]: *** [mint] Error 1
> gmake[3]: Leaving directory
> `/export/home/calton/mono/mono-0.91/mono/interpreter'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/export/home/calton/mono/mono-0.91/mono'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/export/home/calton/mono/mono-0.91'
> gmake: *** [all] Error 2
>
> Chris Alton
> JDA Software Group
> Intellect Division
> 480.308.3041



More information about the Mono-devel-list mailing list