[Samba] Samba-2.2.7a on HPUX 11.00 trying to compile LDAP support

René Nieuwenhuizen R.Nieuwenhuizen at cpb.nl
Thu Mar 13 19:24:16 GMT 2003


Damian Hickey wrote:

>Dear all,
>
>I am trying to use Samba with LDAP support so I can't use the CIFS
>binaries.
>
>I are having an issue with compiling samba-2.27.a (patched) on our HPUX
>server.
>
>I am configuring it with these Samba option flags:
>
>    --prefix=/opt/samba
>    --libdir=/etc/opt/samba
>    --localstatedir=/var/opt/samba
>    --with-privatedir=/var/opt/samba/private
>    --with-lockdir=/var/opt/samba/locks
>    --with-swatdir=/opt/samba/swat
>    --with-acl-support
>    --with-msdfs
>    --with-ldapsam
>    --with-profile
>    -disable-static
>
>I have gcc-3.2 installed.
>
>I run configure OK, but get an error when running gmake:
>
>Compiling lib/snprintf.c 
>lib/snprintf.c790: 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 
>  
>
Just comment line 493 from the above file using /* .... */ will do the trick

>I think the lines in conflict are:
>
>gcc-3.2 stdio.h   "extern int snprintf(char *, _hpux_size_t, char
>*,...);"
>
>samba-2.2.7a/source/lib/snprintf.c " int snprintf(char *str,size_t
>count,const char *fmt,...)"
>
>but I do not know how to resolve the issue.
>
>I'd love to know if you have had any success with this or have any
>ideas.
>
>
>
>
>
>With thanks,
>
>Damian Hickey
>Unix Administrator
>Workcover Queensland
>15th Floor, 280 Adelaide St.
>Brisbane
>ph 07 30066422
>fax 07 30066424
>mob 0421 093582
>
>
>***************************************************************************
>Messages included in this e-mail and any of its attachments are those
>of the author unless specifically stated to represent WorkCover Queensland.
>The contents of this message are to be used for the intended purpose only
>and are to be kept confidential at all times. This message may contain
>privileged information directed only to the intended addressee/s.
>Accidental receipt of this information should be deleted promptly
>and the sender notified.
>This e-mail has been scanned by Sophos for known viruses.
>However, no warranty nor liability is implied in this respect.
>**********************************************************************
>
>  
>


-- 
René Nieuwenhuizen
Afdeling Informatietechnologie
Centraal Planbureau

Bezoekadres: Van Stolkweg 14, 2585 JR Den Haag
Postadres: Postbus 80510, 2508 GM Den Haag

T (070) 3383 342
F (070) 3383 350
I http://www.cpb.nl/nl/general/org/afdelingen/it/


--
================================================================================
Aan dit bericht kunnen geen rechten worden ontleend.
Het bericht is alleen bestemd voor de geadresseerde.
Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan
ons te melden en de inhoud van het bericht te vernietigen.

This message shall not constitute any obligations.
This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and
delete its contents.
================================================================================


More information about the samba mailing list