Conference Room SAD
[thread display] [new arrival display] [word search] [past log] [管理用]

Subject Re^4: SAD compilatin error
Date: 2011/01/04(Tue) 16:58:29
ContributorZhe Duan < >

Thanks for your reply. I made a mistake in the "sad.conf" because I did not set "CC gcc44", which means gcc 4.1.2 was used to compile SAD. After this correction, gcc 4.4.0 was used, however, new errors appeared as below. As you suggested, I tried changing in the oldsad/mk/sad.libtai.mk
echo "$(CC) -I. $(SYS_COPT) $(COPT)" >conf-cc;
echo "$(CC) $(SYS_COPT) $(COPT)" >conf-ld;

to

echo "$(CC) -I. $(COPT)" >conf-cc;
echo "$(CC) $(COPT)" >conf-ld;

but the same error info was always there. I wonder if I understood your suggestion.

Thanks very much!

*********************************************
[root@duanz oldsad]# make all
make[1]: Entering directory `/usr/src/oldsad'
make[2]: Entering directory `/usr/src/oldsad/obj/i386-Linux2'
[ -d /usr/src/oldsad/src/gdtoa ] || mkdir -p /usr/src/oldsad/src/gdtoa
(cd /usr/src/oldsad/src/gdtoa; /usr/src/oldsad/bin/lndir /usr/src/oldsad/contrib/gdtoa)
/usr/src/oldsad/contrib/gdtoa/test:
/usr/src/oldsad/contrib/gdtoa/test/obad:
(cd /usr/src/oldsad/obj/i386-Linux2/libtai-0.60; make it && touch /usr/src/oldsad/obj/i386-Linux2/libtai-0.60/.build_done)
make[3]: Entering directory `/usr/src/oldsad/obj/i386-Linux2/libtai-0.60'
./compile leapsecs_read.c
leapsecs_read.c: In function ‘leapsecs_read’:
leapsecs_read.c:24: error: implicit declaration of function ‘free’
leapsecs_read.c:24: warning: incompatible implicit declaration of built-in function ‘free’
leapsecs_read.c:30: error: implicit declaration of function ‘close’
leapsecs_read.c:32: error: implicit declaration of function ‘malloc’
leapsecs_read.c:32: warning: incompatible implicit declaration of built-in function ‘malloc’
leapsecs_read.c:35: error: implicit declaration of function ‘read’
leapsecs_read.c:37: warning: incompatible implicit declaration of built-in function ‘free’
leapsecs_read.c:46: warning: incompatible implicit declaration of built-in function ‘free’
make[3]: *** [leapsecs_read.o] Error 1
make[3]: Leaving directory `/usr/src/oldsad/obj/i386-Linux2/libtai-0.60'
make[2]: *** [/usr/src/oldsad/obj/i386-Linux2/libtai-0.60/.build_done] Error 2
make[2]: Leaving directory `/usr/src/oldsad/obj/i386-Linux2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/oldsad'
make: *** [all] Error 2
********************************************


- 関連一覧ツリー (Click ▼ to display all articles in a thread.)