[MacPorts] #50139: mesa @11.1 won't build on Mac OS X 10.6.8, Snow Leopard, because of use of strndup
MacPorts
noreply at macports.org
Sun Dec 27 14:53:43 PST 2015
#50139: mesa @11.1 won't build on Mac OS X 10.6.8, Snow Leopard, because of use of
strndup
------------------------------+--------------------------------
Reporter: Peter_Dyballa@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: mesa |
------------------------------+--------------------------------
Comment (by Peter_Dyballa@…):
On PPC Leopard, Mac OS X 10.5.8, the error is quite similar:
{{{
:info:build libtool: compile: /opt/local/bin/g++-apple-4.2
-DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\"
-DPACKAGE_VERSION=\"11.1.0\" "-DPACKAGE_STRING=\"Mesa 11.1.0\""
"-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\""
-DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"11.1.0\"
-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
-DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1
-DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1
-DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1
-DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1
-DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE_FUNC_ATTRIBUTE_CONST=1
-DHAVE_FUNC_ATTRIBUTE_FLATTEN=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1
-DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1
-DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_DLADDR=1
-DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1
-DHAVE_SHA1_IN_COMMONCRYPTO=1 -I. -I../../include -I../../src
-I../../src/mapi -I../../src/mesa/ -I../../src/gallium/include
-I../../src/gallium/auxiliary -I../../src/glsl/glcpp -I../../src/glsl/nir
-I../../src/gtest/include -I../../src/glsl/nir -D__STDC_LIMIT_MACROS
-DNDEBUG -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_DLOPEN
-DHAVE_SHA1 -DGLX_USE_APPLEGL -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_ALIAS_UNSUPPORTED -DBUILDING_MESA
-DMESA_EGL_NO_X11_HEADERS -fvisibility=hidden -Werror=pointer-arith -pipe
-Os -arch ppc -Wall -fno-strict-aliasing -fno-builtin-memcmp -MT linker.lo
-MD -MP -MF .deps/linker.Tpo -c linker.cpp -fno-common -DPIC -o
.libs/linker.o
:info:build linker.cpp: In function 'char* get_top_level_name(const
char*)':
:info:build linker.cpp:3479: error: 'strndup' was not declared in this
scope
:info:build linker.cpp: In function 'char* get_var_name(const char*)':
:info:build linker.cpp:3490: error: 'strndup' was not declared in this
scope
:info:build make[3]: *** [linker.lo] Error 1
:info:build make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_mports_trunk_dports_x11_mesa/mesa/work/mesa-11.1.0/src/glsl'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/50139#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list