samba-2.0.7 build in separate directory fails
David Lee
T.D.Lee at durham.ac.uk
Thu May 18 13:18:23 GMT 2000
Re:
> Date: Wed, 17 May 2000 18:50:48 +0200 (CEST)
> From: "Philippe De Muyter" <phdm at macqel.be>
> To: samba at samba.org
> Subject: samba-2.0.7 build in separate directory fails
>
> I try to compile samba-2.07 in a separate directory and it fails with :
>
> Linking bin/smbd
> ld: 0711-934 SEVERE ERROR: Cannot create the output file: bin/smbd
> ld:open() A file or directory in the path name does not exist.
> collect2: ld returned 12 exit status
> gnumake: *** [bin/smbd] Error 1
>
> because the directory `bin' does not exist in my build directory; the
> `bin/.dummy' rule is not enough, because `bin/.dummy' exists in the source
> directory.
>
> I am the only one trying that, or does a fix already exist ?
I also spotted this, and reported it on April 6, during the pre-release
phase of 2.0.7 . Sadly it seems the report seemed was overlooked.
My report was as follows:
#####################################################
# Date: Thu, 6 Apr 2000 16:10:03 +0100 (BST)
# From: David Lee <dcl0tdl at arachne.dur.ac.uk>
# To: Jeremy Allison <jeremy at valinux.com>
# Subject: Re: Samba 2.0.7pre3 snapshot released.
# Message-ID: <Pine.GSO.3.95-960729.1000406154445.5080S-100000 at arachne.dur.ac.uk>
#
# On Sat, 1 Apr 2000, Jeremy Allison wrote:
#
# > I just released Samba 2.0.7pre3, available from :
# >
# > ftp://samba.org/pub/samba/alpha/samba-2.0.7pre3.tar.gz
# >
# > [...]
# > The final things left to do before official 2.0.7 release
# > are :
# >
# > (1) Fix any reported bugs in this release
#
# [...]
#
# 2. The 2.0.7pre* distributions have contained a "source/bin" directory
# (with a file ".dummy"). But if, like me, you build elsewhere, this messes
# up the final linking. Please could it not be distributed?
#
# Demo + fix:
#
# 1. create a subdirectory (we use one per machine-architecture)
# 2. cd down into that
# 3. "../configure [... etc. ...]".
# At link-time it gets its VPATH (or similar) confused and gives:
#
# jeeves [sparc.sunos5] 103% make
# Using FLAGS = -O -Iinclude -I../include [...]
# Using FLAGS32 = -O -Iinclude -I../include [...]
# Using LIBS = -lsec -lgen -lsocket -lnsl -ldl
# Compiling smbd/connection.c
# Linking bin/smbd
# ld: fatal: file bin/smbd: cannot open file: No such file or directory
# make: *** [bin/smbd] Error 1
# jeeves [sparc.sunos5] 104%
#
# Removing the offending distributed "bin" directory fixes the problem:
#
# jeeves [sparc.sunos5] 104% mv ../bin ../bin.diff
# jeeves [sparc.sunos5] 105% make
# Using FLAGS = -O -Iinclude -I../include [...]
# Using FLAGS32 = -O -Iinclude -I../include [...]
# Using LIBS = -lsec -lgen -lsocket -lnsl -ldl
# mkdir bin
# Linking bin/smbd
# Linking bin/nmbd
# [... proceeds OK to completion ...]
#
#####################################################
--
: David Lee I.T. Service :
: Systems Programmer Computer Centre :
: University of Durham :
: http://www.dur.ac.uk/~dcl0tdl South Road :
: Durham :
: Phone: +44 191 374 2882 U.K. :
More information about the samba
mailing list