[Samba] CentOS 5.6 X86_64 install problem

Michael Wood esiotrot at gmail.com
Wed May 18 14:20:10 MDT 2011


On 18 May 2011 20:31, Taylor, Jonn <jonnt at taylortelephone.com> wrote:
>
> On 05/18/2011 10:30 AM, Michael Wood wrote:
>> On 17 May 2011 22:46,  <derek at 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)
[...]
> Compiles fine on Debian Lenny with current git.

Yes, as I said this was an old box.  Not sure what the cause is, but
removing --as-needed got it compiling.

-- 
Michael Wood <esiotrot at gmail.com>


More information about the samba mailing list