Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188075 - app-text/openjade-1.3.2 fails to compile on x86-macos
Summary: app-text/openjade-1.3.2 fails to compile on x86-macos
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: osx porters
URL: http://openjade.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks: 184580
  Show dependency tree
 
Reported: 2007-08-08 06:43 UTC by Elias Pipping (RETIRED)
Modified: 2007-10-08 08:04 UTC (History)
0 users

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


Attachments
work-in-progress diff against ebuild openjade-1.3.2 (foo.diff,948 bytes, patch)
2007-08-08 16:48 UTC, Elias Pipping (RETIRED)
Details | Diff
OpenJade mess (openjade-mess.patch,1.87 KB, patch)
2007-08-08 16:58 UTC, Fabian Groffen
Details | Diff
work-in-progress diff against ebuild openjade-1.3.2 (bar.diff,634 bytes, patch)
2007-08-08 17:17 UTC, Elias Pipping (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Pipping (RETIRED) gentoo-dev 2007-08-08 06:43:57 UTC
This is what I get:

Undefined symbols:
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
__ZdlPv
__Znwm
___cxa_pure_virtual
___gxx_personality_v0

There are six patches[1] available over at MacPorts and lot of modifications in the portfile[2].

OpenJade is not keyworded ~x86-macos but both glib and gnutls depend upon it with USE=doc (via gtk-doc). So this bug serves as a reference for why doc will be masked on glib and gnutls.

[1] http://trac.macports.org/projects/macports/browser/trunk/dports/textproc/openjade/files?rev=27555
[2] http://trac.macports.org/projects/macports/browser/trunk/dports/textproc/openjade/Portfile?rev=27555
Comment 1 Fabian Groffen gentoo-dev 2007-08-08 08:02:10 UTC
macports patches are dirty as hell, and not really an option for me.  However, I tried for several hours to get the libtool horror here right, and I failed.  It is weird that you only get these few, I got a lot more, and for OpenSP.
Comment 2 Elias Pipping (RETIRED) gentoo-dev 2007-08-08 08:17:41 UTC
> macports patches are dirty as hell, and not really an option for me.

I tried the patches but I could get openjade to build with them. To worry about clean patches, I'd first need the ebuild to actually compile ;)

> It is weird that you only get these few, I got a lot more, and for OpenSP.

OpenSP built without any problems for me. The amount of errors doesn't say much, though, I'd say - at least in this case - the error occurred almost immediately after configure had finished. I've pasted[1] the output.

[1] http://paste.lisp.org/display/45803
Comment 3 Elias Pipping (RETIRED) gentoo-dev 2007-08-08 08:18:35 UTC
I could *not* get (In reply to comment #2)
> I tried the patches but I could get openjade to build with them.

I meant I could *not* get openjade to build with them.
Comment 4 Elias Pipping (RETIRED) gentoo-dev 2007-08-08 08:23:57 UTC
(In reply to comment #1)
> It is weird that you only get these few, I got a lot more, and for OpenSP.
Sorry, misunderstood you there - you mean errors when building openjade, related to linking against opensp, right? Could you please paste the exact error?
Comment 5 Elias Pipping (RETIRED) gentoo-dev 2007-08-08 08:49:14 UTC
update:
 * just tried to compile openjade on my ppc mac and got exactly the same errors as on my intel mac.
   you do have opensp installed, right? ;)
 * got openjade to compile with the patches and custom configure parameters, flags from macports.
   cutting down on the changes now to see what's necessary/broken/etc.

Comment 6 Elias Pipping (RETIRED) gentoo-dev 2007-08-08 16:48:07 UTC
Created attachment 127292 [details, diff]
work-in-progress diff against ebuild openjade-1.3.2

Okay so I managed to compile openjade on my machine. That's good news, the bad news is how I did that.

I've attached a diff against the ebuild. The diff is *only* meant to illustrate that openjade can be built, which I would like you too verify on ppc-macos (since I got the same errors on both my powerpc and my intel macs I don't think there's much of a point in testing if it works on my powerpc mac, you got a different error, though). You need the macports patches in the files dir in order for this patch to work. I cannot stress enough how far this diff is from something that's supposed to be committed ;)
Comment 7 Fabian Groffen gentoo-dev 2007-08-08 16:58:02 UTC
Created attachment 127294 [details, diff]
OpenJade mess

I'll give you some insight in my kitchen.  I think I sort of give up here, and go for a little bit of MacPorts patching to shut up the linker complaining about missing symbols.  (which I think is really bad, but might be the only way out for the piece of crap software...)
Comment 8 Elias Pipping (RETIRED) gentoo-dev 2007-08-08 17:17:29 UTC
Created attachment 127301 [details, diff]
work-in-progress diff against ebuild openjade-1.3.2

interesting. I got a completely different set of patches to work ( one less of the ones we have and one macports patch )
Comment 9 Elias Pipping (RETIRED) gentoo-dev 2007-08-08 17:20:09 UTC
the macports patch patch-configure adds this line, among others, to configure:

  CXX=$ac_ct_CXX

for some reason this becomes CXX='' for me in its current state, if --host and --build are passed the way they are now. without them it becomes CXX=g++
Comment 10 Fabian Groffen gentoo-dev 2007-08-08 17:31:14 UTC
that is because g++ is not a cross compiler, while Gentoo does cross-compiling even though build and host are the same.
Comment 11 Elias Pipping (RETIRED) gentoo-dev 2007-10-08 01:35:02 UTC
fixed in r10943[1].


[1] http://overlays.gentoo.org/proj/alt/changeset/10943
Comment 12 Fabian Groffen gentoo-dev 2007-10-08 08:04:48 UTC
Ugly, but let's hope this rids us from the thing