Bug 135344 - build error in app-mobilephone/obexftp-0.21
|
Bug#:
135344
|
Product: Gentoo Linux
|
Version: 2005.1
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: mrness@gentoo.org
|
Reported By: Simon80@gmail.com
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: build error in app-mobilephone/obexftp-0.21
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-06-02 21:31 0000
|
The build error is attached, the comment was too long.
# emerge --info
Portage 2.0.54-r2 (default-linux/x86/2005.1, gcc-4.1.1, glibc-2.3.6-r3,
2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Mobile AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python: 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.3
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -ggdb -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.datapipe.net/gentoo
http://gentoo.chem.wisc.edu/gentoo/ http://distfiles.gentoo.org/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_CA.utf8"
LC_ALL="en_CA.utf8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/overlay"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X X509 Xaw3d a52 aac aalib acpi alsa apache2 arts asf
asm audiofile avahi avi bash-completion berkdb bitmap-fonts bl bootsplash
branding bzip2 cairo cddb cdparanoia cdr chroot cjk cli cpudetection crypt
cscope ctype cups curl curlwrappers dbus dhcp doc dri dts dv dvd dvdr dvdread
dvi edl eds emboss encode esd exif expat fam fat fbcon ffmpeg firefox flac
foomaticdb fortran ftp gd gdbm gif gimp gimpprint glitz glut gmp gnome gnutls
gpm gs gstreamer gtk gtk2 gtkhtml hal hfs hpn iconv idn ieee1394 imagemagick
imlib ipod ipv6 isdnlog java javascript jfs joystick jpeg jpeg2k kde
kdeenablefinal lcms ldap libcaca libg++ libwww lirc live logitech-mouse
logrotate lua lzo mad matroska md5sum memlimit mikmod mjpeg mmap mmx mmxext mng
motif mp3 mpeg mplayer multicall musicbrainz mysql nas nautilus ncurses network
new-login nfs nls nntp no-htdocs nptl nptlonly nsplugin ntfs offensive ogg
oggvorbis on-the-fly-crypt openal opengl oss pam pcmcia pcre pda pdf pdflib
perl php png povray ppds pppd python qt quicktime rdesktop readline real
reflection reiser4 reiserfs rtc ruby samba sasl scanner sdl session simplexml
slp soap sockets speex spell spl sqlite sse sse2 ssl startup-notification
subtitles svg svga syslog t1lib tcpd tetex tga theora threads tiff tokenizer
truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd
vidix vim-with-x vorbis vv wifi win32codecs wmf xanim xcomposite xfs xine
xinerama xml2 xorg xpm xprint xrandr xscreensaver xv xvid xvmc zeroconf zlib
video_cards_ati video_cards_fglrx input_devices_evdev input_devices_joystick
input_devices_keyboard input_devices_mouse input_devices_synaptics userland_GNU
kernel_linux elibc_glibc"
Unset: CTARGET, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
hmm... do you have net-wireless/bluez-libs despite the fact that bluetooth USE
flag is disabled?
Similar problem here. Compilation terminates with the following error:
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../includes
-march=pentium-m -O2 -pipe -fomit-frame-pointer -W -Wundef
-Wmissing-declarations -Wmissing-prototypes -Wall -MT discovery.o -MD -MP -MF
".deps/discovery.Tpo" \
-c -o discovery.o `test -f 'discovery.c' || echo './'`discovery.c; \
then mv -f ".deps/discovery.Tpo" ".deps/discovery.Po"; \
else rm -f ".deps/discovery.Tpo"; exit 1; \
fi
obexftp_sdp.c:37:33: bluetooth/bluetooth.h: No such file or directory
obexftp_sdp.c:38:27: bluetooth/sdp.h: No such file or directory
obexftp_sdp.c:39:31: bluetooth/sdp_lib.h: No such file or directory
Switching on the "bluetooth" USE flag does not help either.
# emerge --info
Portage 2.1_rc3-r5 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r3,
2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.0
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
dev-lang/python: 2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/fax /usr/lib/mozilla/defaults/pref
/usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://a1igentoo.kph.uni-mainz.de/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://gentoo.osuosl.org
http://gentoo.inode.at"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/a1 /usr/local/overlays/ulm"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aalib acpi alsa amr asf avi berkdb bitmap-fonts bzip2 cairo
cdparanoia cdr cli clisp crypt directfb dri dvd eds emacs emacs-w3 emboss
encode exif expat fam fbcon ffmpeg foomaticdb fortran gcj gdbm gif glut gnome
gstreamer gtk gtk2 gtkhtml idea ieee1394 imap imlib ipv6 irda isdnlog java jpeg
libcaca libg++ libwww logrotate mad mikmod mmx mng motif mozilla mp3 mpeg
ncurses nls nocd nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss
pcmcia pcre pdflib perl png postgres pppd python qt quicktime readline recode
reflection sdl session skey sox spell spl sse sse2 ssl tcpd tetex tiff truetype
truetype-fonts type1-fonts userlocales vorbis wifi win32codecs wxwindows xml2
xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse
input_devices_synaptics kernel_linux userland_GNU video_cards_i810
video_cards_vga"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #3)
> Switching on the "bluetooth" USE flag does not help either.
How could that be possible? When you switch bluetooth USE flag on, it will
install bluez-libs before merging the obexfs.
bluez-libs install those bluetooth/*.h header files, which means it cannot
possibly fail with "bluetooth/bluetooth.h: No such file or directory" kind of
error.
Fixed in cvs without revision bumping. It should hit our portage mirrors in
about an hour.
I've patched the sources to properly detect SDP support (meaning disable SDP
support when bluetooth USE flag is switched off). Also, now obexftp_sdp.c is
compilable even if HAVE_SDPLIB is unset.
(In reply to comment #4)
> > Switching on the "bluetooth" USE flag does not help either.
>
> How could that be possible? When you switch bluetooth USE flag on, it will
> install bluez-libs before merging the obexfs.
Sorry, I should habe been more specific. Indeed it installs bluez-libs, but
then the emerge of obexftp will fail with undefined references:
i686-pc-linux-gnu-gcc -march=pentium-m -O2 -pipe -fomit-frame-pointer -W
-Wundef -Wmissing-declarations -Wmissing-prototypes -Wall -o .libs/obexftp
obexftp.o bt_discovery.o ../obexftp/.libs/libobexftp.so
../multicobex/.libs/libmulticobex.so ../bfb/.libs/libbfb.so
/usr/lib/libopenobex.so -L/usr/lib /usr/lib/libusb.so
i686-pc-linux-gnu-gcc -march=pentium-m -O2 -pipe -fomit-frame-pointer -W
-Wundef -Wmissing-declarations -Wmissing-prototypes -Wall -o .libs/obexftpd
obexftpd.o obexftp_sdp.o ../obexftp/.libs/libobexftp.so
../multicobex/.libs/libmulticobex.so ../bfb/.libs/libbfb.so
/usr/lib/libopenobex.so -L/usr/lib /usr/lib/libusb.so
bt_discovery.o: In function `discover_bt':
bt_discovery.c:(.text+0x91): undefined reference to `hci_inquiry'
bt_discovery.c:(.text+0xa7): undefined reference to `hci_open_dev'
bt_discovery.c:(.text+0x111): undefined reference to `hci_read_remote_name'
bt_discovery.c:(.text+0x156): undefined reference to `baswap'
bt_discovery.c:(.text+0x1a6): undefined reference to `batostr'
bt_discovery.c:(.text+0x1f8): undefined reference to `hci_devinfo'
bt_discovery.c:(.text+0x220): undefined reference to `sdp_connect'
bt_discovery.c:(.text+0x23d): undefined reference to `baswap'
bt_discovery.c:(.text+0x249): undefined reference to `batostr'
bt_discovery.c:(.text+0x27d): undefined reference to `sdp_uuid16_create'
bt_discovery.c:(.text+0x291): undefined reference to `sdp_list_append'
bt_discovery.c:(.text+0x2a3): undefined reference to `sdp_list_append'
bt_discovery.c:(.text+0x2c6): undefined reference to
`sdp_service_search_attr_req'
bt_discovery.c:(.text+0x2dc): undefined reference to `sdp_list_free'
bt_discovery.c:(.text+0x2ea): undefined reference to `sdp_list_free'
bt_discovery.c:(.text+0x317): undefined reference to `sdp_get_access_protos'
bt_discovery.c:(.text+0x330): undefined reference to `sdp_get_proto_port'
bt_discovery.c:(.text+0x36e): undefined reference to `sdp_list_free'
bt_discovery.c:(.text+0x376): undefined reference to `sdp_close'
bt_discovery.c:(.text+0x392): undefined reference to `batostr'
bt_discovery.c:(.text+0x3cf): undefined reference to `str2ba'
bt_discovery.c:(.text+0x409): undefined reference to `sdp_close'
collect2: ld returned 1 exit status
(In reply to comment #6)
> Sorry, I should habe been more specific. Indeed it installs bluez-libs, but
> then the emerge of obexftp will fail with undefined references:
>
> ...
> bt_discovery.c:(.text+0x91): undefined reference to `hci_inquiry'
> ...
That's because you didn't run "emerge -uDN world" after enabling bluetooth USE
flag. In particular, dev-libs/openobex need to be re-emerged whenever bluetooth
flag changes.
*** Bug 174525 has been marked as a duplicate of this bug. ***