Opened 9 years ago

Closed 9 years ago

#49848 closed defect (fixed)

Glew 1.13 does not build with Leopard PPC

Reported by: snakecoils@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: dstrubbe (David Strubbe), tillbergmann@…
Port: glew

Description

Hello, while the version 1.12 builds correctly under OSX 10.5.8 PPC, the new 1.13 doesn't. Here is the error log:

:notice:build --->  Building glew
:debug:build Executing org.macports.build (glew)
:debug:build Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glew/glew/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
GLEW_DEST='/opt/local'
GLEW_PREFIX='/opt/local'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.5'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glew/glew/work/glew-1.13.0" && /usr/bin/make -j2 -w all CC=/usr/bin/gcc-4.2 LD=/usr/bin/gcc-4.2 POPT="-Os" STRIP= CFLAGS.ARCH="-arch ppc" LDFLAGS.ARCH="-arch ppc"'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glew/glew/work/glew-1.13.0" && /usr/bin/make -j2 -w all CC=/usr/bin/gcc-4.2 LD=/usr/bin/gcc-4.2 POPT="-Os" STRIP= CFLAGS.ARCH="-arch ppc" LDFLAGS.ARCH="-arch ppc" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glew/glew/work/glew-1.13.0'
:info:build sed \
:info:build 		-e "s|@prefix@|/opt/local|g" \
:info:build 		-e "s|@libdir@|/opt/local/lib|g" \
:info:build 		-e "s|@exec_prefix@|/opt/local/bin|g" \
:info:build 		-e "s|@includedir@|/opt/local/include/GL|g" \
:info:build 		-e "s|@version@|1.13.0|g" \
:info:build 		-e "s|@cflags@||g" \
:info:build 		-e "s|@libname@|GLEW|g" \
:info:build 		-e "s|@requireslib@|glu|g" \
:info:build 		< glew.pc.in > glew.pc
:info:build sed \
:info:build 		-e "s|@prefix@|/opt/local|g" \
:info:build 		-e "s|@libdir@|/opt/local/lib|g" \
:info:build 		-e "s|@exec_prefix@|/opt/local/bin|g" \
:info:build 		-e "s|@includedir@|/opt/local/include/GL|g" \
:info:build 		-e "s|@version@|1.13.0|g" \
:info:build 		-e "s|@cflags@|-DGLEW_MX|g" \
:info:build 		-e "s|@libname@|GLEWmx|g" \
:info:build 		-e "s|@requireslib@|glu|g" \
:info:build 		< glew.pc.in > glewmx.pc
:info:build /usr/bin/gcc-4.2 -DGLEW_NO_GLU -Os -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -arch ppc -fPIC  -o tmp/darwin/default/shared/glewinfo.o -c src/glewinfo.c
:info:build src/glewinfo.c: In function ‘glewCreateContext’:
:info:build src/glewinfo.c:11855: error: ‘kCGLPFAOpenGLProfile’ undeclared (first use in this function)
:info:build src/glewinfo.c:11855: error: (Each undeclared identifier is reported only once
:info:build src/glewinfo.c:11855: error: for each function it appears in.)
:info:build src/glewinfo.c:11856: error: ‘kCGLOGLPVersion_3_2_Core’ undeclared (first use in this function)
:info:build make: *** [tmp/darwin/default/shared/glewinfo.o] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glew/glew/work/glew-1.13.0'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glew/glew/work/glew-1.13.0" && /usr/bin/make -j2 -w all CC=/usr/bin/gcc-4.2 LD=/usr/bin/gcc-4.2 POPT="-Os" STRIP= CFLAGS.ARCH="-arch ppc" LDFLAGS.ARCH="-arch ppc" 
:info:build Exit code: 2
:error:build org.macports.build for port glew returned: command execution failed
:debug:build Error code: CHILDSTATUS 41329 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for glew: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port glew for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_glew/glew/main.log

Change History (6)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to jmr@…

comment:2 Changed 9 years ago by dstrubbe (David Strubbe)

This problem occurs on the Snow Leopard buildslave too.

comment:3 Changed 9 years ago by dstrubbe (David Strubbe)

Cc: dstrubbe@… added

Cc Me!

comment:4 Changed 9 years ago by tillbergmann@…

Cc: tillbergmann@… added

Cc Me!

comment:5 Changed 9 years ago by tillbergmann@…

I have the same error on Mac OSX 10.6.8.

Are there any news concerning this error?

comment:6 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.