issue: "dyld: Symbol not found: _CGLGetCurrentContext"
Michael Dickens
michaelld at macports.org
Thu Aug 19 04:33:18 PDT 2010
Hi Ryan - If I can't figure out the undefined symbol issue today, then
I'll attach a tarball to the ticket containing what I've gotten so far.
YA issue is, that this port conflicts with 'octave' -- haven't even
thought of that part since I was waiting for 'build' to work.
You all misunderstand my comment about using DYLD_LIBRARY_PATH. I'm not
using it in the Portfile; I'm using it in a local shell to get the
library paths correct in order to execute ./octave from a command line
where it was created
(.../math/octave-devel/work/octave-3.3.52/src/.libs/octave -- so
{{{
bash
cd .../math/octave-devel/work/octave-3.3.52/src/.libs
export DYLD_LIBRARY_PATH=......
./octave
gdb octave
exit
}}}
) -- TTBOMK, you can't execute "out of install paths" without messing
with the DYLD_LIBRARY_PATH. GNU Autotools does this trick with 'test'
or 'check' -- it creates a script of the correct name (e.g., "octave")
as a placeholder for the actual executable. Inside the script it does a
bunch of checks then sets the DYLD_LIBRARY_PATH to include all of the
known libraries associated with the executable. By looking through
this script one can find the correct DYLD_LIBRARY_PATH & set it in your
local shell (as above). Then, I can also run 'gdb octave' and gdb will
find all of the necessary libraries (at least according to what
Autotools has been told).
So, again, I'm not using DYLD_LIBRARY_PATH in the Portfile. When I do
"sudo port -d build octave-devel" I get back a bus error. Reading
through the scripts giving the bus error, I determined that it was the
actual execution of octave that was the issue. So, using the
DYLD_LIBRARY_PATH trick, I was able to determine the error found in my
original email.
So, given all of the above, does anyone know what this error is all
about:
dyld: Symbol not found: _CGLGetCurrentContext
Referenced from:
/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
Expected in:
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
Thanks again. - MLD
More information about the macports-dev
mailing list