Summary: | app-misc/lcd4linux-0.10.1_rc2-r2 - drv_LCD2USB.c:(.text+0x9f): undefined reference to `usb_debug' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dywi, gerhard.hintermayer, lcd, register, treecleaner |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/var/tmp/portage/app-misc/lcd4linux-0.10.1_rc2-r2/temp/build.log
fix compliation errors regarding discontinued usb_debug flag in latest usblib |
Description
Juergen Rose
2013-05-09 11:14:41 UTC
I recently ran into this issue. too. As a workaround, installing dev-libs/libusb:0 (thus unmerging dev-libs/libusb-compat) and then lcd4linux did the trick for me. If I deinstall libusbx, libusb-compat and virtual/libusb, the next 'emerge -pvuDN world' wants to reinstall them. How can I managed that emerge -pvuDN world' installs dev-libs/libusb-0.1.12-r7 and dev-libs/libusb-1.0.9 instead of libusbx, libusb-compat? I also encounter this problem. deinstalling libusb-compat will not work. it is reinstalled after rebuilding lcd4linux with use flag lcd_devices_lcd2usb emerge --info lcd4linux Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.2.12-gentoo-x86_64-AMD_E-350_Processor-with-gentoo-2.2 KiB Mem: 3649352 total, 577088 free KiB Swap: 0 total, 0 free Timestamp of tree: Fri, 09 Aug 2013 18:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.3-r1, 3.2.3 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.9.6-r3, 1.11.1, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.5.3-r2, 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r3 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= app-misc/lcd4linux-0.10.1_rc2-r2 was built with the following: USE="iconv (multilib) -mpd -mysql -python" LCD_DEVICES="cfontz hd44780 mtxorb ncurses -X -beckmannegle -bwct -cwlinux -ea232 -g15 -hd44780i2c -lcd2usb -lcdlinux -lcdterm -ledmatrix -lph7508 -luise -m50530 -milfordbpk -noritake -null -picolcd -png -ppm -routerboard -serdisplib -simplelcd -t6963 -trefon -usbhub -usblcd -wincor" -------------------------------------------------------------------------- nas package.use # emerge --pretend --verbose lcd4linux These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-misc/lcd4linux-0.10.1_rc2-r2 USE="iconv -mpd -mysql -python" LCD_DEVICES="cfontz hd44780 lcd2usb* mtxorb ncurses -X -beckmannegle -bwct -cwlinux -ea232 -g15 -hd44780i2c -lcdlinux -lcdterm -ledmatrix -lph7508 -luise -m50530 -milfordbpk -noritake -null -picolcd -png -ppm -routerboard -serdisplib -simplelcd -t6963 -trefon -usbhub -usblcd -wincor" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB -------------------------------------------------------------------------- nas package.use # emerge --verbose lcd4linux .... x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -Wall -W -fno-strict-aliasing -march=athlon64 -O2 -pipe -Wl,-O1 -Wl,--as-needed -o lcd4linux lcd4linux.o cfg.o debug.o drv.o drv_generic.o evaluator.o property.o hash.o layout.o pid.o timer.o thread.o udelay.o qprintf.o rgb.o widget.o widget_text.o widget_bar.o widget_icon.o widget_keypad.o widget_timer.o widget_gpo.o plugin.o plugin_cfg.o plugin_math.o plugin_string.o plugin_test.o plugin_time.o drv_Crystalfontz.o drv_Curses.o drv_HD44780.o drv_LCD2USB.o drv_MatrixOrbital.o drv_generic_text.o drv_generic_gpio.o drv_generic_parport.o drv_generic_serial.o drv_generic_i2c.o drv_generic_keypad.o plugin_apm.o plugin_cpuinfo.o plugin_diskstats.o plugin_dvb.o plugin_exec.o plugin_file.o plugin_i2c_sensors.o plugin_iconv.o plugin_imon.o plugin_isdn.o plugin_kvv.o plugin_loadavg.o plugin_meminfo.o plugin_netdev.o plugin_pop3.o plugin_ppp.o plugin_proc_stat.o plugin_sample.o plugin_seti.o plugin_statfs.o plugin_uname.o plugin_uptime.o plugin_wireless.o -lncurses -lusb -lm drv_LCD2USB.o: In function `drv_L2U_open': drv_LCD2USB.c:(.text+0x10f): undefined reference to `usb_debug' collect2: ld returned 1 exit status make[1]: *** [lcd4linux] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-misc/lcd4linux-0.10.1_rc2-r2/work/lcd4linux-0.10.1-RC2' make: *** [all] Error 2 * ERROR: app-misc/lcd4linux-0.10.1_rc2-r2 failed (compile phase): * emake failed * *** Bug 483300 has been marked as a duplicate of this bug. *** The package is broken with libusb-compat, and still needs the old libusb-0.1.12. CCing treecleaners for package removal because there is no maintainer, and no fix in sight. (In reply to Samuli Suominen from comment #5) > The package is broken with libusb-compat, and still needs the old > libusb-0.1.12. > CCing treecleaners for package removal because there is no maintainer, and > no fix in sight. The fix is to remove all invocations of usb_debug, this worked for me. removing lcd4linux from portage would be a pity. I could provide a patch for that ... then the logging would be gone? well, if it really takes that to get this fixed, please do provide such patch no other distro has patch for this ready? need to check all them. maybe it's even in some mailing list etc. (In reply to Samuli Suominen from comment #7) > then the logging would be gone? well, if it really takes that to get this > fixed, please do provide such patch > no other distro has patch for this ready? need to check all them. maybe it's > even in some mailing list etc. usb_debug was bound to 0 in the code anyhow. (driver BWCT,LCD2USB,picLCD,Trefon,USBLCD) I assume 0 means no logging at all. So we're not loosing any info ;-) (In reply to Gerhard Hintermayer from comment #6) > (In reply to Samuli Suominen from comment #5) > > The package is broken with libusb-compat, and still needs the old > > libusb-0.1.12. > > CCing treecleaners for package removal because there is no maintainer, and > > no fix in sight. > > The fix is to remove all invocations of usb_debug, this worked for me. > removing lcd4linux from portage would be a pity. I could provide a patch for > that ... I would like to have this patch. Sorry about the delay. Hope to find some time to sumbit the patch this week. Created attachment 363024 [details, diff]
fix compliation errors regarding discontinued usb_debug flag in latest usblib
sorry for the delay. here you are. hope I got the diff right ;-)
just removed all occurences of usb_debug from all drivers (I'm just using USB2LCD, and driver works with no problems after usb_debug removal, assume the same behaviour for all the other drivers)
(In reply to Gerhard Hintermayer from comment #11) > Created attachment 363024 [details, diff] [details, diff] > fix compliation errors regarding discontinued usb_debug flag in latest usblib > > sorry for the delay. here you are. hope I got the diff right ;-) > just removed all occurences of usb_debug from all drivers (I'm just using > USB2LCD, and driver works with no problems after usb_debug removal, assume > the same behaviour for all the other drivers) Thanks, the patch worked for me. +*lcd4linux-0.10.1_rc2-r3 (30 Dec 2013) + + 30 Dec 2013; Pacho Ramos <pacho@gentoo.org> + +files/lcd4linux-0.10.1_rc2-usbdebug.patch, +lcd4linux-0.10.1_rc2-r3.ebuild: + Drop usb_debug calls, bug #469156 by Juergen Rose and patch by Gerhard + Hintermayer + |