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)
Change History (7)
Changed 10 years ago by devernay (Frédéric Devernay)
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:3 Changed 10 years ago by mf2k (Frank Schima)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I'm calling this ticket obsolete since the port is up to version 3.3.5 now.
modified Portfile