Opened 7 months ago

Last modified 8 weeks ago

#68974 assigned defect

gnupg2 @2.4.3.1: error: implicit declaration of function 'libusb_error_name' is invalid in C99

Reported by: aarongeller Owned by: roederja
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: catalina bigsur monterey ventura sonoma Cc: Ionic (Mihai Moldovan)
Port: gnupg2

Description

The first error in the logfile is:

ccid-driver.c:1155:54: error: implicit declaration of function 'libusb_error_name' is invalid in C99

Attachments (1)

logcopy.log (467.8 KB) - added by aarongeller 7 months ago.
log file

Download all attachments as: .zip

Change History (4)

Changed 7 months ago by aarongeller

Attachment: logcopy.log added

log file

comment:1 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: Ionic added
Keywords: catalina bigsur monterey ventura sonoma added
Owner: set to roederja
Status: newassigned
Summary: gnupg2 @2.4.3.1 build fails with libusb errorgnupg2 @2.4.3.1: error: implicit declaration of function 'libusb_error_name' is invalid in C99

comment:2 Changed 8 weeks ago by aarongeller

I found that the version of libusb.h under /usr/local/include/libusb-1.0 is obsolete (dated 2008) and missing several function headers. By soft linking the version of libusb.h under /opt/local/include/libusb-1.0 to /usr/local/include/libusb-1.0, I was able to get gnupg2 to build.

comment:3 Changed 8 weeks ago by ryandesign (Ryan Carsten Schmidt)

Instead, please remove what you have under /usr/local; see wiki:FAQ#usrlocal.

Note: See TracTickets for help on using tickets.