Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17185 closed defect (fixed)

libusb 0.1.12 fails to compile universal port

Reported by: illogic-al@… Owned by: rwilcox (Ryan Wilcox)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: universal build Cc:
Port: libusb 0.1.12

Description (last modified by illogic-al@…)

I have +universal in my variants.conf file.

$ sudo port install libusb 
--->  Fetching libusb
--->  Verifying checksum(s) for libusb
--->  Extracting libusb
--->  Applying patches to libusb
--->  Configuring libusb
--->  Building libusb with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_libusb/work/libusb-0.1.12" && make all " returned error 2
Command output: (cd .libs && rm -f libusbpp.la && ln -s ../libusbpp.la libusbpp.la)
Making all in tests
ccache /usr/bin/gcc-4.0 -DHAVE_CONFIG_H   -I.. -I..  -I/opt/local/include  -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc -Wall -c -o testlibusb.o testlibusb.c
/bin/sh ../libtool --mode=link ccache /usr/bin/gcc-4.0  -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc -Wall  -L/opt/local/lib -arch i386 -arch ppc -o testlibusb  testlibusb.o ../libusb.la -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind
mkdir .libs
ccache /usr/bin/gcc-4.0 -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386 -arch ppc -Wall -arch i386 -arch ppc -o .libs/testlibusb testlibusb.o -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind  -L/opt/local/lib ../.libs/libusb.dylib
ld warning: in ../.libs/libusb.dylib, file is not of required architecture
Undefined symbols for architecture ppc:
  "_usb_close", referenced from:
      _print_device in testlibusb.o
  "_usb_find_devices", referenced from:
      _main in testlibusb.o
  "_usb_busses", referenced from:
      _usb_busses$non_lazy_ptr in testlibusb.o
  "_usb_init", referenced from:
      _main in testlibusb.o
  "_usb_open", referenced from:
      _print_device in testlibusb.o
  "_usb_get_string_simple", referenced from:
      _print_device in testlibusb.o
      _print_device in testlibusb.o
      _print_device in testlibusb.o
  "_usb_find_busses", referenced from:
      _main in testlibusb.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccKSaqxT.out (No such file or directory)
make[2]: *** [testlibusb] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Attachments (1)

Portfile-libusb_universal.diff (455 bytes) - added by illogic-al@… 16 years ago.
Patch makes libusb Portfile work with +universal variant

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by illogic-al@…

Patch makes libusb Portfile work with +universal variant

comment:1 Changed 16 years ago by illogic-al@…

Owner: changed from macports-tickets@… to rwilcox@…

comment:2 Changed 16 years ago by illogic-al@…

Description: modified (diff)

comment:3 Changed 16 years ago by illogic-al@…

Resolution: fixed
Status: newclosed

Fixed in r42112.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.