Operating System - HP-UX
1836636 Members
1639 Online
110102 Solutions
New Discussion

Re: Problem compiling samba on hp-ux 11.11

 
Albert Pauw
Occasional Advisor

Problem compiling samba on hp-ux 11.11

I've been trying to compile samba (3.0.2a and 2.2.8a) since using the precompiled binary puts the software in my case in the wrong directories. I've installed gcc:

gcc -v output:
Reading specs from /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.2/specs
Configured with: /scratch/root/gcc-pkg/3.3.1/hpux-11/gcc-3.3.2/configure --enable-languages=c,c++ --enable-threads=posix --disable-nls --with-gnu-as --without-gnu-ld --with-as=/usr/local/bin/as --prefix=/usr/local
Thread model: posix
gcc version 3.3.2

./configure runs fine, but a make returns:

Using FLAGS = -O -I./popt -Iinclude -I/akltst/glims/samba-3.0.2a/source/include -I/akltst/glims/samba-3.0.2a/source/ubiqx -I/akltst/glims/samba-3.0.2a/source/smbwrapper -I. -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL -I/akltst/glims/samba-3.0.2a/source
LIBS = -lgen -lsec -lnsl
LDSHFLAGS = -shared
LDFLAGS =
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
*** Error exit code 1

Does anyone have any ideas to fix this?

Thanks,,

Albert
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: Problem compiling samba on hp-ux 11.11

Stefan Farrelly
Honored Contributor

Re: Problem compiling samba on hp-ux 11.11

Just download the precompiled binaries from here;

http://hpux.cs.utah.edu/hppd/hpux/Networking/Misc/samba-3.0.2a/

or here for 2.2.8a;

http://us4.samba.org/samba/ftp/bin-pkgs/hp/samba-2.2.8a/
Im from Palmerston North, New Zealand, but somehow ended up in London...
Albert Pauw
Occasional Advisor

Re: Problem compiling samba on hp-ux 11.11

Problem with the precompiled binaries is that they are installed in the wrong place. I actually have to install samba on failover package disk.

I'm stuck :-(

Albert
Trond Haugen
Honored Contributor

Re: Problem compiling samba on hp-ux 11.11

Maybe not the solution you are looking for but you could install CIFS from the Application CD. It is buildt on Samba, is supported by HP and comes free with HP-UX.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn