Opened 9 years ago

Last modified 4 years ago

#49431 reopened defect

pkgconfig @0.28: error: unknown type name 'uuid_string_t'

Reported by: noellenburg@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: pkgconfig

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I just migrated from my old machine on OS X 10.9 to a new machine on OS X 10.11.1. I followed the Migration guide for MacPorts, i.e., installed XCode 7.1, installed the new MacPorts Base 2.3.4 for El Capitan, uninstalled all previously installed ports. But rather than reinstalling everything I had, I only wanted to install the ports I still need. So the next thing to do was to install ipe via "sudo port install ipe", one of the dependencies is pkgconfig, which unfortunately failed to install with this message:

--->  Building pkgconfig
Error: org.macports.build for port pkgconfig returned: command execution failed
Error: Failed to install pkgconfig

From the attached log file I do not understand the reason for the error. Any help is appreciated.

Attachments (2)

main.log (15.0 KB) - added by noellenburg@… 9 years ago.
main.2.log (307.5 KB) - added by noellenburg@… 9 years ago.
log file after cleaning pkgconfig

Download all attachments as: .zip

Change History (16)

Changed 9 years ago by noellenburg@…

Attachment: main.log added

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

This was not a clean build attempt. Please clean pkgconfig and then try again.

comment:2 in reply to:  1 Changed 9 years ago by noellenburg@…

Replying to ryandesign@…:

This was not a clean build attempt. Please clean pkgconfig and then try again.

Sorry, I forgot to clean before sending the log. But of course I had tried that, too. Same thing, though, please see attached log file.

--->  Cleaning pkgconfig
--->  Computing dependencies for pkgconfig
--->  Fetching archive for pkgconfig
--->  Attempting to fetch pkgconfig-0.28_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/pkgconfig
--->  Attempting to fetch pkgconfig-0.28_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/pkgconfig
--->  Attempting to fetch pkgconfig-0.28_0.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/pkgconfig
--->  Fetching distfiles for pkgconfig
--->  Verifying checksums for pkgconfig
--->  Extracting pkgconfig
--->  Applying patches to pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig
Error: org.macports.build for port pkgconfig returned: command execution failed

Changed 9 years ago by noellenburg@…

Attachment: main.2.log added

log file after cleaning pkgconfig

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

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

Thanks. The error shown in the log is:

:info:build /usr/include/hfs/hfs_format.h:797:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
:info:build         uuid_string_t   ext_jnl_uuid;
:info:build         ^
:info:build /usr/include/device/device_types.h:89:16: note: 'io_string_t' declared here
:info:build typedef char                    io_string_t[512];       
:info:build                                 ^

Searching for this error, I found two suggestions that the problem is caused by the presence of the file /usr/local/include/uuid/uuid.h. Do you have this file? If so, delete it and anything else you installed in prefix /usr/local, then "sudo port clean pkgconfig" and then try again. Installing software in prefix /usr/local will cause problems for MacPorts, which is why we do not support you doing that; see wiki:FAQ#usrlocal.

comment:4 in reply to:  3 Changed 9 years ago by noellenburg@…

Replying to ryandesign@…:

Searching for this error, I found two suggestions that the problem is caused by the presence of the file /usr/local/include/uuid/uuid.h. Do you have this file? If so, delete it and anything else you installed in prefix /usr/local, then "sudo port clean pkgconfig" and then try again. Installing software in prefix /usr/local will cause problems for MacPorts, which is why we do not support you doing that; see wiki:FAQ#usrlocal.

Thanks for the hint. I don't have /usr/local/include/uuid/uuid.h. If I search for that file, I find it in /usr/include/uuid/uuid.h, /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h and in /opt/local/include/uuid/uuid.h. Checking the wiki FAQ that you mentioned, I tried "sudo port -t install pkgconfig", which was mentioned as a way to avoid conflicts with /usr/local. Still no success.

comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

I know trace mode is broken on El Capitan in MacPorts 2.3.4. A tentative fix has been committed but not released yet.

You mentioned you installed Xcode 7.1, which should be a compatible version. Have you also upgraded your Xcode command line tools to the corresponding version? If you're not sure, try running "xcode-select --install". The Xcode command line tools can also be downloaded from the Apple developer downloads page.

comment:6 in reply to:  5 Changed 9 years ago by noellenburg@…

Replying to ryandesign@…:

I know trace mode is broken on El Capitan in MacPorts 2.3.4. A tentative fix has been committed but not released yet.

You mentioned you installed Xcode 7.1, which should be a compatible version. Have you also upgraded your Xcode command line tools to the corresponding version? If you're not sure, try running "xcode-select --install". The Xcode command line tools can also be downloaded from the Apple developer downloads page.

Yes, I do have the corresponding command line tools installed...

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Well uuid_string_t, the thing your error message says is unknown, should be defined in /usr/include/uuid/uuid.h:

#ifndef _UUID_STRING_T
#define _UUID_STRING_T
typedef __darwin_uuid_string_t	uuid_string_t;
#endif /* _UUID_STRING_T */

Can you verify that those lines do appear in that file?

comment:8 in reply to:  7 Changed 9 years ago by noellenburg@…

Replying to ryandesign@…:

Well uuid_string_t, the thing your error message says is unknown, should be defined in /usr/include/uuid/uuid.h:

#ifndef _UUID_STRING_T
#define _UUID_STRING_T
typedef __darwin_uuid_string_t	uuid_string_t;
#endif /* _UUID_STRING_T */

Can you verify that those lines do appear in that file?

Well, those lines are in both system files, but it turned out that /opt/local/include/uuid/uuid.h did not contain them. I temporarily renamed the one in /opt/local and then pkgconfig built without problems. Thanks for the hint to check those files and for your help with this issue!

Follow-up question: can I simply remove the uuid.h in /usr/local/include? Does macports usually install its own version in there?

comment:9 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

pkgconfig has since been updated to 0.29.2. Is this issue still relevant, or can this ticket be closed?

comment:10 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:11 Changed 4 years ago by kencu (Ken)

Resolution: worksforme
Status: newclosed

Agreed -- whatever was actually wrong here, it is ancient history at this point in time...

comment:12 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: closedreopened
Summary: pkgconfig @0.28 :error:build Failed to install pkgconfigpkgconfig @0.28: error: unknown type name 'uuid_string_t'

The user reported that pkgconfig failed to build when /opt/local/include/uuid/uuid.h (which is provided by the libuuid port) is present. I just confirmed that that problem still exists.

comment:13 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

In cf75494d61193fd0d6491c9c455b5f8ac8acc6f1/macports-ports (master):

pkgconfig: Declare build conflict with libuuid

See: #49431

comment:14 Changed 4 years ago by kencu (Ken)

Maybe I should go close a few more tickets ;>

Note: See TracTickets for help on using tickets.