#5 Doesn't build on OS X 10.6.6 (Snow Leopard)

closed-fixed
Simon Wright
None
5
2011-03-30
2011-03-30
Jerry Bauck
No

My attempt to build this on OS X 10.6.6 has failed.

As instructed at http://12000.org/my_notes/ada/c2ada_port/index.htm, I set
GPERF = /usr/bin/gperf
PYTHON = /usr/bin/python
PYTHON_LIB = python2.6.dylib
PYTHON_INCLUDE = /usr/include/python2.6
HERE = /Applications/Programming/Ada_Things/c2ada/c2ada_svn/c2ada/trunk

The first attempt resulted in
<snip>
gcc -g -Wall -Wimplicit -Wreturn-type -MMD -trigraphs -DDEBUG -DHAVE_CONFIG_H -I/usr/include/python2.6 -DPPATH=\"/Applications/Programming/Ada_Things/c2ada/c2ada_svn/c2ada/trunk:/usr/bin/python/Lib\" -DLINUX -c -o errors.o errors.c
errors.c: In function 'unix_error':
errors.c:139: error: conflicting type qualifiers for 'sys_nerr'
/usr/include/stdio.h:277: error: previous declaration of 'sys_nerr' was here
errors.c:139: warning: unused variable 'sys_nerr'
make: *** [errors.o] Error 1

I commented out the line errors.c:139 and tried again, resulting in lots of warnings and then
<snip>
gen_macros.c:1099: error: 'loc1' undeclared (first use in this function)
gen_macros.c:1099: error: (Each undeclared identifier is reported only once
gen_macros.c:1099: error: for each function it appears in.)
gen_macros.c:1100: error: 'loc2' undeclared (first use in this function)
gen_macros.c:1132: warning: incompatible implicit declaration of built-in function 'malloc'
gen_macros.c: In function 'grok_coercion':
gen_macros.c:1165: error: 'loc2' undeclared (first use in this function)
gen_macros.c:1214: error: 'loc1' undeclared (first use in this function)
make: *** [gen_macros.o] Error 1

I don't know how to fix these declaration problems. (Why do they appear on my system and not on other systems?)

I'll attach the two build outputs in their entirety as a zip file.

Discussion

  • Jerry Bauck
    Jerry Bauck
    2011-03-30

    Two text files of the build attempts described elsewhere in this bug report

     
    Attachments
  • Simon Wright
    Simon Wright
    2011-03-30

    This is caused by building from trunk/ rather than branches/portability/. Time to merge back, I think!

     
  • Simon Wright
    Simon Wright
    2011-03-30

    • assigned_to: nobody --> simonjwright
     
  • Simon Wright
    Simon Wright
    2011-03-30

    • status: open --> closed-fixed
     
  • Simon Wright
    Simon Wright
    2011-03-30

    Portability branch merged back into trunk. Builds OK on Snow Leopard/XCode 3.2.6 (Python 2.6).