#18884 closed defect (fixed)
gnupg2 2.0.11 fails to compile
Reported by: | ex_adres@… | Owned by: | waqar@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | gnupg2 fail ccid-driver | Cc: | boeyms@…, blb@… |
Port: | gnupg2 |
Description (last modified by blb@…)
Whenever i try to upgrade gnupg2 it fails with the following error:
---> Building gnupg2 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_gnupg2/work/gnupg-2.0.11" && make all " returned error 2 Command output: ccid-driver.c:2645: error: dereferencing pointer to incomplete type ccid-driver.c:2662: error: dereferencing pointer to incomplete type ccid-driver.c:2666: error: dereferencing pointer to incomplete type ccid-driver.c:2671: error: dereferencing pointer to incomplete type ccid-driver.c:2672: error: dereferencing pointer to incomplete type ccid-driver.c:2683: error: dereferencing pointer to incomplete type ccid-driver.c:2710: error: dereferencing pointer to incomplete type ccid-driver.c:2711: error: dereferencing pointer to incomplete type ccid-driver.c:2731: error: dereferencing pointer to incomplete type ccid-driver.c:2741: error: dereferencing pointer to incomplete type ccid-driver.c:2761: error: dereferencing pointer to incomplete type ccid-driver.c: In function 'ccid_transceive_secure': ccid-driver.c:2817: error: dereferencing pointer to incomplete type ccid-driver.c:2819: error: dereferencing pointer to incomplete type ccid-driver.c:2843: error: dereferencing pointer to incomplete type ccid-driver.c:2866: error: dereferencing pointer to incomplete type ccid-driver.c:2877: error: dereferencing pointer to incomplete type ccid-driver.c:2884: error: dereferencing pointer to incomplete type ccid-driver.c:2913: error: dereferencing pointer to incomplete type ccid-driver.c:2914: error: dereferencing pointer to incomplete type ccid-driver.c:2940: error: dereferencing pointer to incomplete type ccid-driver.c:2960: error: dereferencing pointer to incomplete type ccid-driver.c:2960: error: dereferencing pointer to incomplete type ccid-driver.c:2974: error: dereferencing pointer to incomplete type ccid-driver.c:2976: error: dereferencing pointer to incomplete type ccid-driver.c:2982: error: dereferencing pointer to incomplete type ccid-driver.c:3016: error: dereferencing pointer to incomplete type make[2]: *** [ccid-driver.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Unable to upgrade port: 1
Attachments (2)
Change History (9)
comment:1 Changed 16 years ago by blb@…
Cc: | boeyms@… blb@… added |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to waqar@… |
comment:2 Changed 16 years ago by ex_adres@…
I have uninstalled gnupg2 2.0.10, installing 2.0.11 from scratch results in the same errors. Maybe some path problem/usb.h cannot be found? Un fortunately i am no programmer at all...
comment:3 Changed 16 years ago by blb@…
checking for usb_bulk_write in -lusb... yes checking for usb_create_match... no ... /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../intl -I../common -DLOCALEDIR=\"/opt/local/share/locale\" -DGNUPG_BINDIR="\"/opt/local/bin\"" -DGNUPG_LIBEXECDIR="\"/opt/local/libexec\"" -DGNUPG_LIBDIR="\"/opt/local/lib/gnupg2\"" -DGNUPG_DATADIR="\"/opt/local/share/gnupg2\"" -DGNUPG_SYSCONFDIR="\"/opt/local/etc/gnupg2\"" -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/local/include -O2 -Wall -Wno-pointer-sign -Wpointer-arith -MT ccid-driver.o -MD -MP -MF .deps/ccid-driver.Tpo -c -o ccid-driver.o ccid-driver.c ccid-driver.c:88:17: error: usb.h: No such file or directory
Do you have the libusb port installed? port installed libusb
to find out. It looks like it detects some of it (the part about usb_bulk_write) then fails to find the header file.
Long-term gnupg2 should either add a dependency on libusb or add --disable-scdaemon
to configure.args to avoid the part which needs it.
comment:4 Changed 16 years ago by ex_adres@…
libusb had not been installed, after I installed it, compiling gnupg2 was no problem.
A dependency or some configuration option would be a great idea.
comment:5 Changed 16 years ago by blb@…
Attached is a diff to the Portfile to add libusb (since it isn't that big of a port) as a dependency.
comment:6 Changed 16 years ago by blb@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
libusb added as a dependency in r49257 (maintainer timeout).
Can you rerun with debug (
sudo port -d ...
), then attach the output from that here?