[Samba] 3.0.23pre1 does not compile on HP-UX 11i
Ryan Novosielski
novosirj at umdnj.edu
Fri May 12 04:34:08 GMT 2006
Guenther Deschner wrote:
> On Thu, May 11, 2006 at 11:54:37AM -0700, Jeremy Allison wrote:
>
>> On Thu, May 11, 2006 at 02:12:22PM -0400, Ryan Novosielski wrote:
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Continuing on:
>>>
>>> Linking bin/winbindd
>>> /usr/ccs/bin/ld: Unsatisfied symbols:
>>> seteuid (first referenced in nsswitch/winbindd_pam.o) (code)
>>> make: *** [bin/winbindd] Error 1
>>>
>>> Problem here appears to be that 'seteuid' is not available on HP-UX, at
>>> least not on HP-UX 11i earlier than v2 May 2005:
>>>
>>> http://devrsrc1.external.hp.com/STKT/impacts/i171.html?jumpid=reg_R1002_USEN
>>>
>>> Here are notes on what to use instead, however I'm pretty sure that that
>>> was already known as it is no doubt needed elsewhere in the package:
>>>
>>> http://devrsrc1.external.hp.com/STKS/impacts/i133.html?jumpid=reg_R1002_USEN
>>>
>>> There are also conditionals in configure.in (that never seem to show up
>>> in the configure output, interestingly enough). This was not broken in
>>> 3.0.22, however, none of the winbindd* files attempted to use seteuid in
>>> 3.0.22.
>>>
>> Ok, try this patch. Gunther please review as it affects winbindd code.
>> I think it's ok...
>>
>
> Yes, looks ok to me too (after a brief test). Please apply, Jeremy.
>
>
Best part of all? It works! :) My fix was changing the seteuid's to
setreuids, which also appeared to work but I know that's probably not
portable.
Thanks for the quick fix.
Got another bug in 'make install', looks like:
---
Installing bin/script.sl as ///opt/samba-3.0.23pre1/lib/auth/script.sl
/opt/imake/bin/install -c bin/libsmbclient.sl
//opt/samba-3.0.23pre1/lib
: bin/libsmbclient.a //opt/samba-3.0.23pre1/lib
/opt/imake/bin/install -c
/opt/src/samba-3.0.23pre1/source/include/libsmbclient.h
//opt/samba-3.0.23pre1/include
/opt/imake/bin/install -c bin/libmsrpc.sl //opt/samba-3.0.23pre1/lib
: bin/libmsrpc.a //opt/samba-3.0.23pre1/lib
/opt/imake/bin/install -c
/opt/src/samba-3.0.23pre1/source/include/libmsrpc.h
//opt/samba-3.0.23pre1/include
Installing module pam_smbpass as
///opt/samba-3.0.23pre1/lib/security/pam_smbpass.sl
install: pam_smbpass.sl was not found anywhere!
*** Error exit code 2
Stop.
---
First of all, there's something crazy going on with slashes (sometimes
3, sometimes 2, sometimes 1). Don't know what's causing that. Second of
all, there's a problem with the Makefile on line 1483. There is an
INSTALLCMD variable defined at line 43, but the installpammodules stanza
doesn't use it. It instead uses "install -m..." -- for me, "install" by
itself is /usr/sbin/install, which is not GNU. When I change "install"
to "$(INSTALLCMD)", everything works fine. Not sure why every other line
appears to use "-$(INSTALLCMD)" -- using the hyphen on this line does
not work.
This is the last hurdle, though... after that, I can build and install.
Any comments on this one?
--
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | | Ryan Novosielski - User Support Spec. III
|$&| |__| | | |__/ | \| _| | novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.| IST/AST - NJMS Medical Science Bldg - C630
More information about the samba
mailing list