Bug #1349

gnu make broken when building outside src directory.

Added by Anonymous about 8 years ago. Updated almost 8 years ago.

Status:FixedStart date:
Priority:LowDue date:
Assignee:-% Done:


Target version:1.5.0
Missing in 1.5.x:


When compiling lighttpd outside of the sources directory, make fails. This bug was introduced somewhere between version 1.4.16 and 1.4.18.

../src/lemon -q /u/bryan/dev/extsrc-test/extsrc/bin/lighttpd/src/configparser.y /u/bryan/dev/extsrc-test/extsrc/bin/lighttpd/src/lempar.c
gcc -DHAVE_CONFIG_H -DLIBRARY_DIR="\"/u/bryan/dev/extsrc-test/release/lib\"" -DSBIN_DIR="\"/u/bryan/dev/extsrc-test/release/sbin\"" -I. -I.. -I/u/bryan/dev/extsrc-test/extsrc/bin/lighttpd/src   -I/u/bryan/dev/extsrc-test/release/include -D_REENTRANT -D__EXTENSIONS__ -DOPENSSL_NO_KRB5 -I/u/bryan/dev/extsrc-test/release/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES  -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -MT configfile.o -MD -MP -MF .deps/configfile.Tpo -c -o configfile.o configfile.c
gcc: configfile.c: No such file or directory
gcc: no input files
make[2]: *** [configfile.o] Error 1
make[2]: Leaving directory `/u/bryan/dev/extsrc-test/build/extsrc/bin/lighttpd/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/u/bryan/dev/extsrc-test/build/extsrc/bin/lighttpd'
make: *** [all] Error 2

-- bryan

0010-Fix-building-outside-of-the-src-dir.patch Magnifier (1.14 KB) stbuehler, 2008-02-17 18:47


#1 Updated by stbuehler almost 8 years ago

I tried build in subdir "build/" of the source (checkout; ./autogen.sh: mkdir build; cd build; ../configure; make)

Without patch i got the same error, with patch it compiled.

Applied patch in my normal build dir, and it didn't break - so i hope it works ;-)

#2 Updated by stbuehler almost 8 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Fixed in r2088

Also available in: Atom