Samba 3.6.22 on AIX 7.1 with Windows AD (Kerberos and winbind)


 
Thread Tools Search this Thread
Operating Systems AIX Samba 3.6.22 on AIX 7.1 with Windows AD (Kerberos and winbind)
# 15  
Old 05-05-2015
I try to build samba on aix 7.1
give me those errors
Code:
Compiling lib/addns/dnsrecord.c
"../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax error: possible missing ';' or ','?
"../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 41.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for GSSAPI_CPP_START.
[ 579/3725] Compiling lib/addns/dnsutils.c
"../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax error: possible missing ';' or ','?
"../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 41.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for GSSAPI_CPP_START.
Waf: Leaving directory `/usr/local/src/samba-4.1.17/bin'
Build failed:
 -> task failed (err #1): 
        {task: cc dnsrecord.c -> dnsrecord_1.o}
 -> task failed (err #1): 
        {task: cc dnsutils.c -> dnsutils_1.o}
make: The error code from the last command is 1.

No way to build?

---------- Post updated at 03:11 PM ---------- Previous update was at 02:22 PM ----------

Searching on net suggest this

IBM LI75061: ISSUES WITH C++ STYLE COMMENTS AND C COMPILER - United States

"You can use -qcpluscmt to have the C compiler accept C++ style"

I made

Code:
 CFLAGS='-qcpluscmt' CXXFLAGS=$CFLAGS CPPFLAGS='-I/opt/freeware/include' LDFLAGS=' -L/opt/freeware/lib' ./configure --prefix=/opt/mg --check-c-compiler=xlc

and

Code:
 CFLAGS='-qcpluscmt' CXXFLAGS=$CFLAGS CPPFLAGS='-I/opt/freeware/include' LDFLAGS=' -L/opt/freeware/lib' make


But give me same error
# 16  
Old 05-05-2015
did you try 4.1.16 too?
# 17  
Old 05-06-2015
I'm tryng now,the first error is avoid without using the freeeware includes,but give another error Smilie

---------- Post updated at 05:30 PM ---------- Previous update was at 05:00 PM ----------

4.1.17
another error

Code:
ld: 0711-224 WARNING: Duplicate symbol: fc_softc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
[3260/3711] Linking default/lib/iniparser/src/libiniparser.so
[3261/3711] Linking default/lib/subunit/c/libsubunit.so
[3262/3711] Linking default/source4/heimdal_build/rkpty
[3263/3711] Linking default/source3/replacetort
[3264/3711] Linking default/source3/timelimit
[3265/3711] Linking default/source3/lib/pthreadpool/pthreadpooltest
[3266/3711] Linking default/source3/lib/asys/asystest
[3267/3711] Linking default/lib/tdb/tdbtool
ld: 0711-224 WARNING: Duplicate symbol: __start
ld: 0711-224 WARNING: Duplicate symbol: .__start
ld: 0711-224 WARNING: Duplicate symbol: _malloc_user_defined_name
ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: __threads_init
ld: 0711-224 WARNING: Duplicate symbol: .__threads_init
ld: 0711-224 WARNING: Duplicate symbol: __pth_init_routine
ld: 0711-224 WARNING: Duplicate symbol: call_pth_init
ld: 0711-224 WARNING: Duplicate symbol: .call_pth_init
ld: 0711-224 WARNING: Duplicate symbol: _bsd_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _xti_tli_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _nsl_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __dce_compat_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __C_runtime_pstartup
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: p_xrcfg
ld: 0711-224 WARNING: Duplicate symbol: p_xrc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
[3268/3711] Linking default/lib/tdb/tdbdump
[3269/3711] Linking default/lib/tdb/tdbtorture
ld: 0711-224 WARNING: Duplicate symbol: __start
ld: 0711-224 WARNING: Duplicate symbol: .__start
ld: 0711-224 WARNING: Duplicate symbol: _malloc_user_defined_name
ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: __threads_init
ld: 0711-224 WARNING: Duplicate symbol: .__threads_init
ld: 0711-224 WARNING: Duplicate symbol: __pth_init_routine
ld: 0711-224 WARNING: Duplicate symbol: call_pth_init
ld: 0711-224 WARNING: Duplicate symbol: .call_pth_init
ld: 0711-224 WARNING: Duplicate symbol: _bsd_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _xti_tli_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _nsl_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __dce_compat_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __C_runtime_pstartup
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: .rep_fprintf
ld: 0711-224 WARNING: Duplicate symbol: rep_fprintf
ld: 0711-224 WARNING: Duplicate symbol: p_xrcfg
ld: 0711-224 WARNING: Duplicate symbol: p_xrc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: .tdb_rescue
ld: 0711-224 WARNING: Duplicate symbol: __start
ld: 0711-224 WARNING: Duplicate symbol: .__start
ld: 0711-224 WARNING: Duplicate symbol: _malloc_user_defined_name
ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: __threads_init
ld: 0711-224 WARNING: Duplicate symbol: .__threads_init
ld: 0711-224 WARNING: Duplicate symbol: __pth_init_routine
ld: 0711-224 WARNING: Duplicate symbol: call_pth_init
ld: 0711-224 WARNING: Duplicate symbol: .call_pth_init
ld: 0711-224 WARNING: Duplicate symbol: _bsd_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _xti_tli_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _nsl_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __dce_compat_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __C_runtime_pstartup
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: .rep_asprintf
ld: 0711-224 WARNING: Duplicate symbol: rep_asprintf
ld: 0711-224 WARNING: Duplicate symbol: p_xrcfg
ld: 0711-224 WARNING: Duplicate symbol: p_xrc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
Waf: Leaving directory `/usr/local/src/samba-4.1.17/bin'
Build failed:  -> task failed (err #8): 
        {task: cc_link tdbdump_8.o -> tdbdump}
make: The error code from the last command is 1.

---------- Post updated at 10:01 PM ---------- Previous update was at 05:30 PM ----------

4.1.17 with those flags

Code:
export CC="/opt/IBM/xlc/13.1.0/bin/xlc"
export CFLAGS="-qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 \
        -D_ALL_SOURCE -DFUNCPROTO=15"
./configure --prefix=/opt/mg/samba4

gmake give this error

Code:
[3419/3711] Linking default/source3/smbfilter
ld: 0711-224 WARNING: Duplicate symbol: __start
ld: 0711-224 WARNING: Duplicate symbol: .__start
ld: 0711-224 WARNING: Duplicate symbol: _malloc_user_defined_name
ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: __threads_init
ld: 0711-224 WARNING: Duplicate symbol: .__threads_init
ld: 0711-224 WARNING: Duplicate symbol: __pth_init_routine
ld: 0711-224 WARNING: Duplicate symbol: call_pth_init
ld: 0711-224 WARNING: Duplicate symbol: .call_pth_init
ld: 0711-224 WARNING: Duplicate symbol: _bsd_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _xti_tli_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _nsl_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __dce_compat_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __C_runtime_pstartup
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: .rep_fprintf
ld: 0711-224 WARNING: Duplicate symbol: rep_fprintf
ld: 0711-224 WARNING: Duplicate symbol: .rep_strlcpy
ld: 0711-224 WARNING: Duplicate symbol: rep_strlcpy
ld: 0711-224 WARNING: Duplicate symbol: .strcmp
ld: 0711-224 WARNING: Duplicate symbol: strcmp
ld: 0711-224 WARNING: Duplicate symbol: p_xrcfg
ld: 0711-224 WARNING: Duplicate symbol: p_xrc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: ._tevent_req_oom

# 18  
Old 06-12-2015
Hi Philip, it is possible to give more information about your rpm for sendmail-winbind. I tied to compile many version 3 and 4 and i have always an error. The rpms on perlz and other official aix site not work, because it missing a library for nss. This libray is required for auth aix and winbind.

Are-you sure if your login work with AD and Aix auth? Where you found you rpm? it is possible to share your rpm?

Regards.

JF Aubin

Quote:
Originally Posted by PhilippeA
Hello,

I'm not sure where i get the file WINBIND... From my documentation i have installed the following package :
  • rpm -ivh samba*.rpm
    • samba-winbind-clients-3.6.22-1
    • samba-winbind-3.6.22-1
    • samba-swat-3.6.22-1
    • samba-common-3.6.22-1
    • samba-client-3.6.22-1
    • samba-3.6.22-1
It seems that my packages are a recompiled form...
# 19  
Old 06-12-2015
Samba 3.* is deprecated and no longer maintained
I have tried to compile it,but if enable nss give error.
Samba4 with xlc give those errors

Code:
[ 591/3881] Compiling lib/util/pidfile.c
[ 592/3881] Compiling lib/util/tevent_debug.c
[ 593/3881] Compiling lib/util/util_process.c
[ 594/3881] Compiling lib/util/memcache.c
[ 595/3881] Compiling lib/util/tiniparser.c
[ 596/3881] Compiling lib/util/xfile.c
[ 597/3881] Compiling lib/util/data_blob.c
[ 598/3881] Compiling lib/util/util_file.c
[ 599/3881] Compiling lib/util/time.c
"../lib/util/time.c", line 63.5: 1506-294 (S) Syntax error in expression on #if directive.
Waf: Leaving directory `/usr/local/src/samba-4.2.2/bin'
Build failed:  -> task failed (err #1): 
        {task: cc time.c -> time_9.o}
make: The error code from the last command is 1.


configure used is

Code:
 CPPFLAGS='-I/opt/freeware/include' LDFLAGS=' -L/opt/freeware/lib' ./configure  --check-c-compiler=xlc --with-ads   --prefix=/opt/samba4  --sysconfdir=/etc/samba4   --localstatedir=/var  --with-statedir=/var/lib/samba4   --with-privatedir=/var/lib/samba4/private  --with-piddir=/var/run/samba4  --with-cachedir=/var/lib/samba4/private   --with-lockdir=/var/lock/samba4 --with-logfilebase=/var/log/samba4 --with-sockets-dir=/var/run/samba4   --with-configdir=/etc/samba4 && make

# 20  
Old 06-12-2015
the deprecated is not important for me. 3 or 4 or xxxx is not important. I would samba+winbind for connect Aix like Linux and IBM SAN to active directory.
I have tried with gcc and xlc with samba 3.X and 4.x. The configure wotk great, but the make made different error if i take xlc, gcc ... If i find good old Samba 3.xx in rpm with all library for use with nss for AIX, i'll be very very happy.

Quote:
Originally Posted by Linusolaradm1
Samba 3.* is deprecated and no longer maintained
I have tried to compile it,but if enable nss give error.
Samba4 with xlc give those errors

Code:
[ 591/3881] Compiling lib/util/pidfile.c
[ 592/3881] Compiling lib/util/tevent_debug.c
[ 593/3881] Compiling lib/util/util_process.c
[ 594/3881] Compiling lib/util/memcache.c
[ 595/3881] Compiling lib/util/tiniparser.c
[ 596/3881] Compiling lib/util/xfile.c
[ 597/3881] Compiling lib/util/data_blob.c
[ 598/3881] Compiling lib/util/util_file.c
[ 599/3881] Compiling lib/util/time.c
"../lib/util/time.c", line 63.5: 1506-294 (S) Syntax error in expression on #if directive.
Waf: Leaving directory `/usr/local/src/samba-4.2.2/bin'
Build failed:  -> task failed (err #1): 
        {task: cc time.c -> time_9.o}
make: The error code from the last command is 1.


configure used is

Code:
 CPPFLAGS='-I/opt/freeware/include' LDFLAGS=' -L/opt/freeware/lib' ./configure  --check-c-compiler=xlc --with-ads   --prefix=/opt/samba4  --sysconfdir=/etc/samba4   --localstatedir=/var  --with-statedir=/var/lib/samba4   --with-privatedir=/var/lib/samba4/private  --with-piddir=/var/run/samba4  --with-cachedir=/var/lib/samba4/private   --with-lockdir=/var/lock/samba4 --with-logfilebase=/var/log/samba4 --with-sockets-dir=/var/run/samba4   --with-configdir=/etc/samba4 && make

# 21  
Old 06-12-2015
I have tried also to compile samba 3.*,with enable-nss-winbind
But give me an error,next days i will post the error.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. UNIX and Linux Applications

WINBIND module missing in AIX 7.1

I have installed following packages from perzl samba-winbind-clients-3.6.22-1 samba-client-3.6.22-1 samba-domainjoin-gui-3.6.22-1 samba-winbind-devel-3.6.22-1 samba-3.6.22-1 samba-common-3.6.22-1 samba-winbind-krb5-locator-3.6.22-1 samba-doc-3.6.22-1 samba-swat-3.6.22-1... (7 Replies)
Discussion started by: laxtnog
7 Replies

3. AIX

AIX 7.1 integrate AD with winbind

I have joined an AIX 7.1 into a 2012 AD domain sucesfully. I can get ouput from wbinfo -u but when I try to access a share I get the following error : check_ntlm_password: Authentication for user -> FAILED with error NT_STATUS_NO_SUCH_USER I have found that I'm missing... (0 Replies)
Discussion started by: laxtnog
0 Replies

4. HP-UX

HP-UX SSH and Active Directory Kerberos with Samba

The situation: i have a AD server with samba4,all clients ssh-kerberos works fine,except hpux :p wich works only for few days..then i must re-export(sic!) the keys with samba-tool domain exportkeytab 11.keytab --principal=host/hpux.fqdn Why after few days ssh return error "server not found... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

5. UNIX for Advanced & Expert Users

Cannot login using WINBIND in AIX 5.3

I configured AIX5.3 to use kerberos and winbind so user can login and authenticate via AD. I was able to join my AIX server to domain and can execute wbinfo -u/g. However when I login, It says unknown user. I already edit /etc/secuirty/user and then method.cfg. On the log.winbindd it says ... (0 Replies)
Discussion started by: lhareigh890
0 Replies

6. Red Hat

Samba/Winbind issue - Can't get user and group info from sub domains

Hi, We now have a Samba or Winbind issue. The Linux client under RHEL6 can not get Windows' AD sub-domain info. See the following output please. The main domain 'Global' is shown online, but the sub-domain 'Europe' and 'Asia' are shown offline although they are online. Commands 'wbinfo -u' and... (0 Replies)
Discussion started by: aixlover
0 Replies

7. Red Hat

Winbind and pam - restrict all services except for samba access

Hi, I have recently taken control of a number of RHEL5.3 servers that have samba shares setup on them and are authenticating using pam and winbind. My issue is that any user that has an active directory account can currently log in to the linux boxes using their ad credentials. I need to... (0 Replies)
Discussion started by: klyne
0 Replies

8. 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

9. SCO

Authentication problems with Active Directory/Samba/Winbind/Pam

Hi all. I'm having real trouble authenticating users against active directory for my SCO UnixWare 7.1.4 box running samba 3.0.24 (installed via Maintenance pack 4). I can list AD users/groups (after overcoming several hiccups) with wbinfo -g / wbinfo -u. I can use id to get a view an ad user ie:... (0 Replies)
Discussion started by: silk600
0 Replies

10. Linux

Enable sudo for Win AD users authenticated with Linux samba winbind service

Hi everyone, I wonder if anyone ever came across the idea of unifying AD and Linux user accounts We have a Linux machine with 'samba' 'winbind' service configured to let Windows AD users to logon locally using their AD accounts and passwords. I can use 'su' to get to the local user privilege... (0 Replies)
Discussion started by: will_mike
0 Replies
Login or Register to Ask a Question