1826398 Members
3572 Online
109692 Solutions
New Discussion

Samba install

 
Susi
Occasional Advisor

Samba install

I try to install samba 2.2.2 on HP-UX 11.00. I ran 'configure', which worked fine without any errors. 'Make' doesn't go through. It has the following error message:

Compiling lib/snprintf.c
lib/snprintf.c:760: conflicting types for `snprintf'
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:493:previous declaration of `snprintf'
***Error exit code 1

Stop

Does that look familiar to anybody? How can I fix it?

Susi
Carpe Diem!
3 REPLIES 3
Craig Rants
Honored Contributor

Re: Samba install

Compiling lib/snprintf.c
lib/snprintf.c:760: conflicting types for `snprintf'
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:493:previous declaration of `snprintf'
***Error exit code 1

Well, it has been a few years since I wrote any C, but it looks like include has a difference witht the way the snprintf.c is coded. You will have to change that file for your compiler to jive, or get a depot format of samba. But the hpux porting site does not have one so it may not be out there.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Vikas_2
Advisor

Re: Samba install

Why don't you use CIFS/9000 instead of samba. It's HP's version of SAMBA and available free, I think that it's there in one of the application cd's.

Hope this helps.

-Vikas
Rodney Hills
Honored Contributor

Re: Samba install

The README.hpux file that came with the pre-compile version from www.samba.org states:

** NOTE**
Patch PHCO_23684 (or possibly one of its predecessors)
is required for this precompiled binary to work. This
patch provides a new libc.1 (libc.sl) containing the
vsnprintf() function. Without this patch, binaries will
NOT load.

Unfortuantelly the precompile doesn't come with winbindd compiled. This is a feature I wanted to try out...

-- Rod Hills
There be dragons...