I am attempting to compile cvstrac (Wiki) for Solaris 9 ad Solaris 10. I get the following error(s):
$ make
gcc -g -O0 -Wall -o cvstrac attach.o browse.o cgi.o common.o cvs.o db.o format.o git.o history.o index.o login.o main.o md5.o rss.o search.o setup.o svn.o test.o throttle.o ticket.o timeline.o tools.o user.o view.o wiki.o wikiinit.o -lsqlite3 -lcrypt -lm
Undefined first referenced
symbol in file
bind cgi.o
accept cgi.o
listen cgi.o
socket cgi.o
fdatasync /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../../libsqlite3.so
setsockopt cgi.o
getpeername cgi.o
inet_ntoa cgi.o
ld: fatal: Symbol referencing errors. No output written to cvstrac
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `cvstrac'
I am unfamiliar with the linking protocol of gcc. It looks like I am missing a reference to some sort of networking binaries library in my Makefile.
Here is my LD_LIBRARY_PATH environment setting:
$ echo $LD_LIBRARY_PATH
/usr/openwin/lib:/usr/lib:/usr/local/lib:/lib
Has anyone successfully compiled cvstrac for Solaris?
Here is the Makefile. It is very simple and straightforward. It is also possible that I am using the wrong cvstrac Makefile.
$ cat Makefile
#!/usr/bin/make
#
#### The toplevel directory of the source tree.
#
SRCDIR = /export/home/afsas/cvstrac/cvstrac-2.0.1
#### C Compiler and options for use in building executables that
# will run on the platform that is doing the build.
#
BCC = gcc -g -O2
#### The suffix to add to executable files. ".exe" for windows.
# Nothing for unix.
#
E =
#### C Compile and options for use in building executables that
# will run on the target platform. This is usually the same
# as BCC, unless you are cross-compiling.
#
#TCC = gcc -O6
TCC = gcc -g -O0 -Wall
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
#### Extra arguments for linking against SQLite
#
LIBSQLITE = -lsqlite3 -lcrypt -lm
#### Installation directory
#
INSTALLDIR = /var/
# You should not need to change anything below this line
###############################################################################
include $(SRCDIR)/main.mk
The following software is installed on this server:
cvs-1.11.22
gcc-3.3.2
ncurses-5.6
readline-5.2
diffutils-2.8.1
libiconv-1.11
rcs-5.7
sqlite-3.3.6
$ make
gcc -g -O0 -Wall -o cvstrac attach.o browse.o cgi.o common.o cvs.o db.o format.o git.o history.o index.o login.o main.o md5.o rss.o search.o setup.o svn.o test.o throttle.o ticket.o timeline.o tools.o user.o view.o wiki.o wikiinit.o -lsqlite3 -lcrypt -lm
Undefined first referenced
symbol in file
bind cgi.o
accept cgi.o
listen cgi.o
socket cgi.o
fdatasync /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../../libsqlite3.so
setsockopt cgi.o
getpeername cgi.o
inet_ntoa cgi.o
ld: fatal: Symbol referencing errors. No output written to cvstrac
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `cvstrac'
I am unfamiliar with the linking protocol of gcc. It looks like I am missing a reference to some sort of networking binaries library in my Makefile.
Here is my LD_LIBRARY_PATH environment setting:
$ echo $LD_LIBRARY_PATH
/usr/openwin/lib:/usr/lib:/usr/local/lib:/lib
Has anyone successfully compiled cvstrac for Solaris?
Here is the Makefile. It is very simple and straightforward. It is also possible that I am using the wrong cvstrac Makefile.
$ cat Makefile
#!/usr/bin/make
#
#### The toplevel directory of the source tree.
#
SRCDIR = /export/home/afsas/cvstrac/cvstrac-2.0.1
#### C Compiler and options for use in building executables that
# will run on the platform that is doing the build.
#
BCC = gcc -g -O2
#### The suffix to add to executable files. ".exe" for windows.
# Nothing for unix.
#
E =
#### C Compile and options for use in building executables that
# will run on the target platform. This is usually the same
# as BCC, unless you are cross-compiling.
#
#TCC = gcc -O6
TCC = gcc -g -O0 -Wall
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
#### Extra arguments for linking against SQLite
#
LIBSQLITE = -lsqlite3 -lcrypt -lm
#### Installation directory
#
INSTALLDIR = /var/
# You should not need to change anything below this line
###############################################################################
include $(SRCDIR)/main.mk
The following software is installed on this server:
cvs-1.11.22
gcc-3.3.2
ncurses-5.6
readline-5.2
diffutils-2.8.1
libiconv-1.11
rcs-5.7
sqlite-3.3.6