gnupg >= 2.0.21 won't build on OSX 10.8.5 with XCode5
Closed, ResolvedPublic

Description

Gnupg2 won't build on OSX 10.8.5 under the new XCode5. I get compiler errors.
Trouble starts with an "unknown type name", namely, "intmax_t". There are also
some clang warnings, but I don't know if they're worth worrying about.

Everything was fine up until XCode5. I didn't change my configure flags or
anything.

This affects gnupg-2.0.21 and 2.0.22, both with and without the agent enabled.
I only noticed the problem while trying to build the brand-new 2.0.22.

All the prerequisites (libassuan, pth, libksba, libgcrypt, libgpg-error,
pinentry) build just fine.

I've attached what I see, after doing ./configure --disable-dependency-tracking
--disable-agent.

Details

Version
2.0.21, 2.0.22
balderdash set Version to 2.0.21, 2.0.22.
balderdash added a subscriber: balderdash.

outer added a subscriber: outer.Oct 7 2013, 12:51 AM

See 1541. Something got screwed up in the somewhat bizarre chain of includes. My
only work around is to manually include the needed typedefs.

outer added a comment.Oct 7 2013, 4:17 AM

I'm vaguely surprised you were able to recompile libgcrypt 1.5.3 using Xcode 5.0.

See 1540.

werner added a subscriber: werner.Oct 7 2013, 4:53 PM

It has been mentioned at the ML that your problems might be related to a
misconfigured build machine. Please continue discussion at the ML.

@balderdash: Using --disable-agent is not a good idea

werner lowered the priority of this task from High to Normal.Oct 7 2013, 4:53 PM

The --disable-agent doesn't matter for this bug. It's the same without it.

It's an artifact from Homebrew, which for whatever reason splits things into one
package for just the agent, and another for gnupg2-sans-agent.

Something got screwed up in the somewhat bizarre chain of includes. My

only work around is to manually include the needed typedefs.

I'm not a programmer and I don't know what "manually include the needed
typedefs" means.

Interestingly the problem I report doesn't exist when gnupg2 is built within
Homebrew.

Well, I don't known what Homebrew is?

Homebrew is an OSX package manager.

It's interesting that it built inside Homebrew, because they do some automatic
adjustment of CFLAGS etc. to make a package more likely to build on OSX.

Probably what happened is they removed a flag which is causing the problem I'm
reporting, but only on XCode5.0

I'm no programmer, but I'll look into this further.

Thus this is a bug in homebrew and not in GnuPG. If you have a solution please
post it here for reference.

Homebrew is the only way building with Xcode5 can SUCCEED. Building the "normal"
way, with ./configure --stuff && make, FAILS. The bug is in gnupg2. Homebrew has
somehow stepped around the bug.

Then please describe the error building GnuPG using the one and only way -
everything else is not supported.

Then please describe the error building GnuPG using the one and only way -

everything else is not supported.

??? I *did*, in this very bug report right here, in my original post. Is my
attachment not viewable?

Oh sorry. It is not readily viewable in the browser due to the MIME type.

This issue has already been discussed on the mailing list and another bug
report. Your problem is a messed up toolchain installation. We can't do
anything about that. If you want to follow up on this, please do so on the
mailing list. The audience of the bug tracker is too small and we don't have
any OSX stuff here for testing.

werner closed this task as Resolved.
werner claimed this task.