Ticket UUID: | 6981de95b677bcc5ba7da4818015f1e5c049463f | ||
Title: | Makefile for OpenSolaris is not correct | ||
Status: | Open | Type: | Build_Problem |
Severity: | Important | Priority: | |
Subsystem: | Resolution: | Open | |
Last Modified: | 2009-12-29 20:30:15 | ||
Version Found In: | Fossil-86cbb69af2 | ||
Description & Comments: | |||
With following diff of Makefile,
root@600m:/export/home/tjyang/Fossil-076f7adff2# diff Makefile Makefile.orig 39c39 < # LIB += -lsocket --- > # LIB += lsocket 41c41 < LIB += -lsocket -lnsl --- > # LIB += -lsocket -lnsl root@600m:/export/home/tjyang/Fossil-076f7adff2# I was able to build fossil on opensolaris b124. root@600m:/export/home/tjyang/Fossil-076f7adff2# uname -a SunOS 600m 5.11 snv_122 i86pc i386 i86pc Solaris root@600m:/export/home/tjyang/Fossil-076f7adff2# cat /etc/release OpenSolaris Development snv_122 X86 Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 28 August 2009 root@600m:/export/home/tjyang/Fossil-076f7adff2# ls -l fossil -rwxr-xr-x 1 root root 1582864 2009-10-13 23:37 fossil root@600m:/export/home/tjyang/Fossil-076f7adff2# stephan added on 2009-10-17 12:07:44: anonymous added on 2009-10-18 02:26:59: < # LIB += -lsocket --- > # LIB += lsocket tj yang anonymous added on 2009-12-29 19:15:49: 1. .o sync.o tag.o th_main.o timeline.o tkt.o tktsetup.o undo.o update.o url.o user.o verify.o vfile.o wiki.o wikiformat.o winhttp.o xfer.o zip.o sqlite3.o th.o th_lang.o -lz -lsocket Undefined first referenced symbol in file gethostbyname http_socket.o (symbol belongs to implicit dependency /lib/libnsl.so.1) inet_addr http_socket.o (symbol belongs to implicit dependency /lib/libnsl.so.1) inet_ntoa cgi.o (symbol belongs to implicit dependency /lib/libnsl.so.1) ld: fatal: symbol referencing errors. No output written to fossil collect2: ld returned 1 exit status gmake: *** [fossil] Error 1 root@600m:/pub/fossil/Fossil-86cbb69af2# anonymous added on 2009-12-29 19:24:56:
--- Makefile.orig 2009-12-29 13:20:21.449765912 -0600 +++ Makefile 2009-12-29 13:20:54.935476106 -0600 @@ -35,9 +35,7 @@ # chroot jail. # LIB = -lz $(LDFLAGS) -# If you're on OpenSolaris: -# LIB += lsocket -# Solaris 10 needs: +# Solaris 10/OpenSolaris needs: # LIB += -lsocket -lnsl # My assumption is that the Sol10 flags will work for Sol8/9 and possibly 11. anonymous added on 2009-12-29 20:19:21:
anonymous added on 2009-12-29 20:30:15:
gcc info on opensolaris 130. root@600m:/pub/fossil/Fossil-86cbb69af2# gcc -v Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs Configured with: /builds2/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure <snip> -languages=c,c++,f77,objc --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-20050802) root@600m:/pub/fossil/Fossil-86cbb69af2# |