Kevin.Cornmell@barclays.co.uk
1999-Feb-23 14:32 UTC
Installation of 2.0.2 on HPUX 10.2 - configure giving error
Hi,
I have tried to run the ./configure on a HP-UX 10.2 server ( using cc
) and get no further than
"Error No locking available. Running Samba would not be safe"
From the summary.c program testing for fcntl locks ......
I notice that 10.2 binaries are available so, it must work ...
(There is a similar problem mentioned recently in the samba-binaries
group , but using RPM in RedHat)
Any help would be appreciated.
Regards
Kevin
Internet communications are not secure and therefore the Barclays Group does
not accept legal responsibility for the contents of this message. Any views
or opinions presented are solely those of the author and do not necessarily
represent those of the Barclays Group unless otherwise specifically stated.
Alexandre Oliva
1999-Feb-23 21:54 UTC
Installation of 2.0.2 on HPUX 10.2 - configure giving error
On Feb 23, 1999, Kevin.Cornmell@barclays.co.uk wrote:> I have tried to run the ./configure on a HP-UX 10.2 server ( using cc > ) and get no further than> "Error No locking available. Running Samba would not be safe"> From the summary.c program testing for fcntl locks ......> I notice that 10.2 binaries are available so, it must work ...A Brazilian user has contacted me in private (because he felt more comfortable writing in Portugues :-) in the hope that I'd know how to solve the problem, and he. Unfortunately, I didn't, as I don't know anything about HP/UX. But then, he contacted HP/UX support in Brazil and, although they don't officially support Samba, someone in there got interested in fixing the problem, and apparently he had to enable support for fcntl in the kernel or some system configuration option. Unfortunately, I don't have details. He also reported some problems on the binary packager for HP/UX, that seems to assume an objdir=srcdir building environment. -- Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org} oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org} Universidade Estadual de Campinas, SP, Brasil
Stig HORNUFF
1999-Mar-03 09:17 UTC
Installation of 2.0.2 on HPUX 10.2 - configure giving error
Installation of 2.0.2 on HPUX 10.2 - configure giving error
"Error No locking available. Running Samba would not be safe"
Ref: http://samba.org/listproc/samba/February1999/0473.html
In reponse to Kevin's problem.
Hi,
Here at our site, we tried exactly the same thing, ie. compiling SAMBA
version 2.0.2 on HP-UX 10.20. And it came up with the same error-message
during configuration.
A cause for the problem exists as well as a solution, both of which I'll
try to descibe below.
The problem:
Running a modified configure-script to monitor what happens, then
file-locking is tested by a C-program which is compiled, assembled and
runned during configuration.
the configure-script knows wether it uses gcc or cc as C-compiler, but
it is not (yet?) able to determine if it uses HP assembler (as) or GNU
binutils assembler (also named 'as', but located in /opt/binutils/bin).
The C-compiler always creates an assembler-source which is passed to the
assembler wether it's GNU assembler or not. And here the error occurs.
The GNU C-compiler (gcc) has a .PARAM-directive in the assembler-source.
This directive cannot be handled by HP assembler, because it does not
exist.
What I did:
- My first action was to exclude the directive and run the assembler
directly (HP-assembler) on the source. It worked perfectly!
- Knowing that I use GNU C-compiler on HP, I had the theory that tools
MUST match eachother so, to be sure, I installed the binutils for HP-UX
10.20 and made sure that the search-path would hit /opt/binutils/bin
before /usr/ccs/bin.
- I re-introduced the .PARAM-directive in the assembler-source again and
ran the assembler (this time GNU assembler). It worked perfectly!
- Due to the success of the above, I ran a full ./configure WITH
Success.
The solution:
Be absolutely SURE you have the appropriate tools installed on HP-UX
10.20, ie:
Binutils for HP-UX 10.20.
GNU C-compiler for HP-UX 10.20.
Be absolutely SURE that your PATH hits GNU-tools before HP-tools ie:
PATH=/opt/binutils/bin:/opt/gcc/bin:${PATH}
This solved our problem. We have know compiled SAMBA version 2.0.3
aswell.
Best Regards
Stig Hornuff