Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series source

2009-10-03 Thread D.L. Meyer

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


Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series source

2009-10-03 Thread Werner Maes
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 [dlme...@uiuc.edu]
Verzonden: zaterdag 3 oktober 2009 0:51
Aan: Michael Wood; Werner Maes
CC: samba@lists.samba.org; k...@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  
wrote:

> 2009/10/2 Werner Maes :
> [...]
> > 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 
> --
> 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


Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series source

2009-10-02 Thread D.L. Meyer
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 
 wrote:



2009/10/2 Werner Maes :
[...]
> 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 
--
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


Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series source

2009-10-02 Thread Werner Maes
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:esiot...@gmail.com]
> Sent: vrijdag 2 oktober 2009 14:44
> To: Werner Maes
> Cc: samba@lists.samba.org; k...@sernet.de
> Subject: Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series
> source
> 
> 2009/10/2 Werner Maes :
> [...]
> > 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 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series source

2009-10-02 Thread Michael Wood
2009/10/2 Werner Maes :
[...]
> 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 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Cannot compile RHEL rpms using samba 3.4.2 series source

2009-10-02 Thread Volker Lendecke
On Fri, Oct 02, 2009 at 02:37:56PM +0200, Werner Maes wrote:
> Although https://bugzilla.samba.org/show_bug.cgi?id=6721
> has status RESOLVED, I still get an error when trying to
> compile samba-3.4.2 on RHEL5.

Unfortunately we had to release 3.4.2 as a security release.
These by definition don't have any patches over the previous
one except the security fixes. So all fixes beyond those
that we announced for 3.4.2 will be in 3.4.3 only.

Sorry for that,

Volker


signature.asc
Description: Digital signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Cannot compile RHEL rpms using samba 3.4.2 series source

2009-10-02 Thread Werner Maes
hello

Although https://bugzilla.samba.org/show_bug.cgi?id=6721 has status RESOLVED, I 
still get an error when trying to compile samba-3.4.2 on RHEL5.

The following command failed:
gcc -O2 -g -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -c 
../lib/replace/getpass.c -o ../lib/replace/getpass.o
make: *** [../lib/replace/snprintf.o] Error 1
make: *** Waiting for unfinished jobs
make: *** [../lib/talloc/talloc.o] Error 1
make: *** [../lib/replace/replace.o] Error 1

kind regards

werner

ps: or maybe the resolution only refers that it is a duplicate of bug 6742?


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba