Sponsored Content
Full Discussion: Samba Compiling questions
Operating Systems Solaris Samba Compiling questions Post 302337964 by Keepcase on Sunday 26th of July 2009 01:43:03 PM
Old 07-26-2009
Hey reborg,

I've tried everything and I just can't seem to get this working ><

so I went through that guide

# LDFLAGS="-L/usr/local/lib -L/usr/sfw/lib -L/usr/lib -R/usr/local/lib:/usr/sfw/lib:/usr/lib"
# export LDFLAGS

# CPPFLAGS="-I/usr/local/include -I/usr/include -I/usr/sfw/include"
# export CPPFLAGS


./configure --prefix=/usr/sfw --with-ads --with-ldap --with-winbind --with-krb5=/usr/local --with-acl-support --with-shared-modules=idmap_ad, vfs_zfsacl

But I get the following error

checking build system type... Invalid configuration `vfs_zfsacl': machine `vfs_zfsacl' not recognized
configure: error: /bin/bash ./config.sub vfs_zfsacl failed

I did a find but I could not vfs_zfsacl <-- idmap_ad.c was in the source directory from which I am configuring from... I think I found somewhere that the version I am using does not support it (3.0.24)

I can't seem to find the kerberos package on sunfreeware
Do you know what the package is called on sunfreeware?

I don't see a libkrb5 package or anything like that


I have this on my machine though

# pkginfo -i | grep krb
system SUNWkrbr Kerberos version 5 support (Root)
system SUNWkrbu Kerberos version 5 support (Usr)


# pkginfo -l SUNWkrbr
PKGINST: SUNWkrbr
NAME: Kerberos version 5 support (Root)
CATEGORY: system
ARCH: i386
VERSION: 11.10.0,REV=2005.01.21.16.34
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Kerberos version 5 support (Root)
PSTAMP: on10ptchfeatx20080814051138
INSTDATE: Mar 09 2009 00:21
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 21 installed pathnames
12 shared pathnames
14 directories
1 executables
23 blocks used (approx)

# pkginfo -l SUNWkrbu
PKGINST: SUNWkrbu
NAME: Kerberos version 5 support (Usr)
CATEGORY: system
ARCH: i386
VERSION: 11.10.0,REV=2005.01.21.16.34
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Kerberos version 5 support (Usr)
PSTAMP: on10ptchfeatx20080814051139
INSTDATE: Mar 09 2009 00:21
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 39 installed pathnames
9 shared pathnames
10 directories
18 executables
5077 blocks used (approx)

but I don't see anything in /lib but in /usr/lib I have the libkrb5

# pwd
/usr/lib

# ls -l | grep krb
drwxr-xr-x 4 root bin 1024 Mar 9 00:35 krb5
lrwxrwxrwx 1 root root 14 Mar 9 00:21 libkrb5.so -> ./libkrb5.so.1
-rwxr-xr-x 1 root bin 21504 Aug 14 2007 libkrb5.so.1




# ./configure --prefix=/usr/sfw --with-ads --with-ldap --with-winbind --with-acl-support --with-shared-modules=idmap_ad


gives me the dreaded error:

configure: error: libldap is needed for LDAP support

The only way I can get that error to go away is to use


# LDFLAGS="-L/usr/local/lib -L/usr/sfw/lib -L/usr/lib -R/usr/local/lib:/usr/sfw/lib:/usr/lib -lsasl"

but then I get the krb error.. (but I have not installed krb5, I thought it was already installed from the previous pkginfo I provided)

I then ran the following:

# ./configure --prefix=/usr/sfw --with-ads --with-ldap --with-winbind --with-krb5=/usr --with-acl-support --with-shared-modules=idmap_ad


and I get the following error:

checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_dn2ad_canonical... no
configure: error: libldap is needed for LDAP support


Now I will try that option is -lsasl again

# LDFLAGS="-L/usr/local/lib -L/usr/sfw/lib -L/usr/lib -R/usr/local/lib:/usr/sfw/lib:/usr/lib -lsasl"
# export LDFLAGS

I kept CCPFLAGS the same

I run the command again

./configure --prefix=/usr/sfw --with-ads --with-ldap --with-winbind --with-krb5=/usr --with-acl-support --with-shared-modules=idmap_ad

I couldn't find much info on -lsasl, I think I read something about static libraries with that option? rebord do you know anything about that?

but with -lsasl it lets me get passed the libldap error

I get the following error:

configure: error: libkrb5 is needed for Active Directory support


but I noticed that during the check it does not find much for krb5

checking for _et_list in -lcom_err... no
checking for krb5_encrypt_data in -lk5crypto... no
checking for des_set_key in -lcrypto... no
checking for copy_Authenticator in -lasn1... no
checking for roken_getaddrinfo_hostspec in -lroken... no
checking for gss_display_status in -lgssapi... no
checking for krb5_mk_req_extended in -lkrb5... no
checking for krb5_kt_compare in -lkrb5... no
checking for gss_display_status in -lgssapi_krb5... no
checking for krb5_set_real_time... no
checking for krb5_set_default_in_tkt_etypes... no
checking for krb5_set_default_tgs_ktypes... no
checking for krb5_principal2salt... no
checking for krb5_use_enctype... no
checking for krb5_string_to_key... no
checking for krb5_get_pw_salt... no
checking for krb5_string_to_key_salt... no
checking for krb5_auth_con_setkey... no
checking for krb5_auth_con_setuseruserkey... no
checking for krb5_locate_kdc... no
checking for krb5_get_permitted_enctypes... no
checking for krb5_get_default_in_tkt_etypes... no
checking for krb5_free_ktypes... no
checking for krb5_free_data_contents... no
checking for krb5_principal_get_comp_string... no
checking for krb5_free_unparsed_name... no
checking for krb5_free_keytab_entry_contents... no
checking for krb5_kt_free_entry... no
checking for krb5_krbhst_get_addrinfo... no
checking for krb5_c_enctype_compare... no
checking for krb5_enctypes_compatible_keys... no
checking for krb5_crypto_init... no
checking for krb5_crypto_destroy... no
checking for krb5_decode_ap_req... no
checking for decode_krb5_ap_req... no
checking for krb5_free_ap_req... no
checking for free_AP_REQ... no
checking for krb5_c_verify_checksum... no
checking for krb5_principal_compare_any_realm... no
checking for krb5_parse_name_norealm... no
checking for krb5_princ_size... no
checking for krb5_get_init_creds_opt_set_pac_request... no
checking for krb5_get_renewed_creds... no
checking for krb5_get_kdc_cred... no
checking for krb5_free_error_contents... no
checking whether krb5_verify_checksum takes 7 arguments... 7
checking for checksum in krb5_checksum... no
checking for etype in EncryptedData... no
checking for ticket pointer in krb5_ap_req... yes
checking for e_data pointer in krb5_error... no
checking for krb5_crypto type... no
checking for krb5_encrypt_block type... yes
checking for addrtype in krb5_address... yes
checking for addr_type in krb5_address... no
checking for enc_part2 in krb5_ticket... yes
checking for keyblock in krb5_creds... yes
checking for session in krb5_creds... no
checking for keyvalue in krb5_keyblock... no
checking for ENCTYPE_ARCFOUR_HMAC_MD5... no
checking for KEYTYPE_ARCFOUR_56... no
checking for AP_OPTS_USE_SUBKEY... yes
checking for KV5M_KEYTAB... yes
checking for KRB5_KU_OTHER_CKSUM... no
checking for KRB5_KEYUSAGE_APP_DATA_CKSUM... yes
checking for the krb5_princ_component macro... no
checking for key in krb5_keytab_entry... yes
checking for keyblock in krb5_keytab_entry... no
checking for magic in krb5_address... yes
configure: error: libkrb5 is needed for Active Directory support

what are you thoughts reborg? I really appreciate all your help.. this has been the worst weeekend ever trying to figure this out lol... I just want to try out for Samba SSO! Smilie

Let me know your thoughts, I need to take a walk

if you need ANY info that would help you diagnose anything, let me know!
 

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Compiling samba 3.0.27a under AIX

I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure --prefix=/opt/pware/samba/3.0.27a... (1 Reply)
Discussion started by: BenediktS
1 Replies

2. AIX

Compiling samba 3.0.27a under AIX

Compiling samba 3.0.27a under AIX I try to compile Samba 3.0.27a under AIX with LDAP and KErberos. The configure work fine: CFLAGS: -I/opt/pware/include -I/opt/pware/lib/ -I/opt/pware/open_ldap_exec/lib/ -I/software/samba/oldap/usr/lib -I/software/samba/oldap/usr/include ./configure... (2 Replies)
Discussion started by: BenediktS
2 Replies

3. UNIX for Dummies Questions & Answers

Samba pre-install questions.

Greetings, I hope this is the right forum. I am looking to install Samba on my Linux box on my home network. I'm pretty sure I can deal with the how, I'm just not certain of the what. ok I'm using Debian lenny with no GUI. I have apt working and I've successfully installed and used one package... (10 Replies)
Discussion started by: fguy
10 Replies

4. AIX

Compiling samba from source in AIX 5.3

Hello all. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs with no issues, but when the time comes to make, this happens: make: make 1254-025 There must be an existing description file or specify a target. ... (4 Replies)
Discussion started by: raidzero
4 Replies

5. UNIX for Advanced & Expert Users

Compiling Samba from Source on AIX, Active Directory, LDAP, Kerberos

Hello, I asked this question in the AIX subforum but never received an answer, probably because the AIX forum is not that heavily trafficked. Anyway, here it is.. I have never had any issues like this when compiling applications from source. When I try to compile samba-3.5.0pre2, configure runs... (9 Replies)
Discussion started by: raidzero
9 Replies

6. Solaris

Problem compiling Samba 3.5.1 on Solaris 10 with gcc (3.4.6)

I'm getting this error when 'Linking shared library bin/libtalloc.so.2'... anyone know what's up here? Using CFLAGS = -O -I. -I/source/samba-3.5.1/source3 -I/source/samba-3.5.1/source3/../lib/popt -I/source/samba-3.5.1/source3/iniparser/src -Iinclude -I./include -I. -I. -I./../lib/replace... (6 Replies)
Discussion started by: son_t
6 Replies

7. UNIX for Dummies Questions & Answers

Compiling samba problem

People i download the lastest version of samba i`am tryng to compile it in a solaris 9 i'm reading the how to of samba, i am in the first step making the autogen.sh but show me this when i do ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h'... (0 Replies)
Discussion started by: enkei17
0 Replies

8. Solaris

Compiling Error in Samba 3.4.1 on Solaris 10

Hi all, I am getting the following error While installing Samba 3.4.1 on Solaris 10. #./autogen.sh ./autogen.sh : autoheader : not found ./autogen.sh : test : argument expected Please help me as I am in a critical state of the project. Warm regards, Sathya (10 Replies)
Discussion started by: sathya47
10 Replies

9. Solaris

Two simple questions about Solaris DCHP and Samba

I have two simple questions First is :can dhcp server NATIVE of solaris perform dhcp updates of bind via dnssec like dchpd on linux? Second: Is possible to build a pdc with samba and iplanet ldap server?Or is better with openldap? I never found howto or discussions about iplanet server. Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

10. UNIX for Beginners Questions & Answers

Compiling Samba 4.4.5

I am running Fedora V21 and had their default Samba installed. But I wanted to put up a PDC with ADS, so I uninstalled samba and down loaded the Samba 4.4.5 source along with the Kerberos devel kit etc. I then configured and compiled etc and it indicated it was successful. But I can't load the... (0 Replies)
Discussion started by: griffinmt
0 Replies
All times are GMT -4. The time now is 09:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy