Operating System - HP-UX
1833867 Members
1969 Online
110063 Solutions
New Discussion

Re: Compiling samba-2.2.0 on 10.20 without HP C/ANSI C Developer's Bundle

 
Glenn L. Stewart
Frequent Advisor

Compiling samba-2.2.0 on 10.20 without HP C/ANSI C Developer's Bundle

Currently compiling samba-2.2.0 on a 10.20 box without an Ansi C complicant Dev Bundle. I know Samba to compile fine with the bundle.
Unfortunately with most of the systems with the bundle having already upgraded to 11.00, I have little choice but to compile on the 10.20 box without it.
I am sure it might be solved by exporting new compiler options.

The tail of the current errors outputed by ./configure are as follows:


checking whether to use NISPLUS password database... no
checking whether to use NISPLUS_HOME... no
checking whether to use SSL... no
checking whether to use syslog logging... no
checking whether to use profiling... no
checking whether to support netatalk... no
checking whether to support disk-quotas... no
checking whether to support utmp accounting... no
checking whether to support Microsoft Dfs... no
checking whether to support the experimantal Samba vfs... no
checking how to get filesystem space usage
checking statvfs64 function (SVR4)... no
checking statvfs function (SVR4)... yes
checking checking if large file support can be enabled... no
checking whether to support ACLs... no
checking configure summary
ERROR: No locking available. Running Samba would be unsafe
configure: error: summary failure. Aborting config

Glenn Stewart
3 REPLIES 3
Rainer von Bongartz
Honored Contributor

Re: Compiling samba-2.2.0 on 10.20 without HP C/ANSI C Developer's Bundle

you really should use gcc to compile samba.
gcc is available from the Software Porting And Archive Centre for HP-UX at http://hpux.cs.utah.edu/
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Glenn L. Stewart
Frequent Advisor

Re: Compiling samba-2.2.0 on 10.20 without HP C/ANSI C Developer's Bundle

Thanks for your suggestion on installing gcc.
Being a development box, I really don't mind doing so. It did bring up new errors though.

Prior to using gcc I exported CC
# export CC=/opt/gcc/bin/gcc
(without this, Samba configure fails to find gcc)
I decided to use
export CFLAGS="-Ae"

The started the configure again.

# ./configure
loading cache ./config.cache
checking for gcc... /opt/gcc/bin/gcc
checking whether the C compiler (/opt/gcc/bin/gcc -O -Ae ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables.

Starting to think another set of CFLAGS might be the way to go. Any suggestions?

Glenn Stewart
Shannon Petry
Honored Contributor

Re: Compiling samba-2.2.0 on 10.20 without HP C/ANSI C Developer's Bundle

First, if you have gcc installed, you also need bin-utils. Else you will have strange linker problems, and even more fatal is the lack of an assembler, so even if you work around the ld problems, you wont be able to assemble anyway...

Next, you will get this error on 10.20, because an inability in 10.20 to lock files from the system level. This takes modifying the configure with a switch to disable file locking.

Have you thought of downloading from the porting center to remove all of these problems? It's already built, so you wont have to re-invent the wheel!

Regards,
Shannon
Microsoft. When do you want a virus today?