Bug 2530 - build fails on OS X with "nested functions are not supported on MacOSX"
Status: RESOLVED DUPLICATE of bug 2529
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Platform
Version: 1.33 SVN
Hardware: Macintosh MacOS X
: P2 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2005-12-06 04:21 EST by Adam Mercer
Modified: 2007-05-21 11:24:42 EDT
0 users

See Also:



Description Adam Mercer 2005-12-06 04:21:55 EST
The build fails on Mac OS X (10.4.3) with XCode 2.2 (gcc-4.0.1) with the following error

gcc -mdynamic-no-pic -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -DMACOS_X -fno-common -pipe -gfull -DUSE_OPENAL=1 -DUSE_SDL_VIDEO=1 -DUSE_SDL_SOUND=1 -D_THREAD_SAFE=1 -I../SDL12/include -faltivec -DNO_VM_COMPILED -DUSE_LOCAL_HEADERS=1 -DNDEBUG -O3 -ffast-math -falign-loops=16 -MMD -o releaseppc/client/tr_surface.o -c ../renderer/tr_surface.c  
../renderer/tr_surface.c: In function 'LerpMeshVertexes_altivec':
../renderer/tr_surface.c:618: error: nested functions are not supported on MacOSX
../renderer/tr_surface.c:618: error: syntax error before 'ALIGN16'
../renderer/tr_surface.c:619: error: nested functions are not supported on MacOSX
../renderer/tr_surface.c:619: error: syntax error before 'ALIGN16'
../renderer/tr_surface.c:620: error: nested functions are not supported on MacOSX
../renderer/tr_surface.c:620: error: syntax error before 'ALIGN16'
../renderer/tr_surface.c:621: error: nested functions are not supported on MacOSX
../renderer/tr_surface.c:621: error: syntax error before 'ALIGN16'
../renderer/tr_surface.c:633: error: 'newXyzScale' undeclared (first use in this function)
../renderer/tr_surface.c:633: error: (Each undeclared identifier is reported only once
../renderer/tr_surface.c:633: error: for each function it appears in.)
../renderer/tr_surface.c:634: error: 'newNormalScale' undeclared (first use in this function)
../renderer/tr_surface.c:700: error: 'oldXyzScale' undeclared (first use in this function)
../renderer/tr_surface.c:701: error: 'oldNormalScale' undeclared (first use in this function)
make[2]: *** [releaseppc/client/tr_surface.o] Error 1
make[1]: *** [build_release] Error 2
make: *** [release] Error 2
Comment 1 Tim Angus 2005-12-06 13:18:00 EST

*** This bug has been marked as a duplicate of 2529 ***
Comment 2 Ryan C. Gordon 2007-05-21 11:24:42 EDT
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.

--ryan.