Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 72229

Summary: Porting: opensp
Product: Gentoo/Alt Reporter: Roman Dilken <bugzilla>
Component: Mac OSXAssignee: Gentoo for Mac OS X <ppc-macos>
Status: RESOLVED FIXED    
Severity: enhancement CC: dirk.schoenberger
Priority: High    
Version: unspecified   
Hardware: PPC64   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 98914, 98915    
Attachments: patch made to opensp-1.5-r1.ebuild

Description Roman Dilken 2004-11-23 05:22:59 UTC
Opensp failes with multiple_definitions-error...

g++ -dynamiclib -flat_namespace -undefined suppress -o .libs/libosp.3.0.0.dylib  Allocator.lo ArcEngine.lo Attribute.lo Big5CodingSystem.lo CharsetDecl.lo CharsetInfo.lo CharsetRegistry.lo CmdLineApp.lo CodingSystem.lo CodingSystemKit.lo ConsoleOutput.lo ContentState.lo ContentToken.lo DescriptorManager.lo Dtd.lo DtdDeclEventHandler.lo EUCJPCodingSystem.lo ElementType.lo Entity.lo EntityApp.lo EntityCatalog.lo EntityDecl.lo EntityManager.lo ErrnoMessageArg.lo ErrorCountEventHandler.lo Event.lo EventGenerator.lo ExtendEntityManager.lo ExternalId.lo Fixed2CodingSystem.lo GenericEventHandler.lo Group.lo Hash.lo IListBase.lo Id.lo IdentityCodingSystem.lo InputSource.lo InternalInputSource.lo Link.lo LinkProcess.lo LiteralStorage.lo Location.lo Lpd.lo Markup.lo Message.lo MessageArg.lo MessageEventHandler.lo MessageFormatter.lo MessageReporter.lo MessageTable.lo ModeInfo.lo Notation.lo NotationStorage.lo NumericCharRefOrigin.lo OffsetOrderedList.lo OpenElement.lo OutputByteStream.lo OutputCharStream.lo OutputState.lo Param.lo Parser.lo ParserApp.lo ParserEventGeneratorKit.lo ParserMessages.lo ParserOptions.lo ParserState.lo Partition.lo PosixStorage.lo Recognizer.lo RewindStorageObject.lo SGMLApplication.lo SJISCodingSystem.lo SOEntityCatalog.lo Sd.lo SdText.lo SearchResultMessageArg.lo SgmlParser.lo ShortReferenceMap.lo StdioStorage.lo StorageManager.lo Syntax.lo Text.lo TokenMessageArg.lo TranslateCodingSystem.lo TrieBuilder.lo TypeId.lo URLStorage.lo UTF8CodingSystem.lo Undo.lo UnicodeCodingSystem.lo UnivCharsetDesc.lo XMLCodingSystem.lo assert.lo parseAttribute.lo parseCommon.lo parseDecl.lo parseInstance.lo parseMode.lo parseParam.lo parseSd.lo splib.lo app_inst.lo arc_inst.lo entmgr_inst.lo parser_inst.lo xentmgr_inst.lo SubstTable.lo UTF16CodingSystem.lo Fixed4CodingSystem.lo memcmp.lo memmove.lo strerror.lo  -lpthread -lc -install_name  /usr/lib/libosp.3.dylib -compatibility_version 4 -current_version 4.0
/usr/bin/libtool: internal link edit command failed
ld: multiple definitions of symbol OpenSP::Text::~Text()
Entity.lo definition of OpenSP::Text::~Text() in section (__TEXT,__text)
Group.lo definition of OpenSP::Text::~Text() in section (__TEXT,__text)
ld: multiple definitions of symbol OpenSP::Text::~Text()
Entity.lo definition of OpenSP::Text::~Text() in section (__TEXT,__text)
Group.lo definition of OpenSP::Text::~Text() in section (__TEXT,__text)
Param.lo definition of OpenSP::Text::~Text() in section (__TEXT,__text)
Param.lo definition of OpenSP::Text::~Text() in section (__TEXT,__text)
make[3]: *** [libosp.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



Reproducible: Always
Steps to Reproduce:
1.emerge -av opensp
2.
3.




!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51-r3 (default-macos/ppc/10.3, gcc-3.3, libsystem-7.1-r0, 7.6.0
Power Macintosh)
=================================================================
System uname: 7.6.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
Autoconf: sys-devel/autoconf-2.57,sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.6.3,sys-devel/automake-1.8.5-r1
Binutils: 
Headers:  
Libtools: 
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace"
CHOST="powerpc-apple-darwin"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache collision-protect cvs distlocks keepwork"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X berkdb debug gif hbci jpeg justify makecheck multilib nptl ofx
ppc-macos quotes recode ssl threads tiff unicode usb"
Comment 1 Roman Dilken 2004-11-24 00:34:13 UTC
I switched from version 1.5.0-r1 to version 1.5.1...
Here I get the following error:

/bin/sh ../libtool --mode=link g++  -O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace   -o onsgmls  nsgmls.o SgmlsEventHandler.o RastEventHandler.o StringSet.o nsgmls_inst.o ../lib/libosp.la -lpthread 
mkdir .libs
g++ -O3 -pipe -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace -o .libs/onsgmls nsgmls.o SgmlsEventHandler.o RastEventHandler.o StringSet.o nsgmls_inst.o  -L../lib/.libs -losp -lpthread
ld: Undefined symbols:
non-virtual thunk to OpenSP::MessageReporter::dispatchMessage(OpenSP::Message const&)
make[3]: *** [onsgmls] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 2 Roman Dilken 2004-11-24 01:13:23 UTC
As found here http://lists.apple.com/archives/darwin-development/2004/May/msg00003.html
this seems to be a known compilerbug of the apple-gcc.

But turning off optimizations does not solve the problem...
Comment 3 Fabian Groffen gentoo-dev 2005-07-13 12:12:08 UTC
on OSX Tiger app-text/opensp-1.5-r1 compiles fine, also with one and only use
flag nls.
Comment 4 Fabian Groffen gentoo-dev 2005-07-13 12:17:07 UTC
Created attachment 63332 [details, diff]
patch made to opensp-1.5-r1.ebuild

Actually, it compiled fine, but there was a collision with the system provided
/usr/lib/charset.alias.  Both files consist of only comments, which are almost
equal (year and application differ), so I patched the ebuild to exclude this
file from installing.  See patch.
Comment 5 Fabian Groffen gentoo-dev 2005-09-13 22:30:07 UTC
hmmm, if this compiles/works, then why isn't it in portage?
Comment 6 Fabian Groffen gentoo-dev 2007-08-10 06:24:11 UTC
opensp is working in prefix, openjade still remains a problem.