[Samba] compiling samba-3.4.x on RHEL4

D.L. Meyer dlmeyer at uiuc.edu
Thu Sep 10 09:07:15 MDT 2009


Folks,

I am running into this same problem -- the source of the problem appears 
(to me) to be earlier in the compile, before the warnings/errors that 
Werner quoted.   I found reference to being unable to load "config.h".

The compile appears to be being executed with a current directory of 
'samba-3.4.1/source3/', and is directly compiling replace.c and talloc.c in 
their respective directories.  Both fail without access to "config.h".

To test, I set the current directory into the BUILD/samba-3.4.1/source3/ 
directory, and re-executed the gcc command from the output.  With this, I 
was able to duplicate the warning/error output from the package build. 
When I appended " -Iinclude" to the same command, the compile completed 
successfully -- without any errors or warnings.

Therefore, I have to conclude that the include paths are not being set 
correctly for these component compiles.   I have not had the time yet to 
dig any deeper into the Makefile/specfile structure to determine where this 
problem lies.

-D


--On Thursday, September 10, 2009 4:37 PM +0200 Werner Maes 
<Werner.Maes at icts.kuleuven.be> wrote:

> replace.h is in /usr/src/redhat/BUILD/samba-3.4.1/lib/replace/
>
> The Makefile can be found in /usr/src/redhat/BUILD/samba-3.4.1/source3/
>
> so -I./../lib/replace should point to the folder where replace.h can be 
found? Or am I missing sometmhing?
>
> CPPFLAGS=-DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 
-D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace 
-I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns 
-I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED
>
> werner
>
> ps: in samba 3.2.x & 3.3.x the folder lib/replace was situated in the 
source/ folder, but in samba 3.4.x it is no longer there but one directory 
up !
>



Donald L. Meyer                                      <dlmeyer at 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


More information about the samba mailing list