#1 Fails to build on FreeBSD 4.10


Seems to have some issue with older make or some such...

insatiable 21:47:28 ~/littleutils-1.0.16 $ ./configure; make
checking build system type... i386-unknown-freebsd4.10
checking host system type... i386-unknown-freebsd4.10
checking if dmalloc is requested... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking for getopt... yes
checking for fseeko... yes
checking for lrand48... yes
checking for random... yes
checking for realpath... yes
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
png headers not found: skipping pngrecolor, pngstrip, opt-gif, and opt-png
checking for bash... /usr/local/bin/bash
checking for perl... /usr/bin/perl
checking for gifsicle... no
checking for pngcrush... no
gifsicle utility missing: skipping opt-gif
pngcrush utility missing: skipping opt-png
checking for jpegtran... yes
checking for file... yes
checking for bzip2... yes
checking for 7za... yes
checking for lzma... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating extra/Makefile
config.status: creating littleutils/Makefile
config.status: creating imageutils/Makefile
config.status: creating repeats/Makefile
config.status: creating scripts/Makefile
config.status: creating config.h
config.status: config.h is unchanged

Configuration of littleutils-1.0.16 for i386-unknown-freebsd4.10 complete.


gcc -o filedate
gcc: No input files specified
*** Error code 1

Stop in /home/jtitus/littleutils-1.0.16/littleutils.
*** Error code 1

Stop in /home/jtitus/littleutils-1.0.16.


Debug make ('make -d A') fails like this :

SuffFindDeps (filedate)
No known suffix on filedate. Using .NULL suffix
not adding suffix rules
filedate:@ = filedate
filedate:* = filedate
SuffFindDeps (filedate.o)
trying filedate.c...Searching for filedate.c...in '.'
got it
filedate.o:@ = filedate.o
filedate.o:* = filedate
applying .c -> .o to "filedate.o"
SuffFindDeps (filedate.c)
trying filedate.y...Searching for filedate.y...failed.
not there
trying filedate.l...Searching for filedate.l...failed.
not there
filedate.c:@ = filedate.c
filedate.c:* = filedate
Searching for filedate.c...in '.'
filedate.c:@ = filedate.c
filedate.c:* = filedate
filedate.o:< = filedate.c
Examining filedate.c...modified 5:00:00 Nov 18, 2006...up-to-date.
Examining filedate.o...non-existent...modified before source...out-of-date.
filedate.o:> = filedate.c
filedate.o:? = filedate.c
gcc -g -O2 -c filedate.c
update time: 21:52:40 May 17, 2007
Examining filedate...non-existent...modified before source...out-of-date.
filedate:> = filedate.o
filedate:? = filedate.o
gcc -o filedate
gcc: No input files specified
*** Error code 1

Scripts fail to build like this -

insatiable 21:54:03 ~/littleutils-1.0.16/scripts $ make
sed -e "s:PROGPERL:/usr/bin/perl:" -e "s:LU_VERSION:1.0.16:" -e "s:PROGNAME:lowercase:g" -e "s:KEYFUNC:lc:" < > lowercase
Syntax error: redirection unexpected
*** Error code 2


  • Brian Lindholm
    Brian Lindholm

    Logged In: YES
    Originator: NO

    Sorry for the late reply. I don't get automatic e-mails on tracker events, and I didn't spot your case until today.

    Which version of make does FreeBSD 4.10 use? I've successfully compiled littleutils on Debian 3.1, Debian 4.0, Solaris 2.8, and Cygwin 1.3.x (on/W2K)... but only using GNU make (GNU make versions 3.79.1, 3.80, or 3.81, to be specific). I haven't tried a non-GNU make.

    Just based on the output of your compile, it appears that your make is not recognizing the automatic "$<" variable, which is used heavily in all the makefiles. Hmmm... This variable is listed as a "GNU make special feature" and is not always present in other makes.

  • Brian Lindholm
    Brian Lindholm

    • status: open --> closed-fixed
  • Brian Lindholm
    Brian Lindholm

    Logged In: YES
    Originator: NO

    Partial fix is now in place. littleutils-1.0.17 explicitly checks for GNU make and complains if it isn't found. I realize that this isn't a complete fix for BSD users who'd rather use their native make, but it at least eliminates the mystery behind the failure and point them to a work-around.