Alan GUILLEVIC
1999-Jan-21 12:36 UTC
configure command for SAMBA 2.0.0 fails under HP-UX 10.20
Good afternoon, I've downloaded the newly released Samba package 2.0.0, and when trying to run "compile" (located in directory source of the package), after a moment, script fail with the following errors:>ERROR: No locking available. Running Samba would be unsafe >configure: error: summary failure. Aborting config.The following lines are extracted from last lines of config.log.>configure: failed program was: >#line 9472 "configure" >#include "confdefs.h" >#include "./tests/summarry.c"And the line 9472 (and around) in the file "configure":>#line 9472 "configure" >#include "confdefs.h" >#include "${srcdir-.}/tests/summary.c" >EOF >if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link)2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null>then > echo "configure OK"; >else > echo "configure: failed program was:" >&5 > cat conftest.$ac_ext >&5 > rm -fr conftest* > { echo "configure: error: summary failure. Aborting config" 1>&2;exit 1; }>fi >rm -fr conftest* >fi > > >builddir=`pwd` > > >trap '' 1 2 15 >cat > confcache <<\EOFThe machine is a good old H50, running HP-UX 10.20, with patch bundle of October 98 and latest Y2K package. I'm still looking for the problem, but any helping hands would truely appreciated :) Please, could you also send answer to the indicated email. Thank you, best regards. Alan GUILLEVIC info1.dmvf@dial.oleane.com
Heiko Nardmann
1999-Jan-21 15:25 UTC
configure command for SAMBA 2.0.0 fails under HP-UX 10.20
Alan GUILLEVIC wrote:> Good afternoon, > > I've downloaded the newly released Samba package 2.0.0, and when > trying to run "compile" (located in directory source of the package), > after a moment, script fail with the following errors: > > >ERROR: No locking available. Running Samba would be unsafe > >configure: error: summary failure. Aborting config. > > The following lines are extracted from last lines of config.log. > > >configure: failed program was: > >#line 9472 "configure" > >#include "confdefs.h" > >#include "./tests/summarry.c" > > And the line 9472 (and around) in the file "configure": > > >#line 9472 "configure" > >#include "confdefs.h" > >#include "${srcdir-.}/tests/summary.c" > >EOF > >if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) > 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null > >then > > echo "configure OK"; > >else > > echo "configure: failed program was:" >&5 > > cat conftest.$ac_ext >&5 > > rm -fr conftest* > > { echo "configure: error: summary failure. Aborting config" 1>&2; > exit 1; } > >fi > >rm -fr conftest* > >fi > > > > > >builddir=`pwd` > > > > > >trap '' 1 2 15 > >cat > confcache <<\EOF > > The machine is a good old H50, running HP-UX 10.20, > with patch bundle of October 98 and latest Y2K package. > I'm still looking for the problem, but any helping hands > would truely appreciated :) Please, could you also send > answer to the indicated email. > > Thank you, best regards. > > Alan GUILLEVIC > info1.dmvf@dial.oleane.comIs this a 64bit machine? Then you might set 'CPPFLAGS=-D__LP64__'. Additionally set 'CFLAGS=-O -D__LP64__'. Although I am running 11.00 (where this thing fixed it for me) this might help you, too. The problem is /usr/include/sys/stdsyms.h. There an error occurs. This can be reproduced by copying the C code from the configure script into an external file and separately compiling it. -- Ciao ... Heiko Nardmann (Dipl.-Ing.) Software Development, secunet (www.secunet.de) Security Networks GmbH, Weidenauer Str. 223-225, D-57076 Siegen Tel. : +49 271 48950-13 Fax : +49 271 48950-50 -------------- next part -------------- HTML attachment scrubbed and removed
Steve Fosdick
1999-Jan-21 16:02 UTC
configure command for SAMBA 2.0.0 fails under HP-UX 10.20
The symptoms described exactly match the experince I had compiling the software on HP-UX 10.20 with gcc. Asuming the cause is the same then the error occurs much earlier on in the configure processes and is associated with large file support. The flags specified in the configure script for HP-UX cause an error to be reported in teh sydsyms.h file with the know on effect that all the test programs that configure tries to compile to test of the OS has various features fail and configure is left thinking there isn't a file locking or IPC mechanism available to implement locks in samba. The solution I adopted was to insert an extra define in the CFLAGS line for the HP-UX large files entry and this seems to solve the problem. To do this edit the 'configure' script and look for the line: # Defines needed for HPUX large file support.. then change: CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE to: CPPFLAGS="$CPPFLAGS -D__STDC_EXT__ -D_LARGEFILE64_SOURCE -- Steve Fosdick Internet: fosdicsj@aom.bt.co.uk Voice: +44 1473 642987 MSMAIL: BTEA/BTLIP23/FOSDICSJ Fax: +44 1473 646656 BOAT: FOSDICSJ Snail: B29/G34, BT Labs, Martlesham Heath, Ipswich, IP5 7RE, England.