• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: link error, malformed object, illegal reference for -dynamic code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: link error, malformed object, illegal reference for -dynamic code


  • Subject: Fwd: link error, malformed object, illegal reference for -dynamic code
  • From: Eric Eizenman <email@hidden>
  • Date: Mon, 22 Jan 2007 15:37:23 -0800

I didn't got any reply to the original post, but I was able to work around it.
Now, I got a similar link error with no workaround. I must say that I don't really understand the nature of the problem and therefore completely in the dark as far as how to fix it.


This time it happens only on a Mac Pro. The error is reported against the DAEPlugin_Main.o object file, which is a part of a static library. When we link the final product, the linker is complaining about an object module section that is not correct for dynamic code. The project does compile and link on a ppc machine.

Here is the build log:

Building target “Soap DAE” of project “soap” with configuration “Debug”

Checking Dependencies
Ld "/Library/Application Support/Digidesign/Plug-Ins/BIAS SoundSoap DAE.dpm/Contents/MacOS/BIAS SoundSoap DAE" normal i386
cd /Volumes/Source/soap_2_0/src/soap/macos
/usr/bin/g++-4.0 -o /Library/Application\ Support/Digidesign/ Plug-Ins/BIAS\ SoundSoap\ DAE.dpm/Contents/MacOS/BIAS\ SoundSoap\ DAE -L/Volumes/Source/soap_2_0/src/soap/macos/../../../builds/macos/Debug -L/Volumes/Source/soap_2_0/src/soap/macos/../../../../sdk/aes128/aes/ build/Release -F/Volumes/Source/soap_2_0/src/soap/macos/../../../ builds/macos/Debug -filelist /Volumes/Source/soap_2_0/src/soap/ macos/../../../builds/macos/soap.build/Debug/Soap\ DAE.build/Objects- normal/i386/BIAS\ SoundSoap\ DAE.LinkFileList -framework Carbon - framework CoreAudio -framework CoreMIDI -framework vecLib /Volumes/ Source/soap_2_0/builds/macos/Debug/libzlib_nopa.a /Volumes/Source/ soap_2_0/builds/macos/Debug/libzdsp.a /Volumes/Source/soap_2_0/builds/ macos/Debug/libDAE\ Plugin\ Wrapper.a -framework AudioUnit -framework SystemConfiguration -framework IOKit /Volumes/Source/sdk/aes128/aes/ macos/build/Debug/libaeslib.a -arch i386 -Wl,-Y,1455 -bundle -mmacosx- version-min=10.3 -multiply_defined warning -isysroot /Developer/SDKs/ MacOSX10.4u.sdk
/usr/bin/ld: warning multiple definitions of symbol ___cxa_atexit
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o private external definition of ___cxa_atexit in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple- darwin8/4.0.1/../../../libSystem.dylib(atexit.So) definition of ___cxa_atexit
/usr/bin/ld: warning multiple definitions of symbol _atexit
/usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o private external definition of _atexit in section (__TEXT,__text)
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple- darwin8/4.0.1/../../../libSystem.dylib(atexit.So) definition of _atexit
/usr/bin/ld: /Volumes/Source/soap_2_0/builds/macos/Debug/libDAE Plugin Wrapper.a(DAEPlugin_Main.o) malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__textcoal_nt) relocation entry (370))
collect2: ld returned 1 exit status



------------------------------------------------------------------ Eric Eizenman BIAS Inc., Audio Software Development ------------------------------------------------------------------


Begin forwarded message:

From: Eric Eizenman <email@hidden>
Date: December 11, 2006 4:39:34 PM PST
To: xcode-users list <email@hidden>
Subject: link error, malformed object, illegal reference for - dynamic code


Using G5, Tiger and Xcode 2.4.1

I'm getting this link errors rooted in a file that is compiled in another static library as a dependency to this dylib. This happens only in release build and the errors show up for both ppc and i386. The only difference I can see between that file and the others is the use of '#pragma GCC visibility push(hidden)'.
If I delete the pragma then the linker is happy. Any ideas ?



Ld "/src/depot/main/src/soap/macos/../../../builds/macos/soap.build/ Release/Soap AU View.build/Objects-normal/ppc/SoundSoap AU View.dylib" normal ppc
cd /src/depot/main/src/soap/macos
/usr/bin/g++-4.0 -o /src/depot/main/src/soap/macos/../../../ builds/macos/soap.build/Release/Soap\ AU\ View.build/Objects-normal/ ppc/SoundSoap\ AU\ View.dylib -L/src/depot/main/src/soap/ macos/../../../builds/macos/Release -F/src/depot/main/src/soap/ macos/../../../builds/macos/Release -filelist /src/depot/main/src/ soap/macos/../../../builds/macos/soap.build/Release/Soap\ AU\ View.build/Objects-normal/ppc/SoundSoap\ AU\ View.LinkFileList - framework Carbon -framework AudioUnit -framework CoreAudio - framework CoreMIDI -framework AudioToolbox -framework vecLib /src/ depot/main/builds/macos/Release/libzlib_nopa.a /src/depot/main/ builds/macos/Release/libzdsp.a -framework IOKit -framework SystemConfiguration /src/depot/sdk/aes128/aes/macos/build/Release/ libaeslib.a -arch ppc -prebind -Wl,-single_module - compatibility_version 1 -current_version 1 -install_name /usr/local/ lib/SoundSoap\ AU\ View.dylib -Wl,-Y,1455 -dynamiclib -mmacosx- version-min=10.3 -Wl,-dead_strip -isysroot /Developer/SDKs/ MacOSX10.4u.sdk


ld: /src/depot/main/builds/macos/Release/libzlib_nopa.a(ZLMFCR.o) malformed object, illegal reference for -dynamic code (reference to a coalesced section (__DATA,__const_coal) from section (__TEXT,__text) relocation entry (669))

more...

/usr/bin/libtool: internal link edit command failed

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Providing Code Sense information to XCode
  • Next by Date: Re: Are you sure you want to delete the targets?
  • Previous by thread: Re: Providing Code Sense information to XCode
  • Next by thread: Unable to save files after perforce checkin/checkout
  • Index(es):
    • Date
    • Thread