- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compile samba with krb5
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
02-22-2014 03:55 PM - last edited on 02-23-2014 07:28 PM by Lisa198503
02-22-2014 03:55 PM - last edited on 02-23-2014 07:28 PM by Lisa198503
I want to compile latest samba3 with krb5.
Works fine (compile at least) with heimdal,but when i try to join ads cannot find kdc,i have tried dns enabled
and not in krb5.conf.
So i try to compile with krb5-client of hp
./configure --prefix=/opt/samba --libdir=/opt/samba/lib --bindir=/opt/samba/bin --sbindir=/opt/samba/sbin --mandir=/opt/samba/man --sysconfdir=/etc/opt/samba --with-configdir=/etc/opt/samba --with-piddir=/var/opt/samba/locks --with-privatedir=/etc/opt/samba/private --localstatedir=/var/opt/samba --with-lockdir=/var/opt/samba/locks --with-swatdir=/opt/samba/swat --with-logfilebase=/var/opt/samba/log/ --enable-cups --enable-external-libtalloc=no --enable-static=no --enable-shared=yes --with-acl-support=yes --with-automount --with-quotas --with-syslog --with-utmp --with-libsmbclient --with-winbind --with-ldap --with-krb5=base-dir=/opt/krb5client --with-ads CPPFLAGS='-I/opt/krb5client/include' LDFLAGS=' -L /opt/krb5client/lib/hpux32'
after make give error.
Smbd can't find libgssapi
any suggestion?
Thanks
P.S. This thread has been moved from HP-UX>System Administration to Languages and Scripting. -HP Forum Moderator
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2014 04:14 PM
02-22-2014 04:14 PM
Re: Compile samba with krb5
Compiling smbd/msg_idmap.c Linking bin/smbd ld: Can't find library for -lgssapi Fatal error. collect2: ld returned 1 exit status Makefile:1781: recipe for target 'bin/smbd' failed
The error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2014 08:20 PM
02-22-2014 08:20 PM
Re: Compile samba with krb5
>ld: Can't find library for -lgssapi
You'll need to install/build that runtime dependency, libgssapi.
Perhaps these may help:
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRB5CLIENT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2014 12:55 AM
04-01-2014 12:55 AM
Re: Compile samba with krb5
Another error,samba3 on hpux 11.23,samba is 3.6.23
i use this configure
CPPFLAGS='-I/usr/local/include' LDFLAGS=' -L/usr/local/lib/ -lintl -z ignore -z lazyload' ./configure --prefix=/opt/samba3 --enable-shared=yes --enable-static=no --with-acl-support --with-aio-support --with-pam --with-winbind --with-ads --enable-nss-wrapper --with-shared-modules=vfs_zfsacl,vfs_prealloc,vfs_cacheprime,vfs_commit,idmap_ldap,idmap_tdb2,idmap_rid,idmap_ad,idmap_hash,idmap_adex --with-readline --with-ads --with-ldap --with-automount --with-dnsupdate=no --with-krb5=/usr/local --with-privatedir=/var/opt/samba3/private --with-configdir=/etc/opt/samba3 --with-lockdir=/var/opt/samba3/locks --with-statedir=/var/opt/samba3/locks --with-cachedir=/var/opt/samba3/locks --with-piddir=/var/opt/samba3/locks --with-logfilebase=/var/opt/samba3/log
error givern
Compiling lib/srprs.c In file included from lib/srprs.c:28: lib/cbuf.h:179: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ The following command failed: ) *** Codice di uscita errore 1 Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2014 12:12 PM
04-02-2014 12:12 PM
Re: Compile samba with krb5
>lib/cbuf.h:179: error: expected declaration specifiers or ‘...’ before ‘uint32_t’
What's around that line in that file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014 09:55 AM
04-07-2014 09:55 AM
Re: Compile samba with krb5
./configure --prefix=/opt/samba3 --enable-shared=yes --enable-static=no --with-acl-support --with-aio-support --with-pam --with-winbind --enable-nss-wrapper --with-readline --with-ads --with-ldap --with-automount --with-dnsupdate=no --with-krb5=/opt/krb5client --with-privatedir=/var/opt/samba3/private --with-configdir=/etc/opt/samba3 --with-lockdir=/var/opt/samba3/locks --with-statedir=/var/opt/samba3/locks --with-cachedir=/var/opt/samba3/locks --with-piddir=/var/opt/samba3/locks --with-logfilebase=/var/opt/samba3/log ac_cv_lib_rt_fdatasync=no ac_cv_have_fdatasync_decl=no ac_cv_lib_ext_rt_fdatasync=no CPPFLAGS='-I/opt/krb5client/include' LDFLAGS=' -L/opt/krb5client/lib -L/opt/krb5client/lib/gss'
Samba3 hpux-11.31
same error.
Compiling smbd/msg_idmap.c Linking bin/smbd ld: Can't find library for -lgssapi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014 01:42 PM
04-07-2014 01:42 PM
Re: Compile samba with krb5
On Solaris 10 someone make samba package working fine with ssl,ldap and kerberos
they use mit krb5,so i try to compile it but
cm.c:43: warning: no previous prototype for ‘k5_getcurtime’ gcc -fPIC -DSHARED -DLIBDIR=\"/opt/krb5mit/lib\" -I../../../include -I../../../include -I../../../util/profile -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -g -O2 -Wall -Wcast-align -Wshadow -Wmissing-prototypes -pedantic -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=declaration-after-statement -Werror=variadic-macros -Werror-implicit-function-declaration -D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L -c dnsglue.c -o dnsglue.so.o && mv -f dnsglue.so.o dnsglue.so dnsglue.c: In function ‘krb5int_dns_init’: dnsglue.c:106: error: implicit declaration of function ‘res_init’ dnsglue.c:126: error: implicit declaration of function ‘res_search’ dnsglue.c: In function ‘krb5int_dns_expand’: dnsglue.c:211: error: implicit declaration of function ‘dn_expand’ dnsglue.c: In function ‘krb5int_dns_nextans’: dnsglue.c:318: warning: comparison is always false due to limited range of data type *** Codice di uscita errore 1 Stop.
No way?
:(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014 10:10 PM - edited 04-11-2014 11:46 AM
04-07-2014 10:10 PM - edited 04-11-2014 11:46 AM
Re: Compile samba with krb5
>dnsglue.c:106: error: implicit declaration of function ‘res_init’
res_init, res_search and dn_expand are mentioned in resolver(3N) but I don't see any actual declarations in resolv.h.
They seem to be defined in libc.so.
So either you need to modify resolv.h to add the prototypes or remove -Werror-implicit-function-declaration from your build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2014 10:23 AM
04-10-2014 10:23 AM
Re: Compile samba with krb5
Ok,i will try it
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2014 11:07 AM
04-10-2014 11:07 AM
Re: Compile samba with krb5
from makefile
Compile.same error