On Wed, Mar 19, 2008 at 07:39:58PM +0000, Tomasz Mateja wrote: > wywala sie na linkowaniu: > sparc64-pld-linux-gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv > -mcpu=ultrasparc -gdwarf-2 -g2 -DSYSLOG_SUCCESS -DSYSLOG_FAILURE > -DSYSLOG_NON_ROOT -Wl,--as-needed -Wl,--as-needed -o tac tac.o > ../lib/libcoreutils.a ../lib/libcoreutils.a > ../lib/libcoreutils.a(gethrxtime.o): In function `gethrxtime': > /home/users/builder/rpm/BUILD/coreutils-6.10/lib/gethrxtime.c:46: > undefined reference to `clock_gettime' > ../lib/libcoreutils.a(gettime.o): In function `gettime': > /home/users/builder/rpm/BUILD/coreutils-6.10/lib/gettime.c:36: undefined > reference to `clock_gettime' > collect2: ld returned 1 exit status > > w time.h jest zadeklarowane moze cos nie tak z glibcem.
clock_gettime() jest w -lrt, ale zagadka jest gdzie indziej: dlaczego tac odwołuje się do funkcji z gettime.o czy gethrxtime.o. W Makefile* -lrt jest używane tylko w programach wymagających funkcji z tych plików. tac nie robi niczego z czasem. -- Jakub Bogusz http://qboosh.pl/ _______________________________________________ pld-devel-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
