[Samba] IBM xlc compiler and configure question
David Shapiro
David.Shapiro at bcbsnc.com
Fri Mar 3 13:13:25 GMT 2006
I am trying desperately to get rid idmap support working. I got xlc 6.0
on the box to compile, but I cannot get past configure because it gives
the following error in config.log:
cc: 1501-208 command option e is missing a subargument
configure:1708: $? = 40
configure:1717: result:
configure:1804: checking for gcc
configure:1830: result: cc
configure:2074: checking for C compiler version
configure:2077: cc --version </dev/null >&5
cc: 1501-216 command option -version is not recognized - passed to ld
C for AIX Compiler, Version 6
Usage:
xlc [ option | inputfile ]...
cc [ option | inputfile ]...
c89 [ option | inputfile ]...
xlc128 [ option | inputfile ]...
...
If I run cc --version or -version it does in fact just spit out usage
information. Why is it doing --version? How do I get configuration
going with xlc?
Here is my setup.sh script:
#!/bin/ksh -x
#export LIBPATH=/usr/lib:/usr/local/lib:/opt/freeware/lib
env "CC=cc" \
CFLAGS="-DPAM_AUTHTOK_RECOVER_ERR=PAM_AUTHTOK_RECOVERY_ERR
-DPAM_EXTERN=extern -D_LINUX_SOURCE_COMPAT"
\
CPPFLAGS="-I/usr/local/bdb/include -I/usr/local/ssl/include
-I/usr/local/include -I/usr/local" \
LDFLAGS="-L/usr/local/bdb/lib -L/usr/local/cyrus-sasl/lib
-L/usr/local/ssl/lib -L/usr/local/openldap/li
b -L/usr/local/lib /usr/local/lib/libiconv.a /usr/local/lib/libintl.a
/usr/local/ssl/lib/libcrypto.a /u
sr/local/ssl/lib/libssl.a -L/usr/lib -lc" \
../configure --prefix=/usr/local/samba
--with-shared-modules=idmap_ad,idmap_rid --with-ads --with-ldap
--with-pam --with-krb5=/usr/local/heimdal-krb5 --with-winbind
--with-acl-support --with-utmp --with-quo
tas --with-sendfile-support --with-aio-support --enable-shared=yes
--disable-static --with-libiconv=/us
r/local
/usr/local/bin/make
exit
/usr/local/bin/make install
for i in WINBIND pam_winbind.so; do
if [ -f /usr/lib/security/$i ]; then
mv /usr/lib/security/$i /usr/lib/security/$i.old
chmod 555 nsswitch/$i
cp nsswitch/$i /usr/lib/security
rm /usr/lib/security/$i.old
else
cp nsswitch/$i /usr/lib/security
fi
done
David Shapiro
Unix Team Lead
919-765-2011
More information about the samba
mailing list