HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Samba-2.2.7a compiling LDAP support
Operating System - HP-UX
1832469
Members
2594
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2003 05:14 PM
03-12-2003 05:14 PM
Samba-2.2.7a compiling LDAP support
Dear all,
I am trying to use Samba with LDAP support on my HPUX 11.00 host 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
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.
I've put the same note on the samba lists and will copy across the solution when done to both lists.
Cheers,
Damo
I am trying to use Samba with LDAP support on my HPUX 11.00 host 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
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.
I've put the same note on the samba lists and will copy across the solution when done to both lists.
Cheers,
Damo
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 04:24 AM
03-13-2003 04:24 AM
Re: Samba-2.2.7a compiling LDAP support
Hello,
Compiling other Open Source applications I've overcome these errors re-ordering options in the configure command...It's been a try-and-error operation.
Start from scratch with less options until you find which combination make the error appear. Good Luck and be patient...
Compiling other Open Source applications I've overcome these errors re-ordering options in the configure command...It's been a try-and-error operation.
Start from scratch with less options until you find which combination make the error appear. Good Luck and be patient...
It wasn't me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2003 04:14 PM
03-17-2003 04:14 PM
Re: Samba-2.2.7a compiling LDAP support
Dear all,
As promised, Here is how to get around this issue.
Use gcc-3.2 and gmake.
Comment out line 493 in:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h
It will configure and compile successfully after this.
I found it useful to use the smbstart an stopsmb scripts provided by HP with CIFS as well.
Thanks to the wonderful forums and HP support.
Damian Hickey
Unix Administrator
Workcover Queensland
As promised, Here is how to get around this issue.
Use gcc-3.2 and gmake.
Comment out line 493 in:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h
It will configure and compile successfully after this.
I found it useful to use the smbstart an stopsmb scripts provided by HP with CIFS as well.
Thanks to the wonderful forums and HP support.
Damian Hickey
Unix Administrator
Workcover Queensland
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP