Bug 3085 - Unable to build samba 3.0.20 on HP-UX 11i v1
Unable to build samba 3.0.20 on HP-UX 11i v1
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.20
PA-RISC HP-UX
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-11 16:55 UTC by Michael Madden
Modified: 2005-09-11 16:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Madden 2005-09-11 16:55:06 UTC
I am unable to build samba 3.0.20 on HP-UX 11i v1 with gcc 4.0.1 or 3.4.4.

I tried to build it by doing the following: 
./configure --prefix=/usr/local/samba-3.0.20
gmake

With gcc 4.0.1 I get the following errors:

Using FLAGS =  -O -D_SAMBA_BUILD_ -I./popt -Iinclude
-I/home/depot/samba/src/samba-3.0.20/source/include
-I/home/depot/samba/src/samba-3.0.20/source/ubiqx  -I. -D_HPUX_SOURCE
-D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4
-DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL
-I/home/depot/samba/src/samba-3.0.20/source    
      LIBS = -lgen -lsec -lnsl -liconv
      LDSHFLAGS = -shared 
      LDFLAGS = 
      PIE_CFLAGS = -fPIE
      PIE_LDFLAGS = -pie
Compiling dynconfig.c
In file included from /usr/include/net/if.h:234,
                 from include/includes.h:288,
                 from dynconfig.c:21:
/usr/include/net/if6.h:77: error: field 'iflru_addr' has incomplete type
/usr/include/net/if6.h:78: error: field 'iflru_dstaddr' has incomplete type
/usr/include/net/if6.h:118: error: field 'lifra_addr' has incomplete type
/usr/include/net/if6.h:119: error: field 'lifra_mask' has incomplete type
gmake: *** [dynconfig.o] Error 1

With gcc 3.4.4 I get further but eventually get these errors:

Using FLAGS =  -O -D_SAMBA_BUILD_ -I./popt -Iinclude
-I/home/depot/samba/src/samba-3.0.20/source/include
-I/home/depot/samba/src/samba-3.0.20/source/ubiqx  -I. -D_HPUX_SOURCE
-D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4
-DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL
-I/home/depot/samba/src/samba-3.0.20/source    
      LIBS = -lgen -lsec -lnsl -liconv
      LDSHFLAGS = -shared 
      LDFLAGS = 
      PIE_CFLAGS = -fPIE
      PIE_LDFLAGS = -pie
Compiling auth/pass_check.c
auth/pass_check.c: In function `password_check':
auth/pass_check.c:550: warning: passing arg 1 of `strcmp' makes pointer from
integer without a cast
auth/pass_check.c: In function `pass_check':
auth/pass_check.c:648: warning: assignment makes pointer from integer without a cast
auth/pass_check.c:649: error: dereferencing pointer to incomplete type
auth/pass_check.c:650: error: dereferencing pointer to incomplete type
auth/pass_check.c:651: error: dereferencing pointer to incomplete type
auth/pass_check.c:668: warning: initialization makes pointer from integer
without a cast
auth/pass_check.c:669: error: dereferencing pointer to incomplete type
auth/pass_check.c:670: error: dereferencing pointer to incomplete type
gmake: *** [auth/pass_check.o] Error 1