Trying to build samba3.2.5 as follows: ./configure --with-acl-support --with-ads=yes --with-ldap=yes --with-pam --enable-socket-wrapper --with-krb5=/opt/kerberos make produces the following error: libsmb/clikrb5.c:1605:2: #error UNKNOWN_KRB5_ENCTYPE_TO_STRING_FUNCTION The following command failed: gcc -I. -I/opt/samba/samba-3.2.5/source -I/opt/kerberos/include -O -D_SAMBA_BUILD_=3 -I/opt/samba/samba-3.2.5/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/opt/kerberos/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED -DSUNOS5 -I/include -I/opt/samba/samba-3.2.5/source/lib -D_SAMBA_BUILD_=3 -fPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o
can you please attach your config.log which is created by configure ?
Created attachment 4158 [details] gzip'd config.log as requested
okay, you are using gcc but libgcc_s.so.1 doesn't seem to be in your library search path: configure:62881: checking for krb5_error_code krb5_enctype_to_string(krb5_enctype enctype, char *str, size_t len) configure:62925: gcc -o conftest -Werror -I/opt/kerberos/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED -L/opt/kerberos/lib -R/opt/kerberos/lib -lthread -L./bin conftest.c -L/opt/kerberos/lib -R/opt/kerberos/lib -L/opt/kerberos/lib -R/opt/kerberos/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lsocket -lnsl -lresolv -lnsl -lsocket >&5 configure:62928: $? = 0 configure:62934: ./conftest ld.so.1: conftest: fatal: libgcc_s.so.1: open failed: No such file or directory ./configure: line 62935: 23707 Killed ./conftest$ac_exeext Can you search for that library and set LD_LIBRARY_PATH="/path/to/where/libgcc_s.so.1/is/in" and then run configure again?
The compile works libgcc_s.so.1 in LD_LIBRARY_PATH. Thanks.