From: Michael Wood on
2009/10/2 Werner Maes <Werner.Maes(a)icts.kuleuven.be>:
[...]
> 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 <esiotrot(a)gmail.com>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Werner Maes on
I applied the patch from Matt Kraai (https://bugzilla.samba.org/attachment.cgi?id=4728&action=view)
but it still does not compile !!

The patch does not seem to work on RHEL5. Has anybody else tested this patch?

werner

> -----Original Message-----
> From: Michael Wood [mailto:esiotrot(a)gmail.com]
> Sent: vrijdag 2 oktober 2009 14:44
> To: Werner Maes
> Cc: samba(a)lists.samba.org; ks(a)sernet.de
> Subject: Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series
> source
>
> 2009/10/2 Werner Maes <Werner.Maes(a)icts.kuleuven.be>:
> [...]
> > 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 <esiotrot(a)gmail.com>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: D.L. Meyer on
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
<esiotrot(a)gmail.com> wrote:

> 2009/10/2 Werner Maes <Werner.Maes(a)icts.kuleuven.be>:
> [...]
> > 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 <esiotrot(a)gmail.com>
> --
> 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
From: Werner Maes on
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 [dlmeyer(a)uiuc.edu]
Verzonden: zaterdag 3 oktober 2009 0:51
Aan: Michael Wood; Werner Maes
CC: samba(a)lists.samba.org; ks(a)sernet.de
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 <esiotrot(a)gmail.com> wrote:

> 2009/10/2 Werner Maes <Werner.Maes(a)icts.kuleuven.be>:
> [...]
> > 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 <esiotrot(a)gmail.com>
> --
> 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
From: D.L. Meyer on
You may want to look at #6540 - I think it is already open on this issue.

-D


--On Saturday, October 03, 2009 10:54 AM +0200 Werner Maes
<Werner.Maes(a)icts.kuleuven.be> wrote:

>
> 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 !
>





--
Donald L. Meyer <dlmeyer(a)illinois.edu>
- Technical System Manager, ACES TeleNet Service
- Technical Lead, ACES Web Infrastructure
Information Technology and Communication Services, College of ACES
University of Illinois at Urbana-Champaign

Video/H.323: 0012172445653 (GDS)
Phone: +1.217.244.5653
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba