#69116 closed defect (fixed)

nss build failure on 10.5 leopard

Reported by: rmottola (Riccardo) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard Cc:
Port: nss

Description

I get this build failure for 3.96.1_0 on intel 32bit

/opt/local/bin/clang-mp-11 -Os -std=c99 -arch i386 -o Output.OBJD/Darwin_SINGLE_SHLIB/sysrand.o -c -std=c99 -Os -fPIC -Dppc -fno-common -pipe -DDARWIN -DHAVE_STRERROR -DHAVE_BSD_FLOCK  -Wall -Wshadow -Qunused-arguments -Wno-parentheses-equality -Wno-array-bounds -Wno-unevaluated-expression -DNSS_NO_GCC48 -DXP_UNIX -DSHLIB_SUFFIX=\"dylib\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -DNSS_DISABLE_AVX2 -DNSS_DISABLE_SSE3 -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DNSS_X86_OR_X64 -DNSS_X86 -DUSE_HW_SHA2 -DMP_USE_UINT_DIGIT -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE -DMP_ASSEMBLY_DIV_2DX1D -DKRML_VERIFIED_UINT128 -DMP_API_COMPATIBLE -I/opt/local/include/nspr -I../../../dist/Output.OBJD/include -I../../../dist/public/nss -I../../../dist/private/nss -Impi -Iecl -Iverified -Iverified/internal -Iverified/karamel/include -Iverified/karamel/krmllib/dist/minimal -Ideprecated  sysrand.c
In file included from sysrand.c:14:
./unix_rand.c:597:6: error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if !TARGET_OS_IPHONE
     ^
./unix_rand.c:610:5: error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_IPHONE
    ^
2 errors generated.
make[4]: *** [Output.OBJD/Darwin_SINGLE_SHLIB/sysrand.o] Error 1

Change History (2)

comment:1 Changed 10 months ago by kencu (Ken)

most of those defines have been added to legacysupport...

if there are any new ones to add, they are pretty easy to do too.

comment:2 Changed 10 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In c3497fe523f1b185d51b2013a12883aafdec7e0e/macports-ports (master):

nss: check if TARGET_OS_IPHONE is defined

Closes: #69116

Note: See TracTickets for help on using tickets.