×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

cvstrac compile - ld: fatal: collect2: ld returned 1 exit status

cvstrac compile - ld: fatal: collect2: ld returned 1 exit status

cvstrac compile - ld: fatal: collect2: ld returned 1 exit status

(OP)
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/www/cgi-bin


# 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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close