• 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
Multiply defined symbols from system frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiply defined symbols from system frameworks


  • Subject: Multiply defined symbols from system frameworks
  • From: Philip Lamb <email@hidden>
  • Date: Thu, 1 Sep 2005 17:03:49 -0700

Hi all,

Is there some switch for ld, or some other method, by which I can prevent ld from linking symbols in from system frameworks?

I am trying to link an executable against X11's OpenGL, and I am getting errors like this:
/usr/bin/ld: warning multiple definitions of symbol _glPointParameteri
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ libGL.dylib(gll_api.o) definition of _glPointParameteri
/usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glPointParameteri
/usr/bin/ld: warning multiple definitions of symbol _glPointParameteriv
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ libGL.dylib(gll_api.o) definition of _glPointParameteriv
/usr/X11R6/lib/libGL.dylib(dri_dispatch.o) definition of _glPointParameteriv
symbol _glPointParameteri used from dynamic library /System/Library/ Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib (gll_api.o) not from earlier dynamic library /usr/X11R6/lib/libGL. 1.dylib(dri_dispatch.o)
symbol _glPointParameteriv used from dynamic library /System/Library/ Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib (gll_api.o) not from earlier dynamic library /usr/X11R6/lib/libGL. 1.dylib(dri_dispatch.o)


The program does link.. but it crashes on X startup, with what I believe is an error caused by symbols being linked from the wrong library:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x0000005c

Thread 0 Crashed:
0   libGL.1.dylib         0x9cc3673c glXGetVisualFromFBConfig + 12
1   dyld                  0x8fe165f8 stub_binding_helper_interface + 56
[snip]

I have tried supplying -Z to ld, but the system frameworks are still linked in (although /usr/lib and friends are not).

Any suggestions?

Regards,
Phil.
_______________________________________________
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: Merging strings?
  • Next by Date: Problem adding .lproj folders to xcode projecjt
  • Previous by thread: Re: Merging strings?
  • Next by thread: Problem adding .lproj folders to xcode projecjt
  • Index(es):
    • Date
    • Thread