On 17 May 2011 22:46, <de...@podoll.com> wrote: > I am trying to install samba 4 on a CentOS 5.6 X86_64 with all update > installed following the directions from > http://wiki.samba.org/index.php/Samba4/HOWTO > > > Installed git and am able to use that to pull down latest version of samba > source code > > ran ./configure.developer (can post output from this long file if needed) > > Once that was done I ran the make command and got this at the end > > [3364/3441] Linking default/source3/smbd/smbd > default/source3/libsamba3core.so: undefined reference to `cap_free' > default/source3/libsamba3core.so: undefined reference to `cap_set_flag' > default/source3/libsamba3core.so: undefined reference to `cap_get_proc' > default/source3/libsamba3core.so: undefined reference to `cap_set_proc' > collect2: ld returned 1 exit status > Waf: Leaving directory `/samba-master/bin' > Build failed: -> task failed (err #1): > {task: cc_link epmd_7.o,server_98.o,msg_idmap_98.o -> smbd} > make: *** [all] Error 1
I got the same errors trying to build on an old Ubuntu box. I believe I got around it by disabling the --as-needed option passed to the linker with the following patch to the top level wscript file: diff --git a/wscript b/wscript index 92c2594..93fc992 100755 --- a/wscript +++ b/wscript @@ -123,8 +123,8 @@ def configure(conf): # strict as the strictest OS we support, so adding this here # allows us to find problems on our development hosts faster. # It also results in faster load time. - if sys.platform != "openbsd4": - conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) +# if sys.platform != "openbsd4": +# conf.env.asneeded_ldflags = conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) if not conf.CHECK_NEED_LC("-lc not needed"): conf.ADD_LDFLAGS('-lc', testflags=False) > I can provide a full output of the make if required also > > I was able to install samba 4 following the same directions on this system > around a month or so ago but I am reinstalling to because I wanted to get a > clean version and make this one the PDC on the network because it is a > physical system not virtual like the current samba 4 PDC I have running > right now. -- Michael Wood <esiot...@gmail.com> -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba