Summary: | app-mobilephone/obexftp-0.22 does not build with gcc 4.3.2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ed Tomlinson <edt> |
Component: | Current packages | Assignee: | Alin Năstac (RETIRED) <mrness> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mobile-phone |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 198121 |
Description
Ed Tomlinson
2008-10-29 11:55:56 UTC
Do you know if this package built for you with gcc 4.1, or are you assuming that the gcc 4.3 is likely to be the problem? I ask because there have been problems with parallel builds of obexftp, and it's possible this is more of the same -- could you try building with -j1 instead of -j4 and see if it changes anything? I have tried with -j1. This is did not help with this package (others were fixed). The package built when I flipped to 4.1 - I did not try a build with 4.1 before switching to 4.3. Ok thanks for the clarification -- assigning to the ebuild maintainers now. Works for me. Please attach here your /var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby/mkmf.log file. (In reply to comment #4) > Works for me. > Please attach here your > /var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/swig/ruby/mkmf.log > file. > Here is the log (for some reason attach kept finding an empty file so I inlined it)... ---------- have_library: checking for OBEX_Init() in -lopenobex... -------------------- yes "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lruby18-static -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âOBEX_Initâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))OBEX_Init; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lruby18-static -lopenobex -lpthread -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { OBEX_Init(); return 0; } /* end */ -------------------- find_library: checking for bfb_io_open() in -lbfb... -------------------- yes "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lopenobex -lruby18-static -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âbfb_io_openâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))bfb_io_open; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lopenobex -lruby18-static -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { bfb_io_open(); return 0; } /* end */ -------------------- find_library: checking for cobex_ctrans() in -lmulticobex... -------------------- yes "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lbfb -lopenobex -lruby18-static -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âcobex_ctransâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))cobex_ctrans; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lbfb -lopenobex -lruby18-static -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libbluetooth.so.1, needed by /usr/lib64/libmulticobex.so, not found (try using -rpath or -rpath-link) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { cobex_ctrans(); return 0; } /* end */ -------------------- find_library: checking for obexftp_open() in -lobexftp... -------------------- no "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lmulticobex -lbfb -lopenobex -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âobexftp_openâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))obexftp_open; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lmulticobex -lbfb -lopenobex -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libbluetooth.so.1, needed by /usr/lib64/libmulticobex.so, not found (try using -rpath or -rpath-link) /usr/lib64/libobexftp.so: undefined reference to `sdp_record_alloc' /usr/lib64/libobexftp.so: undefined reference to `hci_close_dev' /usr/lib64/libobexftp.so: undefined reference to `hci_devba' /usr/lib64/libobexftp.so: undefined reference to `sdp_record_unregister' /usr/lib64/libobexftp.so: undefined reference to `sdp_data_free' /usr/lib64/libobexftp.so: undefined reference to `sdp_list_free' /usr/lib64/libobexftp.so: undefined reference to `batostr' /usr/lib64/libobexftp.so: undefined reference to `hci_inquiry' /usr/lib64/libobexftp.so: undefined reference to `sdp_service_search_attr_req' /usr/lib64/libobexftp.so: undefined reference to `hci_get_route' /usr/lib64/libobexftp.so: undefined reference to `sdp_connect' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_profile_descs' /usr/lib64/libobexftp.so: undefined reference to `hci_read_remote_name' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_uuidseq_attr' /usr/lib64/libobexftp.so: undefined reference to `sdp_list_append' /usr/lib64/libobexftp.so: undefined reference to `sdp_data_alloc' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_info_attr' /usr/lib64/libobexftp.so: undefined reference to `sdp_get_access_protos' /usr/lib64/libobexftp.so: undefined reference to `sdp_get_proto_port' /usr/lib64/libobexftp.so: undefined reference to `sdp_uuid128_create' /usr/lib64/libobexftp.so: undefined reference to `sdp_record_free' /usr/lib64/libobexftp.so: undefined reference to `sdp_device_record_register' /usr/lib64/libobexftp.so: undefined reference to `sdp_uuid16_create' /usr/lib64/libobexftp.so: undefined reference to `str2ba' /usr/lib64/libobexftp.so: undefined reference to `sdp_close' /usr/lib64/libobexftp.so: undefined reference to `baswap' /usr/lib64/libobexftp.so: undefined reference to `hci_devid' /usr/lib64/libobexftp.so: undefined reference to `hci_open_dev' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_access_protos' collect2: ld returned 1 exit status checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { obexftp_open(); return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../obexftp/.libs -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lmulticobex -lbfb -lopenobex -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" conftest.c: In function âtâ: conftest.c:3: error: âobexftp_openâ undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))obexftp_open; return 0; } /* end */ "x86_64-pc-linux-gnu-gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -I../.. -march=amdfam10 -O -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L../../obexftp/.libs -L. -Wl,-O1 -rdynamic -Wl,-export-dynamic -lmulticobex -lbfb -lopenobex -lruby18-static -lobexftp -lmulticobex -lbfb -lopenobex -lpthread -ldl -lcrypt -lm -lc" /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libbluetooth.so.1, needed by /usr/lib64/libmulticobex.so, not found (try using -rpath or -rpath-link) /usr/lib64/libobexftp.so: undefined reference to `sdp_record_alloc' /usr/lib64/libobexftp.so: undefined reference to `hci_close_dev' /usr/lib64/libobexftp.so: undefined reference to `hci_devba' /usr/lib64/libobexftp.so: undefined reference to `sdp_record_unregister' /usr/lib64/libobexftp.so: undefined reference to `sdp_data_free' /usr/lib64/libobexftp.so: undefined reference to `sdp_list_free' /usr/lib64/libobexftp.so: undefined reference to `batostr' /usr/lib64/libobexftp.so: undefined reference to `hci_inquiry' /usr/lib64/libobexftp.so: undefined reference to `sdp_service_search_attr_req' /usr/lib64/libobexftp.so: undefined reference to `hci_get_route' /usr/lib64/libobexftp.so: undefined reference to `sdp_connect' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_profile_descs' /usr/lib64/libobexftp.so: undefined reference to `hci_read_remote_name' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_uuidseq_attr' /usr/lib64/libobexftp.so: undefined reference to `sdp_list_append' /usr/lib64/libobexftp.so: undefined reference to `sdp_data_alloc' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_info_attr' /usr/lib64/libobexftp.so: undefined reference to `sdp_get_access_protos' /usr/lib64/libobexftp.so: undefined reference to `sdp_get_proto_port' /usr/lib64/libobexftp.so: undefined reference to `sdp_uuid128_create' /usr/lib64/libobexftp.so: undefined reference to `sdp_record_free' /usr/lib64/libobexftp.so: undefined reference to `sdp_device_record_register' /usr/lib64/libobexftp.so: undefined reference to `sdp_uuid16_create' /usr/lib64/libobexftp.so: undefined reference to `str2ba' /usr/lib64/libobexftp.so: undefined reference to `sdp_close' /usr/lib64/libobexftp.so: undefined reference to `baswap' /usr/lib64/libobexftp.so: undefined reference to `hci_devid' /usr/lib64/libobexftp.so: undefined reference to `hci_open_dev' /usr/lib64/libobexftp.so: undefined reference to `sdp_set_access_protos' collect2: ld returned 1 exit status checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { obexftp_open(); return 0; } /* end */ -------------------- You need to run revdep-build because libmulticobex.so was linked with libbluetooth.so.1 and now this file is no longer present on your system. Closed as INVALID. This is being triggered by revdep-rebuild - its what is trying to rebuild obexftp... Where should this problem be transfered and/or can you suggest manual order to rebuild the packages since revdev-rebuild is failing. grover ~ # equery b libmulticobex.so [ Searching for file(s) libmulticobex.so in *... ] app-mobilephone/obexftp-0.22 (/usr/lib64/libmulticobex.so -> libmulticobex.so.1.0.1) so obexftp is building libmultcobex.so grover ~ # equery b libbluetooth.so.1 [ Searching for file(s) libbluetooth.so.1 in *... ] grover ~ # equery b libbluetooth.so.2 [ Searching for file(s) libbluetooth.so.2 in *... ] net-wireless/bluez-libs-3.36 (/usr/lib64/libbluetooth.so.2 -> libbluetooth.so.2.11.2) and bluez-libs is creating libbluetooth.so.2 not 1... I am not at all clear what is actually happening here. I would think that obexftp should be using libbluetooth.so.2 not .1 ? TIA An interesting point. If I do: mv /usr/lib64/libmulticobex.a /usr/lib64/libmulticobex.a.x mv /usr/lib64/libmulticobex.so /usr/lib64/libmulticobex.so.x and emerge obexftp again it works. Should the ebuild be cleaning these files before starting? Try to add these to your LDFLAGS var in /etc/make.conf and see if it fixes the issue: LDFLAGS="-Wl,-rpath-link,/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/obexftp/.libs -Wl,-rpath-link,/var/tmp/portage/app-mobilephone/obexftp-0.22/work/obexftp-0.22/multicobex/.libs" A shorter way: LDFLAGS="-Wl,-rpath-link,../../obexftp/.libs -Wl,-rpath-link,../../multicobex/.libs" Fixed in cvs without revision bump. |