[Samba] Samba 3.0.0rc3 : HPUX Makefile problem
Peter Van Biesen
peter.vanbiesen at vlafo.be
Tue Sep 16 09:09:06 GMT 2003
do a strings or nm to see if the symbol is in there, if it is, check
your library search path. My experience is to always link statically,
that way, if it runs, it runs even after installing buggy quality
patches from HP.
I have installed the rc3 on several machines, but it only runs on
machines with an gcc installed on it. On all others it cores, possibly
runtime libraries ... :-\ hence my preference for static linking ...
Peter.
Ryan Novosielski wrote:
>I tried +z and I am still having some trouble... different error this
>time, which I suppose is helpful, but can someone tell me how I'd go about
>resolving this (this is how the executables behave when compiled with
>HP ANSIc):
>
># ./net
>/usr/lib/dld.sl: Unresolved symbol: smb_register_charset (code) from
>/opt/samba-3.0.0rc4/lib/charset/CP850.sl
>Abort(coredump)
>
>..the 'smbd' binary just does "Abort" and that's it.
>
>---- _ _ _ _ ___ _ _ _
>|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
>|$&| |__| | | |__/ | \| _| | novosirj at umdnj.edu - 973/972.0922 (2-0922)
>\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
>
>On Mon, 15 Sep 2003, Ryan Novosielski wrote:
>
>
>
>>I'm not actually using gcc. :-D I could be (though I prefer to use native
>>compilers whenever possible). Are the native compilers no longer
>>supported? During earlier correspondance with Samba maintainers, they said
>>that they actively attempt to keep native compilers working properly.
>>
>>---- _ _ _ _ ___ _ _ _
>>|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
>>|$&| |__| | | |__/ | \| _| | novosirj at umdnj.edu - 973/972.0922 (2-0922)
>>\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
>>
>>On Mon, 15 Sep 2003, Peter Van Biesen wrote:
>>
>>
>>
>>>Alter CFLAGS in the makefile, add -fpic ( if you're using gcc ), make
>>>clean, make ...
>>>
>>>in the rc3 they added files that are compiled with -fPIC but not all
>>>files that needed it, so on HPUX this still doesn't work, so you need to
>>>add them manually. +z is the option for the HP C- compiler, as ld
>>>doesn't know you're actually using gcc ;-).
>>>
>>>Hope this helps,
>>>
>>>Peter.
>>>
>>>Ryan Novosielski wrote:
>>>
>>>
>>>
>>>>How does one get past this problem, which is the one that stalls my
>>>>compile:
>>>>
>>>>Linking shared library bin/pam_smbpass.sl
>>>>/usr/ccs/bin/ld: DP relative code in file /var/tmp//ccqbI3id.o - shared
>>>>library must be position
>>>> independent. Use +z or +Z to recompile.
>>>>collect2: ld returned 1 exit status
>>>>*** Error exit code 1
>>>>
>>>>Stop.
>>>>
>>>>Where would this +z or +Z even go? Part of CFLAGS?
>>>>
>>>>---- _ _ _ _ ___ _ _ _
>>>>|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin
>>>>|$&| |__| | | |__/ | \| _| | novosirj at umdnj.edu - 973/972.0922 (2-0922)
>>>>\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
>>>>
>>>>On Wed, 10 Sep 2003, Peter Van Biesen wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Hello,
>>>>>
>>>>>there's still a small problem when compiling on hpux, after running
>>>>>configure the variable AR is not set in the Makefile. The compilation
>>>>>fails because it tries to run $(AR) -rc and thus tries to run '-rc' ...
>>>>>
>>>>>Adding AR=ar in the Makefile fixes the problem, but I suppose there must
>>>>>be a better way ?
>>>>>
>>>>>Thanks and keep up the good work !
>>>>>
>>>>>Peter.
>>>>>
>>>>>--
>>>>>Peter Van Biesen
>>>>>Adj. Sysadmin V.F.S.I.P.H.
>>>>>
>>>>>tel: +32 (0) 2 225 85 70
>>>>>fax: +32 (0) 2 225 85 88
>>>>>e-mail: peter.vanbiesen at vlafo.be
>>>>>
>>>>>
>>>>>--
>>>>>To unsubscribe from this list go to the following URL and read the
>>>>>instructions: http://lists.samba.org/mailman/listinfo/samba
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>--
>>>Peter Van Biesen
>>>Adj. Sysadmin V.F.S.I.P.H.
>>>
>>>tel: +32 (0) 2 225 85 70
>>>fax: +32 (0) 2 225 85 88
>>>e-mail: peter.vanbiesen at vlafo.be
>>>
>>>
>>>
>>>
>>--
>>To unsubscribe from this list go to the following URL and read the
>>instructions: http://lists.samba.org/mailman/listinfo/samba
>>
>>
>>
--
Peter Van Biesen
Adj. Sysadmin V.F.S.I.P.H.
tel: +32 (0) 2 225 85 70
fax: +32 (0) 2 225 85 88
e-mail: peter.vanbiesen at vlafo.be
More information about the samba
mailing list