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 with no issues, but when the time comes to make, this happens:

Code:

make: make 1254-025 There must be an existing description file or specify a target.

it's as if configure never did its job??

I know this must be a very easy fix... any help would be very much appreciated! I have tried make all and it does the same thing. I need to compile from source because I want to authenticate to AIX 5.3 with AD, using openldap and kerberos, both of which are installed. The configure generated config.h includes the lines to build for kerberos and openldap so that part is working.

Thanks!

Bump? Anyone? I thought this would be a really simple solution, I am not all that familiar with compiling from source but have compiled a lot of software and never have I seen this... Thanks!

Hi.

I think your "Bump?" is OK, as you didn't receive an answer yet. But I moved the thread to another forum, where it should hopefully receive more attention, as I don't feel the "UNIX for Dummies..." is the right place for it.

OK thanks. I did not realize, I just bookmarked it and have been checking on it.

Wow. I guess this is as odd as I thought.. Nobody has even a guess?

What compiler and Makefile are you using?

Thanks for the reply. I am using gcc, I am not sure what makefile I am using, whichever the default one is that the configure script produces? I am not that familiar with the logistics of compiling from source, general make and configure errors I can deal with (typically missing/incorrect dependencies) but this I am unsure of. How do I determine the Makefile?

If I were you, I would check what make is used, and install gmake if necessary and give it a try...
You seem to not be the only one struggling with this issue under AIX...

I always thought make was just a shortcut of sorts to run the compiler you set in the CC variable with all of its build time switches/flags set by configure. (That may be incorrect, that is just how it has always seemed to me). Here is the output from gcc -v:

Using built-in specs.                                                           
Target: powerpc-ibm-aix5.3.0.0                                                  
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enab
le-languages=c,c++,java --prefix=/opt/freeware --enable-threads --enable-version
-specific-runtime-libs --host=powerpc-ibm-aix5.3.0.0 --target=powerpc-ibm-aix5.3
.0.0 --build=powerpc-ibm-aix5.3.0.0 --disable-libjava-multilib                  
Thread model: aix                                                               
gcc version 4.2.0                                                               

I have tried building with both cc=gcc and cc=cc and it is the same. I will download and try gmake, have never used it before so that will be a learning experience. Thanks for the information

I don't know if you got an answer on this yet, but I've been working with at getting samba compiled on AIX also. AIX 6.1.

Once you run ./configure, you should be left with a Makefile-noincludes file. Then you can do

make -f Makefile-noincludes

I believe you can also do:
./autogen.sh
then
make

However on my system, autogen.sh seems to not find libiconv and a bunch of other things. So I seem to have better luck doing a straight configure/make.

I do admit however that I have still got something not quite right with my config options as winbind still has problems loading idmap_rid.

Nonetheless, here is what I have so far:

./configure \
--with-libsmbclient \
--with-libtdb \
--with-libaddns \
--with-ads \
--with-winbind \
--with-ldap \
--with-wbclient \
--enable-socket-wrapper \
--enable-nss-wrapper \
--with-winbind \
--with-shared-modules=idmap_rid \
--includedir=/opt/pware/include \
CPPFLAGS="-I/opt/pware/include -Xlinker -brtl" \
LDFLAGS=-L/opt/pware/lib