From owner-freebsd-questions@FreeBSD.ORG Wed Oct 18 18:03:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEA9A16A412 for ; Wed, 18 Oct 2006 18:03:44 +0000 (UTC) (envelope-from tradigan@newrevolutions.net) Received: from newrevolutions.net (h-66-166-153-85.phlapafg.covad.net [66.166.153.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5026A43DA2 for ; Wed, 18 Oct 2006 18:03:21 +0000 (GMT) (envelope-from tradigan@newrevolutions.net) Received: (qmail 77132 invoked by uid 98); 18 Oct 2006 18:04:33 -0000 Received: from 66.166.153.82 by ns1.newrevolutions.net (envelope-from , uid 89) with qmail-scanner-1.25 (clamdscan: 0.88.4/1946. spamassassin: 3.1.5. Clear:RC:0(66.166.153.82):SA:0(-2.0/5.0):. Processed in 11.851963 secs); 18 Oct 2006 18:04:33 -0000 X-Spam-Status: No, hits=-2.0 required=5.0 X-Qmail-Scanner-Mail-From: tradigan@newrevolutions.net via ns1.newrevolutions.net X-Qmail-Scanner: 1.25 (Clear:RC:0(66.166.153.82):SA:0(-2.0/5.0):. Processed in 11.851963 secs) Received: from unknown (HELO l03ptradigan) (tradigan@newrevolutions.net@66.166.153.82) by newrevolutions.net with SMTP; 18 Oct 2006 18:04:22 -0000 From: "Timothy Radigan" To: Date: Wed, 18 Oct 2006 14:03:07 -0400 Organization: New Revolutions Message-ID: <005b01c6f2df$aa5761c0$c30aa8c0@pmc.dhs.gov> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Thread-Index: Acby36nGsO9zaDeJTOSxKNwLAjR9CQ== Subject: Samba 3.0.23c X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2006 18:03:44 -0000 I've been fighting with recompiling Samba 3 for some time now. I keep getting undefined references to Kerberos libraries during build. I am trying to build it with ADS support and I have tried it with the base version of Kerberos that comes with FreeBSD, as well as with the security/krb5 port and I am unable to get it to compile. Anyone have any ideas? Here is the output from the build: <------------- Start of Output -------------> [root@s03p-fbsd01]# make ===> Building for samba-3.0.23c_2,1 Using FLAGS = -O2 -fno-strict-aliasing -pipe -D_SAMBA_BUILD_ -I/usr/ports/net/samba3/work/samba-3.0.23c/source/iniparser/src -Iinclude -I/usr/ports/net/samba3/work/samba-3.0.23c/source/include -I/usr/ports/net/samba3/work/samba-3.0.23c/source/tdb -I. -DHAVE_CONFIG_H -I/usr/local/include -DLDAP_DEPRECATED -I/usr/ports/net/samba3/work/samba-3.0.23c/source -D_SAMBA_BUILD_ LIBS = -lcrypt -liconv LDSHFLAGS = -shared -L/usr/local/lib LDFLAGS = -L/usr/local/lib PIE_CFLAGS = -fPIE PIE_LDFLAGS = -pie Linking bin/smbd libsmb/clikrb5.o(.text+0x1060): In function `smb_krb5_get_keyinfo_from_ap_req': : undefined reference to `krb5_decode_ap_req' libsmb/clikrb5.o(.text+0x13d1): In function `smb_krb5_principal_compare_any_realm': : undefined reference to `krb5_principal_compare_any_realm' libsmb/clikrb5.o(.text+0x179a): In function `smb_krb5_free_error': : undefined reference to `krb5_free_error_contents' libads/kerberos_keytab.o(.text+0x1cc): In function `smb_krb5_kt_add_entry': : undefined reference to `krb5_kt_compare' /usr/lib/libgssapi.so: undefined reference to `krb5_rd_cred2' /usr/lib/libgssapi.so: undefined reference to `krb5_crypto_destroy' /usr/lib/libgssapi.so: undefined reference to `krb5_ret_address' /usr/lib/libgssapi.so: undefined reference to `krb5_ret_data' /usr/lib/libgssapi.so: undefined reference to `krb5_ret_keyblock' /usr/lib/libgssapi.so: undefined reference to `krb5_auth_con_setremotesubkey' /usr/lib/libgssapi.so: undefined reference to `krb5_data_free' /usr/lib/libgssapi.so: undefined reference to `krb5_config_get_strings' /usr/lib/libgssapi.so: undefined reference to `krb5_auth_con_setlocalsubkey' /usr/lib/libgssapi.so: undefined reference to `krb5_auth_con_generatelocalsubkey' /usr/lib/libgssapi.so: undefined reference to `krb5_sockaddr2address' /usr/lib/libgssapi.so: undefined reference to `krb5_cc_get_ops' /usr/lib/libgssapi.so: undefined reference to `krb5_get_default_principal' /usr/lib/libgssapi.so: undefined reference to `krb5_cc_copy_cache' /usr/lib/libasn1.so: undefined reference to `init_error_table' /usr/lib/libgssapi.so: undefined reference to `krb5_auth_con_setkey' /usr/lib/libgssapi.so: undefined reference to `krb5_get_forwarded_creds' /usr/lib/libgssapi.so: undefined reference to `krb5_get_err_text' /usr/lib/libgssapi.so: undefined reference to `krb5_ret_int32' /usr/lib/libgssapi.so: undefined reference to `krb5_h_addr2sockaddr' /usr/lib/libgssapi.so: undefined reference to `krb5_build_authenticator' /usr/lib/libgssapi.so: undefined reference to `krb5_build_ap_req' /usr/lib/libgssapi.so: undefined reference to `krb5_auth_getremoteseqnumber' /usr/lib/libgssapi.so: undefined reference to `krb5_data_zero' /usr/lib/libgssapi.so: undefined reference to `krb5_storage_free' /usr/lib/libgssapi.so: undefined reference to `krb5_config_free_strings' /usr/lib/libgssapi.so: undefined reference to `krb5_create_checksum' /usr/lib/libgssapi.so: undefined reference to `krb5_generate_random_block' /usr/lib/libgssapi.so: undefined reference to `krb5_crypto_init' /usr/lib/libgssapi.so: undefined reference to `krb5_enctype_to_keytype' /usr/lib/libgssapi.so: undefined reference to `krb5_free_creds_contents' /usr/lib/libgssapi.so: undefined reference to `krb5_storage_from_mem' /usr/lib/libgssapi.so: undefined reference to `krb5_store_address' /usr/lib/libgssapi.so: undefined reference to `krb5_decrypt_ivec' /usr/lib/libasn1.so: undefined reference to `initialize_error_table_r' /usr/lib/libgssapi.so: undefined reference to `krb5_store_int16' /usr/lib/libgssapi.so: undefined reference to `krb5_ret_int16' /usr/lib/libgssapi.so: undefined reference to `krb5_get_error_string' /usr/lib/libgssapi.so: undefined reference to `krb5_principal_match' /usr/lib/libgssapi.so: undefined reference to `krb5_auth_con_setlocalseqnumber' /usr/lib/libgssapi.so: undefined reference to `krb5_storage_to_data' /usr/lib/libgssapi.so: undefined reference to `krb5_store_int32' /usr/lib/libgssapi.so: undefined reference to `krb5_encrypt_ivec' /usr/lib/libgssapi.so: undefined reference to `krb5_storage_emem' /usr/lib/libgssapi.so: undefined reference to `krb5_store_data' /usr/lib/libgssapi.so: undefined reference to `krb5_auth_con_setremoteseqnumber' /usr/lib/libgssapi.so: undefined reference to `krb5_principal_get_realm' /usr/lib/libgssapi.so: undefined reference to `krb5_set_error_string' /usr/lib/libgssapi.so: undefined reference to `krb5_make_principal' /usr/lib/libgssapi.so: undefined reference to `krb5_store_keyblock' *** Error code 1 Stop in /usr/ports/net/samba3/work/samba-3.0.23c/source. *** Error code 1 Stop in /usr/ports/net/samba3. [root@s03p-fbsd01]# <------------- End of Output ------------->