[Samba] Fwd: Building Samba 3.0.5 on HP-UX 11.11

topher findtopher at gmail.com
Wed Jul 28 17:32:25 GMT 2004


got a couple of requests for further information -- so here's an update:

yes, I've done the configure and make as root and as a regular user,
things die with either compiler in the same place I'm afraid

yes, I've run 'autoconf' before running configure, and the only
difference I've seen is that the errors during configure get more
'stuff' wrapped around them to make them more apparent...  the errors
in the log are the same --

here is the exact error message I get during make using gcc:

Compiling dynconfig.c
In file included from include/includes.h:109,
                 from dynconfig.c:21:
/usr/include/sys/socket.h:484: error: parse error before "sendfile"
/usr/include/sys/socket.h:484: error: parse error before "bsize_t"
/usr/include/sys/socket.h:486: error: parse error before "sendpath"
/usr/include/sys/socket.h:486: error: parse error before "bsize_t"
/usr/include/sys/socket.h:493: error: parse error before "sendfile64"
/usr/include/sys/socket.h:493: error: parse error before "bsize64_t"
/usr/include/sys/socket.h:495: error: parse error before "sendpath64"
/usr/include/sys/socket.h:495: error: parse error before "bsize64_t"
In file included from /usr/include/sys/mp.h:55,
                 from /usr/include/sys/malloc.h:59,
                 from /usr/include/net/netmp.h:53,
                 from /usr/include/net/if.h:59,
                 from include/includes.h:275,
                 from dynconfig.c:21:
/usr/include/machine/sys/setjmp.h:45: error: redefinition of `struct label_t'
In file included from dynconfig.c:21:
include/includes.h:495: error: conflicting types for `socklen_t'
/usr/include/sys/socket.h:199: error: previous declaration of `socklen_t'
make: *** [dynconfig.o] Error 1


any other thoughts/suggestions are appreciated and MORE than welcome!

toph

---------- Forwarded message ----------
From: topher <findtopher at gmail.com>
Date: Wed, 28 Jul 2004 09:32:06 -0400
Subject: Building Samba 3.0.5 on HP-UX 11.11
To: samba at lists.samba.org

First -- to avoid the common answers to the 'building on HP-UX'
questions that seem to be available on the list and the web:

1) using the depot from the Porting Center won't work, it's well
downrev of 3.0.5 and I need to get the new security fixes (so that the
security team will go back into it's dark dank den and fear not for
the security of our environment)

2) samba.org only has a 3.0.4a binary package for HP-UX -- so again,
no security fixes

as such, I'm trying to build 3.0.5 on HP-UX 11.11 -- and I'm running
into the same problem I pretty much always seem to run into:

if I use gcc (gcc 3.3.2 off the porting center), configure runs
through with several errors that look like:

configure: WARNING: foo/bar.h: present but cannot be compiled
configure: WARNING: foo/bar.h: check for missing prerequisite headers?
configure: WARNING: foo/bar.h: proceeding with the preprocessor's result

where foo and bar are any of about a dozen different headers...  I
suspect that if I could find a solution to this one, then I'd be able
to get somewhere -- the configure.log shows that the problem with the
headers is:

configure:9644: gcc -c -O   -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE
 -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffff
ffffLL conftest.c >&5
In file included from configure:9622:
/usr/include/sys/socket.h:484: error: parse error before "sendfile"
/usr/include/sys/socket.h:484: error: parse error before "bsize_t"
/usr/include/sys/socket.h:486: error: parse error before "sendpath"
/usr/include/sys/socket.h:486: error: parse error before "bsize_t"
/usr/include/sys/socket.h:493: error: parse error before "sendfile64"
/usr/include/sys/socket.h:493: error: parse error before "bsize64_t"
/usr/include/sys/socket.h:495: error: parse error before "sendpath64"
/usr/include/sys/socket.h:495: error: parse error before "bsize64_t"
configure:9647: $? = 1
configure: failed program was:
#line 9617 "configure"

(that's just one instance of the headers failing -- if you want more,
lemme know and I'll make a big list for ya -- this error is also the
error I get if I run a make, and things go downhill from there...)

I read in one posting that you can't use the gcc compiler, but you
have to use the cc that comes with HP (course I read in another post
that you have to use an ANSI compiler, so you have to use gcc and
can't use the cc that comes with HP -- but I digress) -- so another
configure is run (on a whole new set of the source code to prevent any
confusion) -- but this time I use:

CC=/usr/ccs/bin/cc ./configure

which appears to work, as the first line of output is:
checking for gcc... /usr/ccs/bin/cc

and the configure goes on from there, right up until:

Using libraries:
    LIBS = -lgen -lsec -lnsl
    AUTH_LIBS =
checking configure summary... WARNING: No automated network interface
determination
ERROR: no seteuid method available
configure: error: summary failure. Aborting config

it seems like it gets 'so close', as this appears to about 20 lines
short of the 'successful' configure using 'gcc'

Please -- any help would be much appreciated -- I'm just about willing
to try anything to get the security gorillas off my back -- I've got
this build working on AIX 5.1 and 5.2 and Sun 8 and 9 -- it's just
this silly HP thing that I can't get finished...  I'm begging here --
please help!

<grin>

toph


More information about the samba mailing list