[Samba] Re: compile samba 3.0.23c statically

Rex Dieter rdieter at math.unl.edu
Mon Oct 23 20:19:35 GMT 2006


Christoph Fuchs wrote:

> Hello list,
> 
> I'm trying to compile the current stable version of samba statically.
> The goal is that smbd / etc. don't need any libraries.
...
> but this failed with the message
> 
> Linking bin/smbd
> /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld:
> cannot find -lcap
> collect2: ld returned 1 exit status

You're missing the libcap.a static library required for static linking.

-- Rex



More information about the samba mailing list