CentOS 5.1 x86_64 with all the latest patches:<br>unable to do the build if i activate the rebuild form sources of the db4 :<br><br>make DB_SOURCE=1 PREFIX=/Local/fds DESTDIR=/var/tmp USE_64=1<br><br>The error :<br>==&gt; Running configure in work/fedora-ds-base-1.1.0 <br>
...<br>configure: checking for db...<br>checking for --with-db... using /var/tmp/Local/fds<br>checking for db_create in -ldb-4.2... no<br>configure: error: /var/tmp/Local/fds/include/db.h is version 4.2 but libdb-4.2 not found<br>
make[1]: *** [configure-work/fedora-ds-base-1.1.0/configure] Error 1<br>make[1]: Leaving directory `/Admin/BUILD/One-Step/dsbuild/ds/ldapserver&#39;<br>make: *** [dep-../../ds/ldapserver] Error 2<br><br>Details in /Admin/BUILD/One-Step/dsbuild/ds/ldapserver/work/fedora-ds-base-1.1.0/config.log :<br>
configure:24156: checking for db...<br>configure:24159: checking for --with-db<br>configure:24180: result: using /var/tmp/Local/fds<br>configure:24229: checking for db_create in -ldb-4.2<br>configure:24259: gcc -o conftest -g&nbsp; -L/var/tmp/Local/fds/lib&nbsp; conftest.c -ldb-4.2&nbsp;&nbsp; &gt;&amp;5<br>
/var/tmp/Local/fds/lib/libdb-<a href="http://4.2.so">4.2.so</a>: undefined reference to `pthread_mutex_trylock&#39;<br>/var/tmp/Local/fds/lib/libdb-<a href="http://4.2.so">4.2.so</a>: undefined reference to `pthread_mutexattr_setpshared&#39;<br>
/var/tmp/Local/fds/lib/libdb-<a href="http://4.2.so">4.2.so</a>: undefined reference to `pthread_mutexattr_destroy&#39;<br>/var/tmp/Local/fds/lib/libdb-<a href="http://4.2.so">4.2.so</a>: undefined reference to `pthread_condattr_setpshared&#39;<br>
/var/tmp/Local/fds/lib/libdb-<a href="http://4.2.so">4.2.so</a>: undefined reference to `pthread_mutexattr_init&#39;<br>collect2: ld returned 1 exit status<br>configure:24265: $? = 1<br>configure: failed program was:<br>| /* confdefs.h.&nbsp; */<br>
...<br>| /* end confdefs.h.&nbsp; */<br>|<br>| /* Override any gcc2 internal prototype to avoid an error.&nbsp; */<br>| #ifdef __cplusplus<br>| extern &quot;C&quot;<br>| #endif<br>| /* We use char because int might match the return type of a gcc2<br>
|&nbsp;&nbsp;&nbsp; builtin and then its argument prototype would still apply.&nbsp; */<br>| char db_create ();<br>| int<br>| main ()<br>| {<br>| db_create ();<br>|&nbsp;&nbsp; ;<br>|&nbsp;&nbsp; return 0;<br>| }<br>configure:24291: result: no<br>configure:24296: error: /var/tmp/Local/fds/include/db.h is version 4.2 but libdb-4.2 not found<br>
<br><br>The db4 build and installation is however succesful and with &#39;-lpthreads&#39; :<br><br><br>&nbsp;==&gt; Running configure in work/db-<a href="http://4.2.52.NC/built">4.2.52.NC/built</a> <br>cd work/db-<a href="http://4.2.52.NC/built">4.2.52.NC/built</a> &amp;&amp; LIBSO_LIBS=-lpthread CFLAGS=-O2 ../dist/configure --enable-dynamic --disable-debug --prefix=/Local/fds<br>
...<br>checking for main in -lpthread... yes<br>...<br>checking for mutexes... POSIX/pthreads/library<br>...<br><br><br>[install] complete for db.<br><br><br>[root@ldap-model ds]# ls -alF /var/tmp/Local/fds/lib/ <br>
total 3544<br>
drwxr-xr-x 2 root root&nbsp;&nbsp;&nbsp; 4096 Feb&nbsp; 9 15:20 ./<br>
drwxr-xr-x 6 root root&nbsp;&nbsp;&nbsp; 4096 Feb&nbsp; 9 15:20 ../<br>
-rw-r--r-- 1 root root 1366338 Feb&nbsp; 9 15:20 libdb-4.2.a<br>
-rw-r--r-- 1 root root&nbsp;&nbsp;&nbsp;&nbsp; 797 Feb&nbsp; 9 15:20 <a href="http://libdb-4.2.la">libdb-4.2.la</a><br>
-rwxr-xr-x 1 root root&nbsp; 864660 Feb&nbsp; 9 15:20 libdb-4.2.so*<br>
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12 Feb&nbsp; 9 15:20 libdb-4.so -&gt; libdb-4.2.so*<br>
-rw-r--r-- 1 root root 1366338 Feb&nbsp; 9 15:20 libdb.a<br>
lrwxrwxrwx 1 root root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12 Feb&nbsp; 9 15:20 libdb.so -&gt; libdb-4.2.so*<br><br><br><br><br><div><span class="gmail_quote">2008/2/8, Rich Megginson &lt;<a href="mailto:rmeggins@redhat.com">rmeggins@redhat.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve updated the one step build scripts for Fedora DS 1.1.&nbsp;&nbsp;The new<br>version allows you to pick and choose which components you want to build<br>from source and which you want to just use from the operating system.&nbsp;&nbsp;I<br>
don&#39;t have a tarball up yet, but you can get it from anonymous CVS:<br><br>cvs -d :pserver:anonymous@cvs.fedoraproject.org:/cvs/dirsec co dsbuild<br>or if you don&#39;t want the CVS directories<br>cvs -d :pserver:anonymous@cvs.fedoraproject.org:/cvs/dirsec export<br>
-rHEAD dsbuild<br><br>FAQ:<br>* How does it work?<br>after checkout/export<br>&nbsp;&nbsp;cd dsbuild/meta/ds<br>&nbsp;&nbsp;make help<br>Help only tells about SASL_SOURCE and SNMP_SOURCE - but if you look at<br>the meta/ds/Makefile you will see that there are many COMPONENT_SOURCE<br>
variables (NSPR_SOURCE, NSS_SOURCE, etc.).&nbsp;&nbsp;The script is not smart<br>enough to figure out which components are provided by your OS, so if you<br>want to build something from source you&#39;ll have to explicitly specify it.<br>
<br>Use make PREFIX=/opt/dirsrv to compile and install directly into /opt/dirsrv<br>Use make PREFIX=/opt/dirsrv DESTDIR=/var/tmp to compile and install into<br>/var/tmp for packaging that at runtime will use /opt/dirsrv e.g. for<br>
native system packaging systems<br><br>* What&#39;s missing?<br>All console/java code is still incomplete - jss, ldapjdk, etc.<br>dsbuild/README needs to be updated<br>make help needs to be updated<br><br>* What platforms are supported?<br>
You&#39;ll need relatively recent versions of GNU make, sed, wget, bzip2,<br>gzip, tar, patch, md5sum<br><br>--<br>Fedora-directory-announce mailing list<br><a href="mailto:Fedora-directory-announce@redhat.com">Fedora-directory-announce@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-directory-announce">https://www.redhat.com/mailman/listinfo/fedora-directory-announce</a><br><br><br></blockquote></div><br>