We have the following problem with GNU make:
gmake -v
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.6
divia@sual05:~/public/testLib> uname -a
SunOS sual05 5.6 Generic_105181-16 sun4m sparc SUNW,SPARCstation-20
divia@sual05:~/public/testLib> cat main.c
int main( int argc, char **argv ) {
one();
two();
exit( 0 );
}
divia@sual05:~/public/testLib> cat one.c
void one() {
printf( "One\n" );
}
divia@sual05:~/public/testLib> cat two.c
void two() {
printf( "Two\n" );
}
divia@sual05:~/public/testLib> cat Makefile
main : main.o libTest.a
libTest.a : libTest.a(one.o) libTest.a(two.o)
divia@sual05:~/public/testLib> make
gcc -c -o main.o main.c
gcc -c -o one.o one.c
ar rv libTest.a one.o
a - one.o
ar: creating libTest.a
ar: writing libTest.a
make: *** Warning: File `libTest.a(two.o)' has modification time in the
future (2010-02-22 22:41:28.709551616 > 2000-05-05 16:32:27.3507115)
gcc main.o libTest.a -o main
Undefined first referenced
symbol in file
two main.o
ld: fatal: Symbol referencing errors. No output written to main
collect2: ld returned 1 exit status
make: *** [main] Error 1
The same files work OK on AIX...
In fact, we only have this pb on Solaris.
Best regards,
G. Cancio
------------------------------------------------------
Germ�n Cancio Meli� IT/PDP CERN CH-1211 Gen�ve 23
tel. +41 2276 72854 mail: [EMAIL PROTECTED]
------------------------------------------------------