Thanks for your effort, I' have a look on monday. Should we reopen this bug which has now status RESOLVED as a duplicate of bug 6742 but as we know now this is not the case !
kind regards werner ________________________________ Van: D.L. Meyer [[email protected]] Verzonden: zaterdag 3 oktober 2009 0:51 Aan: Michael Wood; Werner Maes CC: [email protected]; [email protected] Onderwerp: Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series source I've applied the patch for #6742 to the 3.4.2 package, and it makes no difference to the RHEL issue. (#6742 was reported for debian systems...) I have been able to determine that the problem appears to be with the carry-forward of the precompiled headers. The 'make pch' step proceeds without error, but as the process starts the main 'make all' part, it acts like the precompiled headers are not used. To verify this, I modified the 'make all' call from: make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" -j2 \ all modules pam_smbpass to: make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -I. -I/usr/src/redhat/BUILD/samba-3.4.2/source3 \ -I/usr/src/redhat/BUILD/samba-3.4.2/source3/iniparser/src -Iinclude -I./include \ -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. \ -I/usr/src/redhat/BUILD/samba-3.4.2/lib/tdb/include -I./libaddns -I./librpc -I./../lib/popt \ -I/usr/src/redhat/BUILD/samba-3.4.2/source3/lib -I.. -I../source4 " -j2 \ all modules pam_smbpass (Basically, including the entire list of include directories specified on the command line in the 'make pch' section.) This allows the build to proceed -- apparently properly -- until a later problem stops the process at 'ldb_modules.c': it complains about 'MODULESDIR' being undefined in function 'ldb_try_load_dso'. A little research and another addition results in something that at least completes the build: make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -I. -I/usr/src/redhat/BUILD/samba-3.4.2/source3 \ -I/usr/src/redhat/BUILD/samba-3.4.2/source3/iniparser/src -Iinclude -I./include \ -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. \ -I/usr/src/redhat/BUILD/samba-3.4.2/lib/tdb/include -I./libaddns -I./librpc -I./../lib/popt \ -I/usr/src/redhat/BUILD/samba-3.4.2/source3/lib -I.. -I../source4 -DMODULESDIR=\'/usr/lib/samba\' " -j2 \ all modules pam_smbpass I haven't tested the resulting packages yet, though. Hopefully, someone more versed in the use of precompiled headers can take a look here and see what might be wrong... -D --On Friday, October 02, 2009 2:44 PM +0200 Michael Wood <[email protected]> wrote: > 2009/10/2 Werner Maes <[email protected]>: > [...] > > ps: or maybe the resolution only refers that it is a duplicate of bug 6742? > > Exactly. > > Did you try the patch attached to bug 6742? > > -- > Michael Wood <[email protected]> > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
