[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How can I statically link CVS on Solaris 8?
From: |
Neis, Mark |
Subject: |
How can I statically link CVS on Solaris 8? |
Date: |
Fri, 16 Aug 2002 12:21:21 +0200 |
Hi !
First, let me say that I'm fairly new to this, so bear with me should I make
stupid
assumptions.
I'm trying to get a statically linked CVS binary on a Sparc/Solaris 8 box in
order to set
up a chrooted environment.
So I first compiled the sources with the regular Makefile, logged the
compiler's output
to a file and then re-used the line that starts the linking process and
inserted '-static':
| gcc -static add.o admin.o buffer.o checkin.o checkout.o classify.o
client.o commit.o
| [...lots of object files...]
| error.o zlib.o ../lib/libcvs.a ../zlib/libz.a ../diff/libdiff.a -lxnet
-o cvs
This is the way Pascal J. Bourguignon handles things in his 'Chrooted SSH
CVS
Management scripts' [1] (based on those from idealx.org). Apparently, it
works
this way on SuSE Linux.
Unfortunately, Solaris keeps telling me that -lxnet was missing:
| ld: fatal: library -lxnet: not found
| ld: fatal: File processing errors. No output written to cvs
| collect2: ld returned 1 exit status
So had a second go and tried to add the options to the Makefile in the src
directory:
| LDFLAGS = -Xlinker -static
The output then looks as follows:
| gcc add.o admin.o buffer.o checkin.o checkout.o classify.o client.o
commit.o
| [... lots of object files...]
| ../lib/libcvs.a ../zlib/libz.a ../diff/libdiff.a -lxnet -Xlinker -static
-o cvs
| ld: fatal: option -dy and -a are incompatible
| ld: fatal: Flags processing errors
| collect2: ld returned 1 exit status
| make: *** [cvs] Error 1
Conflicting options, telling the linker to link dynamically <-> statically?
Well, there is no -dy option in the Makefile. Is this implicitly set
somewhere ?
I guess I'm stuck here. I'd kindly appreciate any hints and help.
If you feel that this ML is the wrong place to deal with this question, it
would
be nice if you could tell me a more suitable forum.
Mark Neis
[1] http://informatimago.free.fr/i/linux/chrooted-ssh-cvs.en.html
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How can I statically link CVS on Solaris 8?,
Neis, Mark <=