Opened 5 years ago
Closed 4 years ago
#61487 closed defect (fixed)
glew @2.1.0: Undefined symbols: "_CGLReleaseContext" on Tiger
| Reported by: | kencu (Ken) | Owned by: | jmroot (Joshua Root) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | tiger | Cc: | |
| Port: | glew |
Description
It may be a stretch, but I thought I would try glew on Tiger PPC.
I got to here:
src/glewinfo.c:16748: warning: implicit declaration of function 'CGLReleaseContext'
/opt/local/bin/gcc-apple-4.2 -Os -Wall -W -Iinclude -dynamic -fno-common -pedantic -fPIC -arch ppc -std=c89 -o bin/glewinfo tmp/darwin/default/shared/glewinfo.o -Llib -lGLEW -arch ppc -framework OpenGL
Undefined symbols:
"_CGLReleaseContext", referenced from:
_glewDestroyContext in glewinfo.o
"_CGLReleasePixelFormat", referenced from:
_glewCreateContext in glewinfo.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [bin/glewinfo] Error 1
Attachments (2)
Change History (6)
Changed 5 years ago by kencu (Ken)
| Attachment: | glew-2.1.0-fail-tiger-ppc.log added |
|---|
comment:1 Changed 5 years ago by kencu (Ken)
Changed 5 years ago by kencu (Ken)
| Attachment: | patch-glew-tiger-ppc.diff added |
|---|
comment:2 Changed 5 years ago by kencu (Ken)
I slightly modified the Makefile patch, to remove -pedantic and thereby remove hundreds of warnings from gcc about this:
src/glew.c:12151: warning: ISO C forbids conversion of object pointer to function pointer type
comment:3 Changed 5 years ago by kencu (Ken)
One more little thing needs to be done on Tiger, to change the glew.h header to include AvailabilityMacros.h instead of Availability.h.
comment:4 Changed 4 years ago by evanmiller (Evan Miller)
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.

simple fix, in the end:
patch coming