On 28.3.2014 12:32, Petr Spacek wrote:
On 28.3.2014 09:56, Sandor Juhasz wrote:
Hello,

i am ok to compile it myself, looking for source code. I hope that way i
will be able to avoid messing
around with the ldap tree. Any help/documentation is appreciated.

Basically, documentation on
http://www.freeipa.org/page/Contribute/Code and linked pages apply to your
situation.

You will face dependency problems because you are going to build it on Ubuntu.
Don't give up and persist :-)

I would recommend you a non-standard procedure:
- clone the git repo: $ git clone git://git.fedorahosted.org/git/freeipa.git
- enter the cloned tree: $ cd freeipa.git
- $ make version-update
-- This command will fail (for sure) because of dependency problems. However,
it could be enough to proceed with ipasam build. You just need to generate
version.h and similar "useless" files.

- Enter "daemons" sub-directory in the cloned tree: $ cd daemons
- $ autoreconf -fiv
- $ ./configure
- $ make

This should build freeipa.git/daemons/ipa-sam/.libs/ipasam.so library without
building rest of FreeIPA so dependency problems should be limited only to this
sub-tree.

Note that this procedure is completely untested.

Please let us know if it worked for you or not. I'm curious! :-)

I'm adding output from make running on my Fedora 20 so you can easily find include paths you need to cover by packages in your distro etc.

Enjoy :-)

--
Petr^2 Spacek
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I. -I. -I/usr/include/samba-4.0 -DPREFIX=\""/usr/local"\" -DBINDIR=\""/usr/local/bin"\" -DLIBDIR=\""/usr/local/lib"\" -DLIBEXECDIR=\""/usr/local/libexec"\" -DDATADIR=\""/usr/local/share"\" -DLDAPIDIR=\""/usr/local/var/run"\" -DHAVE_LDAP -I ../../util -DWITH_OPENLDAP -I/usr/include/nspr4  -I/usr/include/nss3 -I/usr/include/nspr4  -DUSE_OPENLDAP    -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0  -DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0    -I/usr/include/nspr4  -I/usr/include/nss3 -I/usr/include/nspr4   -g -O2 -MT ipa_sam.lo -MD -MP -MF .deps/ipa_sam.Tpo -c -o ipa_sam.lo ipa_sam.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I. -I. -I/usr/include/samba-4.0 -DPREFIX=\""/usr/local"\" -DBINDIR=\""/usr/local/bin"\" -DLIBDIR=\""/usr/local/lib"\" -DLIBEXECDIR=\""/usr/local/libexec"\" -DDATADIR=\""/usr/local/share"\" -DLDAPIDIR=\""/usr/local/var/run"\" -DHAVE_LDAP -I ../../util -DWITH_OPENLDAP -I/usr/include/nspr4  -I/usr/include/nss3 -I/usr/include/nspr4  -DUSE_OPENLDAP    -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0  -DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0    -I/usr/include/nspr4  -I/usr/include/nss3 -I/usr/include/nspr4   -g -O2 -MT ipa_krb5.lo -MD -MP -MF .deps/ipa_krb5.Tpo -c -o ipa_krb5.lo `test -f '../../util/ipa_krb5.c' || echo './'`../../util/ipa_krb5.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I. -I. -I/usr/include/samba-4.0 -DPREFIX=\""/usr/local"\" -DBINDIR=\""/usr/local/bin"\" -DLIBDIR=\""/usr/local/lib"\" -DLIBEXECDIR=\""/usr/local/libexec"\" -DDATADIR=\""/usr/local/share"\" -DLDAPIDIR=\""/usr/local/var/run"\" -DHAVE_LDAP -I ../../util -DWITH_OPENLDAP -I/usr/include/nspr4  -I/usr/include/nss3 -I/usr/include/nspr4  -DUSE_OPENLDAP    -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0  -DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0    -I/usr/include/nspr4  -I/usr/include/nss3 -I/usr/include/nspr4   -g -O2 -MT ipa_pwd_ntlm.lo -MD -MP -MF .deps/ipa_pwd_ntlm.Tpo -c -o ipa_pwd_ntlm.lo `test -f '../../util/ipa_pwd_ntlm.c' || echo './'`../../util/ipa_pwd_ntlm.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I. -I. -I/usr/include/samba-4.0 -DPREFIX=\"/usr/local\" -DBINDIR=\"/usr/local/bin\" -DLIBDIR=\"/usr/local/lib\" -DLIBEXECDIR=\"/usr/local/libexec\" -DDATADIR=\"/usr/local/share\" -DLDAPIDIR=\"/usr/local/var/run\" -DHAVE_LDAP -I ../../util -DWITH_OPENLDAP -I/usr/include/nspr4 -I/usr/include/nss3 -I/usr/include/nspr4 -DUSE_OPENLDAP -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0 -DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0 -I/usr/include/nspr4 -I/usr/include/nss3 -I/usr/include/nspr4 -g -O2 -MT ipa_sam.lo -MD -MP -MF .deps/ipa_sam.Tpo -c ipa_sam.c  -fPIC -DPIC -o .libs/ipa_sam.o
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I. -I. -I/usr/include/samba-4.0 -DPREFIX=\"/usr/local\" -DBINDIR=\"/usr/local/bin\" -DLIBDIR=\"/usr/local/lib\" -DLIBEXECDIR=\"/usr/local/libexec\" -DDATADIR=\"/usr/local/share\" -DLDAPIDIR=\"/usr/local/var/run\" -DHAVE_LDAP -I ../../util -DWITH_OPENLDAP -I/usr/include/nspr4 -I/usr/include/nss3 -I/usr/include/nspr4 -DUSE_OPENLDAP -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0 -DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0 -I/usr/include/nspr4 -I/usr/include/nss3 -I/usr/include/nspr4 -g -O2 -MT ipa_pwd_ntlm.lo -MD -MP -MF .deps/ipa_pwd_ntlm.Tpo -c ../../util/ipa_pwd_ntlm.c  -fPIC -DPIC -o .libs/ipa_pwd_ntlm.o
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I. -I. -I/usr/include/samba-4.0 -DPREFIX=\"/usr/local\" -DBINDIR=\"/usr/local/bin\" -DLIBDIR=\"/usr/local/lib\" -DLIBEXECDIR=\"/usr/local/libexec\" -DDATADIR=\"/usr/local/share\" -DLDAPIDIR=\"/usr/local/var/run\" -DHAVE_LDAP -I ../../util -DWITH_OPENLDAP -I/usr/include/nspr4 -I/usr/include/nss3 -I/usr/include/nspr4 -DUSE_OPENLDAP -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0 -DHAVE_IMMEDIATE_STRUCTURES=1 -D_GNU_SOURCE=1 -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/include/samba-4.0 -I/usr/include/nspr4 -I/usr/include/nss3 -I/usr/include/nspr4 -g -O2 -MT ipa_krb5.lo -MD -MP -MF .deps/ipa_krb5.Tpo -c ../../util/ipa_krb5.c  -fPIC -DPIC -o .libs/ipa_krb5.o
mv -f .deps/ipa_krb5.Tpo .deps/ipa_krb5.Plo
mv -f .deps/ipa_pwd_ntlm.Tpo .deps/ipa_pwd_ntlm.Plo
mv -f .deps/ipa_sam.Tpo .deps/ipa_sam.Plo
/bin/sh ../libtool  --tag=CC   --mode=link gcc -std=gnu99  -g -O2 -avoid-version -module   -o ipasam.la -rpath /usr/local/lib/samba/pdb ipa_sam.lo ipa_krb5.lo ipa_pwd_ntlm.lo  -llber -lldap_r -lkrb5 -lk5crypto -lcom_err -ltalloc  -lcrypto -lsamba-util -ltevent -ltalloc  -lndr -lsamba-util -ltevent -ltalloc  -L/usr/lib64/samba -Wl,-rpath=/usr/lib64/samba -lsmbldap -lpdb -lsmbconf  -lsss_idmap   -lkrad -lkrb5 
libtool: link: gcc -std=gnu99 -shared  -fPIC -DPIC  .libs/ipa_sam.o .libs/ipa_krb5.o .libs/ipa_pwd_ntlm.o   -llber -lldap_r -lk5crypto -lcom_err -lcrypto -lndr -lsamba-util -ltevent -ltalloc -L/usr/lib64/samba -lsmbldap -lpdb -lsmbconf -lsss_idmap -lkrad -lkrb5  -O2 -Wl,-rpath=/usr/lib64/samba   -Wl,-soname -Wl,ipasam.so -o .libs/ipasam.so
libtool: link: ( cd ".libs" && rm -f "ipasam.la" && ln -s "../ipasam.la" "ipasam.la" )

_______________________________________________
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Reply via email to