bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

archive member timestamps on solaris 2.8?


From: Derek M. Flynn
Subject: archive member timestamps on solaris 2.8?
Date: Wed, 20 Jun 2001 14:49:46 -0500

I am using GNU make 3.79.1 on Solaris 2.8.

The following makefile illustrates the problem I'm observing:

TARGET = libfoo.a
SRC    = foo.c
OBJ    = $(SRC:%.c=%.o)

all: $(TARGET)($(OBJ))

$(OBJ): $(SRC)

I'm trying to use the implicit rules to manage the archive, but
I'm finding that make always believes that the archive needs
to be updated.  So it copies the object file to the archive even
when the object file has not changed.

The relevant section of the debug output is:

...
       No implicit rule found for `foo.c'.
       Finished prerequisites of target file `foo.c'.
      No need to remake target `foo.c'.
      Pruning file `foo.c'.
     Finished prerequisites of target file `foo.o'.
     Prerequisite `foo.c' is older than target `foo.o'.
     Prerequisite `foo.c' is older than target `foo.o'.
    No need to remake target `foo.o'.
   Finished prerequisites of target file `libfoo.a(foo.o)'.
   Prerequisite `foo.o' is newer than target `libfoo.a(foo.o)'.
  Must remake target `libfoo.a(foo.o)'.
ar rv libfoo.a foo.o
r - foo.o

It does this every time make is run with the above makefile.

We are not running this over NFS (or anything that might cause
timestamps to be off).

Below are the uncommented preprocessor directives in my config.h:

#ifndef _ALL_SOURCE
#endif
#define GETLOADAVG_PRIVILEGED 1
#define HAVE_ALLOCA 1
#define HAVE_ALLOCA_H 1
#define HAVE_GETLOADAVG 1
#define HAVE_STRCOLL 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_VPRINTF 1
#define HAVE_WAIT3 1
#define RETSIGTYPE void
#define STDC_HEADERS 1
#define TIME_WITH_SYS_TIME 1
#define vfork fork
#define HAVE_LC_MESSAGES 1
#define LOCALEDIR "/usr/local/packages/make-3.79.1/share/locale"
#define SCCS_GET "get"
#define ST_MTIM_NSEC tv_nsec
#define HAVE_INTTYPES_H 1
#define HAVE_DUP2 1
#define HAVE_FDOPEN 1
#define HAVE_GETCWD 1
#define HAVE_GETGROUPS 1
#define HAVE_GETLOADAVG 1
#define HAVE_MEMCPY 1
#define HAVE_MEMMOVE 1
#define HAVE_MKSTEMP 1
#define HAVE_MKTEMP 1
#define HAVE_PIPE 1
#define HAVE_PSIGNAL 1
#define HAVE_SETEGID 1
#define HAVE_SETEUID 1
#define HAVE_SETLINEBUF 1
#define HAVE_SETLOCALE 1
#define HAVE_SETREGID 1
#define HAVE_SETREUID 1
#define HAVE_SIGACTION 1
#define HAVE_STRCHR 1
#define HAVE_STRDUP 1
#define HAVE_STRERROR 1
#define HAVE_STRSIGNAL 1
#define HAVE_WAIT3 1
#define HAVE_WAITPID 1
#define HAVE_DIRENT_H 1
#define HAVE_FCNTL_H 1
#define HAVE_LIMITS_H 1
#define HAVE_LOCALE_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TIMEB_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LIBKSTAT 1
#define PACKAGE "make"
#define VERSION "3.79.1"
#define ENABLE_NLS 1
#define HAVE_GETTEXT 1
#define HAVE_DCGETTEXT 1
#define HAVE_CLOCK_GETTIME 1
#define HAVE_GETTIMEOFDAY 1
#define MAKE_JOBSERVER 1
#define SCCS_GET_MINUS_G 1
#define MAKE_HOST "sparc-sun-solaris2.8"

Thank you for any advice you might have,

-Derek




reply via email to

[Prev in Thread] Current Thread [Next in Thread]