WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Error compiling  (Read 5247 times)

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Error compiling
« on: February 25, 2014, 10:50:04 AM »
Hi when i try to compile cgminer there is an error, can you help me.

Thanks in advance Luca

Code: [Select]
make[2]: Entering directory `/home/cgminer-3.12.3'
  CC       cgminer-cgminer.o
  CC       cgminer-util.o
  CC       cgminer-sha2.o
  CC       cgminer-api.o
  CC       cgminer-logging.o
  CC       cgminer-klist.o
  CC       cgminer-usbutils.o
  CC       cgminer-driver-avalon.o
  CC       cgminer-driver-hexminera.o
  CC       cgminer-driver-hexminerc.o
  CCLD     cgminer
compat/libusb-1.0/libusb/.libs/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_hotplug_event':
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:165: undefined reference to `udev_monitor_receive_device'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:171: undefined reference to `udev_device_get_action'
compat/libusb-1.0/libusb/.libs/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_device_info':
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:137: undefined reference to `udev_device_get_devnode'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:142: undefined reference to `udev_device_get_sysname'
compat/libusb-1.0/libusb/.libs/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_hotplug_event':
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:194: undefined reference to `udev_device_unref'
compat/libusb-1.0/libusb/.libs/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_start_event_monitor':
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:64: undefined reference to `udev_monitor_new_from_netlink'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:70: undefined reference to `udev_monitor_filter_add_match_subsystem_devtype'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:76: undefined reference to `udev_monitor_enable_receiving'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:81: undefined reference to `udev_monitor_get_fd'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:58: undefined reference to `udev_new'
compat/libusb-1.0/libusb/.libs/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_stop_event_monitor':
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:101: undefined reference to `udev_monitor_unref'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:106: undefined reference to `udev_unref'
compat/libusb-1.0/libusb/.libs/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:212: undefined reference to `udev_enumerate_new'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:218: undefined reference to `udev_enumerate_add_match_subsystem'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:219: undefined reference to `udev_enumerate_scan_devices'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:220: undefined reference to `udev_enumerate_get_list_entry'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:230: undefined reference to `udev_device_unref'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:222: undefined reference to `udev_list_entry_get_next'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:223: undefined reference to `udev_list_entry_get_name'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:226: undefined reference to `udev_device_new_from_syspath'
compat/libusb-1.0/libusb/.libs/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `udev_device_info':
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:137: undefined reference to `udev_device_get_devnode'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:142: undefined reference to `udev_device_get_sysname'
compat/libusb-1.0/libusb/.libs/libusb-1.0.a(libusb_1_0_la-linux_udev.o): In function `linux_udev_scan_devices':
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:235: undefined reference to `udev_device_unref'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:238: undefined reference to `udev_enumerate_unref'
/home/cgminer-3.12.3/compat/libusb-1.0/libusb/os/linux_udev.c:206: undefined reference to `udev_new'
collect2: error: ld returned 1 exit status
make[2]: *** [cgminer] Error 1
make[2]: Leaving directory `/home/cgminer-3.12.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cgminer-3.12.3'
make: *** [all] Error 2
tc@box:/home/cgminer-3.12.3$


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Error compiling
« Reply #1 on: February 25, 2014, 10:53:46 AM »
Is udev-dev.tcz installed?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Error compiling
« Reply #2 on: February 25, 2014, 11:05:40 AM »
Hi bmarkus, yes i have installed all udev packsges.

Thanks Luca

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Error compiling
« Reply #3 on: February 25, 2014, 11:13:47 AM »
And what about *usb* extensions?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Error compiling
« Reply #4 on: February 25, 2014, 11:23:45 AM »
Hi, i have installed all 4 usb packages also.

Thanks Luca

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14814
Re: Error compiling
« Reply #5 on: February 25, 2014, 11:28:22 AM »
It would be worth running the check for updates in the apps gui to see if you have the latest versions of libusb, udev-lib and the corresponding *-dev extensions - something seems amiss.

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Error compiling
« Reply #6 on: February 25, 2014, 02:36:02 PM »
Hi, i make a new usb key and reload all packages from one repository
 
libusb 1.0.17
libusb-dev 1.0.17
libusbcompat 0.1.5
libusbcompat-dev 0.1.5

udev-dev 173
udev-extra 173
udev-keymap 173
udev-lib 173

but the error is the same.

Thanks Luca

Offline wolf_core

  • Jr. Member
  • **
  • Posts: 69
Re: Error compiling
« Reply #7 on: February 25, 2014, 04:33:33 PM »
Ok solved, is necessary to compile with --with-system-libusb if on the system libusb is loaded.

Thanks Luca