Fail to build the latest ceph tree on Fedora 17
Hi, everyone.
I was tring to build the latest ceph tree on my fedora 17 box. However, there is an error message when linking radosgw as following:
CXXLD radosgw
/usr/bin/ld: radosgw-rgw_resolve.o: undefined reference to symbol '__res_nquery@@GLIBC_2.2.5'
/usr/bin/ld: note: '__res_nquery@@GLIBC_2.2.5' is defined in DSO /lib64/libresolv.so.2 so try adding it to the linker command line /lib64/libresolv.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [radosgw] Error 1
make[3]: Leaving directory `/home/cbz/src/ceph/src' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cbz/src/ceph/src' make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/cbz/src/ceph/src'
make: *** [all-recursive] Error 1
I've also tried build the version 0.53 which is checked out from fedora's pkg repo. And it can pass the building process without this error.
Any suggestion?
Yours,
Chen Baozi
Quoted 20 lines · Chen Baozi
Hi, everyone.
I was tring to build the latest ceph tree on my fedora 17 box. However, there is an error message when linking radosgw as following:
CXXLD radosgw
/usr/bin/ld: radosgw-rgw_resolve.o: undefined reference to symbol '__res_nquery@@GLIBC_2.2.5'
/usr/bin/ld: note: '__res_nquery@@GLIBC_2.2.5' is defined in DSO/lib64/libresolv.so.2so try adding it to the linker command line/lib64/libresolv.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [radosgw] Error 1
make[3]: Leaving directory `/home/cbz/src/ceph/src' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cbz/src/ceph/src' make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/cbz/src/ceph/src'
make: *** [all-recursive] Error 1
Quoted 5 lines
I've also tried build the version 0.53 which is checked out from fedora's pkg repo. And it can pass the building process without this error.
Any suggestion?
Linking with libresolv failed. Garry, any idea?
Yehuda
Quoted 21 lines · Yehuda Sadeh
Quoted 20 lines · Chen Baozi
Hi, everyone.
I was tring to build the latest ceph tree on my fedora 17 box. However, there is an error message when linking radosgw as following:
CXXLD radosgw
/usr/bin/ld: radosgw-rgw_resolve.o: undefined reference to symbol '__res_nquery@@GLIBC_2.2.5'
/usr/bin/ld: note: '__res_nquery@@GLIBC_2.2.5' is defined in DSO/lib64/libresolv.so.2so try adding it to the linker command line/lib64/libresolv.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[3]: *** [radosgw] Error 1
make[3]: Leaving directory `/home/cbz/src/ceph/src' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/cbz/src/ceph/src' make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/cbz/src/ceph/src'
make: *** [all-recursive] Error 1
Quoted 7 lines
Quoted 5 lines
I've also tried build the version 0.53 which is checked out from fedora's pkg repo. And it can pass the building process without this error.
Any suggestion?
Linking with libresolv failed. Garry, any idea?
I've tried to add "LIBS=-lresolv" when doing "./configure". And it works. I'm trying to fix it from the configure.ac now.
Quoted 2 lines
Yehuda