Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72082 - Porting: libxml works with little patch
Summary: Porting: libxml works with little patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC64 All
: High minor (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-22 08:29 UTC by Roman Dilken
Modified: 2007-03-26 19:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patched configure-Skript for libxml on Mac OSX (configure,218.07 KB, text/plain)
2004-11-22 08:40 UTC, Roman Dilken
Details
changes made to the ebuild to get libxml compiling on OSX (libxml-1.8.17-r2.ebuild.patch,630 bytes, patch)
2005-06-27 13:54 UTC, Fabian Groffen
Details | Diff
patch for configure to include "-flat_namespace" (libxml-1.8.17-macos.patch,478 bytes, patch)
2005-06-27 13:57 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Dilken 2004-11-22 08:29:28 UTC
Libxml compiles with the configure-file attached which sets -flat_namespace as default.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Roman Dilken 2004-11-22 08:40:24 UTC
Created attachment 44470 [details]
Patched configure-Skript for libxml on Mac OSX

This patch allow compiling libxml on Mac OSX by addin -flat_namespace
Comment 2 Fabian Groffen gentoo-dev 2005-06-27 13:54:36 UTC
Created attachment 62104 [details, diff]
changes made to the ebuild to get libxml compiling on OSX

changes made to the ebuild to include osx patch
Comment 3 Fabian Groffen gentoo-dev 2005-06-27 13:57:34 UTC
Created attachment 62105 [details, diff]
patch for configure to include "-flat_namespace"

this patch obsoletes the previous complete file (please supply patches in the
future)

See amongst others here for details on the change made by this patch
http://www.xmlperl.com/modules.php?op=modload&name=News&file=article&sid=7&mode=thread


this patch avoids the linker error:
ld: -undefined error must be used when -twolevel_namespace is in effect
/usr/bin/libtool: internal link edit command failed

by adding -flat_namespace if "-undefined suppress" is used
Comment 4 Fabian Groffen gentoo-dev 2005-06-27 13:58:36 UTC
Comment on attachment 62104 [details, diff]
changes made to the ebuild to get libxml compiling on OSX

oops, this patch is still valid
Comment 5 Lina Pezzella (RETIRED) gentoo-dev 2005-07-01 14:23:00 UTC
That is one way to do it. Just as an alternative suggestion, instead of using -undefined suppress, could
we also use -undefined dynamic_lookup? That way we could keep the two-level namespace, as that is
the default now. If that doesn't work or if there's some compelling reason to fall back to -flat_namespace,
I don't have too much of an objection though.
Comment 6 Lina Pezzella (RETIRED) gentoo-dev 2005-07-03 13:25:46 UTC
I talked with Hasan Khalil and I remember from past conversations with kito, that when possible it is our
preference as a team to preserve 10.3+ behavior by keeping the two level namespace and using
-undefined dynamic_lookup.

This bug also depends on getting openjade and opensp to work since there is the doc USE flag.
Comment 7 Fabian Groffen gentoo-dev 2005-08-20 07:23:44 UTC
doc is masked, the real problem is readline.
Comment 8 Fabian Groffen gentoo-dev 2007-03-26 19:50:23 UTC
libxml works fine, in prefix.