[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

shared libs vs static compile -- help



according to the instructions i've seen i'm supposed to add the
argument "-static" to this command:

gcc add.o admin.o buffer.o checkin.o checkout.o classify.o client.o commit.o create_adm.o cvsrc.o diff.o edit.o entries.o expand_path.o fileattr.o find_names.o hardlink.o hash.o history.o ignore.o import.o lock.o log.o login.o logmsg.o main.o mkmodules.o modules.o myndbm.o no_diff.o parseinfo.o patch.o rcs.o rcscmds.o recurse.o release.o remove.o repos.o root.o rtag.o scramble.o server.o status.o tag.o update.o watch.o wrapper.o vers_ts.o subr.o filesubr.o run.o version.o error.o zlib.o ../lib/libcvs.a ../diff/libdiff.a -l z -lcrypt   -o cvs

if i reissue that command verbatim, all goes well. no errors.
results seem good.

but if i include "-static" (doesn't matter if i append it to the
end of the command (as last arg), or put it right after "gcc"
(making it the first arg) i get

	/usr/lib/libc.a(regex.o)(.data+0x4): multiple definition of `re_max_failures'
	../lib/libcvs.a(regex.o):/usr/src/cvs-1.10.7/lib/regex.c:115: first defined here
	collect2: ld returned 1 exit status

suggestions? what do i need to look for?

[or -- preferably -- is there an apt-gettable debian cvs-server
available?]

--

alternative: maybe i can go ahead and make the required
libraries available to the chrooted jail...

if so, how do i found out what libs i'd need to copy?

-- 
DEBIAN NEWBIE TIP #37 from Karl M. Hegbloom <karlheg@hegbloom.net> 
:
Need to SECURELY COPY DIRECTORIES BETWEEN MACHINES? With pipes,
you can do just about anything -- and ssh keeps it secure:
	$ tar -C /source -clf - srcdir \
	  | ssh remoteHost 'buffer -m 8m -p 75 | tar -C /dest -xpf -'
(Note that there's another pipe inside the ssh command that's
running on the remote side. Cool, eh?) If the link is slow, you
may want to use the -C option to "ssh", or put that in your
~/.ssh/config for that host.

Also see http://newbieDoc.sourceForge.net/ ...



Reply to: