[MacPorts] #30076: Build fails on Tiger/PowerPC (error: 'MAP_ANON' undeclared) due to the configure.cppflags-append line

MacPorts noreply at macports.org
Thu Jul 7 16:56:46 PDT 2011


#30076: Build fails on Tiger/PowerPC (error: 'MAP_ANON' undeclared) due to the
configure.cppflags-append line
---------------------------------+------------------------------------------
 Reporter:  vinc17@…             |       Owner:  waqar@…           
     Type:  defect               |      Status:  new               
 Priority:  Normal               |   Milestone:                    
Component:  ports                |     Version:  1.9.2             
 Keywords:                       |        Port:  boehmgc           
---------------------------------+------------------------------------------
 The build fails on Tiger with the error:
 {{{
  /usr/bin/gcc-4.0 -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\"
 -DPACKAGE_VERSION=\"7.1\" "-DPACKAGE_STRING=\"gc 7.1\""
 -DPACKAGE_BUGREPORT=\"Hans.Boehm at hp.com\" -DGC_VERSION_MAJOR=7
 -DGC_VERSION_MINOR=1 -DPACKAGE=\"gc\" -DVERSION=\"7.1\"
 -DGC_DARWIN_THREADS=1 -DTHREAD_LOCAL_ALLOC=1 -DHAS_PPC_THREAD_STATE_R0=1
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DGC_GCJ_SUPPORT=1
 -DJAVA_FINALIZATION=1 -DATOMIC_UNCOLLECTABLE=1 -I./include
 -I/opt/local/include -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE -fexceptions
 -I libatomic_ops/src -pipe -O2 -arch ppc -MT os_dep.lo -MD -MP -MF
 .deps/os_dep.Tpo -c os_dep.c  -fno-common -DPIC -o .libs/os_dep.o
 os_dep.c: In function 'GC_unix_mmap_get_mem':
 os_dep.c:1780: error: 'MAP_ANON' undeclared (first use in this function)
 os_dep.c:1780: error: (Each undeclared identifier is reported only once
 os_dep.c:1780: error: for each function it appears in.)
 os_dep.c: In function 'GC_read_dirty':
 os_dep.c:3063: warning: incompatible implicit declaration of built-in
 function 'bcopy'
 os_dep.c:3065: warning: incompatible implicit declaration of built-in
 function 'bzero'
 }}}
 The problem seems to come from missing header inclusion. Version 7.1_0 was
 already installed, and the only significant change (excluding x86, as I
 have a PowerPC machine) is the new line:
 {{{
 configure.cppflags-append -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE
 }}}
 in Portfile. If I comment out this line, the build succeeds.

-- 
Ticket URL: <https://trac.macports.org/ticket/30076>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list