Opened 10 years ago

Closed 10 years ago

#43753 closed defect (worksforme)

gnutls: universal builds fail on ppc or i386

Reported by: devernay (Frédéric Devernay) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: gnutls

Description

When cross-compiling with gnutls, the configure options are a bit special. --host must be set to the build host, and --build to the target arch. --build alone (as in the current Portfile) is not enough, because configure will try to run the generated executables (which fails when compiling for i386 on ppc, or for x86_64 on i386 (core duo).

Another small problem with gnutls's config.h defines symbols that prevent some functions in time.h to be defined (::gmtime and ::localtime not defined when compiling gnutlsxx.cpp) (patch included: include time.h before config.h)

Attachments (4)

Portfile (3.3 KB) - added by devernay (Frédéric Devernay) 10 years ago.
modified Portfile
Portfile.patch (1.8 KB) - added by devernay (Frédéric Devernay) 10 years ago.
patch for the existing Portfile
gnutls-timeh.patch (451 bytes) - added by devernay (Frédéric Devernay) 10 years ago.
patchfile for the undeclared ::gmtime() and ::localtime() functions problem
Portfile-gnutls.diff (2.5 KB) - added by Schamschula (Marius Schamschula) 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by devernay (Frédéric Devernay)

Attachment: Portfile added

modified Portfile

Changed 10 years ago by devernay (Frédéric Devernay)

Attachment: Portfile.patch added

patch for the existing Portfile

Changed 10 years ago by devernay (Frédéric Devernay)

Attachment: gnutls-timeh.patch added

patchfile for the undeclared ::gmtime() and ::localtime() functions problem

comment:1 Changed 10 years ago by Schamschula (Marius Schamschula)

I've rolled Fredric's Portfile into a version update, as the current upstream version of gnutls is @3.3.2.

Changed 10 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-gnutls.diff added

comment:2 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 10 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed

I'm calling this ticket obsolete since the port is up to version 3.3.5 now.

Note: See TracTickets for help on using tickets.