[Gems-users] Help!I met a problem about compile ruby


Date: Wed, 18 Jun 2008 19:34:08 +0800 (CST)
From: llccdd1985 <llccdd1985@xxxxxxx>
Subject: [Gems-users] Help!I met a problem about compile ruby
 
 Hi,all
   I use gems2.1 and simics 3.0.31,when I compile the ruby module with gcc4.2,I met a problem,the error is as below:
 
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::close()':
../common/gzstream/gzstream.C:72: undefined reference to `gzclose'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::open(char const*, int)':
../common/gzstream/gzstream.C:61: undefined reference to `gzopen'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::underflow()':
../common/gzstream/gzstream.C:90: undefined reference to `gzread'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::flush_buffer()':
../common/gzstream/gzstream.C:107: undefined reference to `gzwrite'
./common/gzstream/gzstream.C:107: undefined reference to `gzwrite'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::open(char const*, int)':
../common/gzstream/gzstream.C:61: undefined reference to `gzopen'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::close()':
../common/gzstream/gzstream.C:72: undefined reference to `gzclose'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::open(char const*, int)':
../common/gzstream/gzstream.C:61: undefined reference to `gzopen'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::close()':
../common/gzstream/gzstream.C:72: undefined reference to `gzclose'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::open(char const*, int)':
../common/gzstream/gzstream.C:61: undefined reference to `gzopen'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o: In function `gzstreambuf::close()':
../common/gzstream/gzstream.C:72: undefined reference to `gzclose'
../common/gzstream/gzstream.C:72: undefined reference to `gzclose'
../common/gzstream/gzstream.C:72: undefined reference to `gzclose'
../common/gzstream/gzstream.C:72: undefined reference to `gzclose'
../common/gzstream/gzstream.C:72: undefined reference to `gzclose'
x86-linux/generated/MOESI_CMP_token/obj/gzstream.o:../common/gzstream/gzstream.C:72: more undefined references to `gzclose' follow
collect2: ld returned 1 exit status
make[1]: *** [x86-linux/generated/MOESI_CMP_token/bin/tester.exec] Error 1
make[1]: Leaving directory `/root/gems-2.1/ruby'
make: *** [all] Error 2
 
I also find the solution in the userlist,I also add LDFLAGS+= -L /usr/lib,I also get the  same  problem,the interesting is that I compile the opal with gcc3.4 successfully,so I think I make a  right configuration ,How I solve the problem,thanks



两两来Win为中国
[← Prev in Thread] Current Thread [Next in Thread→]
  • [Gems-users] Help!I met a problem about compile ruby, llccdd1985 <=