#12877 closed defect (fixed)
nspr fails to build with Leopard
Reported by: | rtiainen macosforge@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.2 |
Keywords: | Cc: | rhwood@…, openmaintainer@… | |
Port: |
Description
nspr fails to build with Mac OS X 10.5 build 9A559, as follows:
---> Fetching nspr ---> Verifying checksum(s) for nspr ---> Extracting nspr ---> Applying patches to nspr ---> Configuring nspr ---> Building nspr with target all Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_nspr/work/nspr-4.6.6/mozilla/nsprpub && make" returned error 2 Command output: gcc -o prlog.o -c -I/opt/local/include -O2 -pipe -Wmost -fno-common -no-cpp-precomp -pthread -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -Di386=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private prlog.c gcc -o prmmap.o -c -I/opt/local/include -O2 -pipe -Wmost -fno-common -no-cpp-precomp -pthread -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -Di386=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private prmmap.c gcc -o prpolevt.o -c -I/opt/local/include -O2 -pipe -Wmost -fno-common -no-cpp-precomp -pthread -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -Di386=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private prpolevt.c gcc -o prprf.o -c -I/opt/local/include -O2 -pipe -Wmost -fno-common -no-cpp-precomp -pthread -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -Di386=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private prprf.c prprf.c: In function 'dosprintf': prprf.c:693: warning: 'nap' may be used uninitialized in this function gcc -o prscanf.o -c -I/opt/local/include -O2 -pipe -Wmost -fno-common -no-cpp-precomp -pthread -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -Di386=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private prscanf.c prscanf.c: In function 'PR_sscanf': prscanf.c:342: warning: 'ch' may be used uninitialized in this function prscanf.c:232: warning: 'ch' may be used uninitialized in this function gcc -o prstdio.o -c -I/opt/local/include -O2 -pipe -Wmost -fno-common -no-cpp-precomp -pthread -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -Di386=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private prstdio.c cd linking; make export gcc -o prlink.o -c -I/opt/local/include -O2 -pipe -Wmost -fno-common -no-cpp-precomp -pthread -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -Di386=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I../../../dist/include/nspr -I../../../pr/include -I../../../pr/include/private -I/Developer/Headers/FlatCarbon prlink.c In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:21, from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20, from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20, from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21, from /Developer/Headers/FlatCarbon/CodeFragments.h:1, from prlink.c:48: /usr/include/signal.h:84: error: syntax error before numeric constant prlink.c: In function 'pr_LoadViaCFM': prlink.c:701: warning: 'ResolveAliasFile' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Aliases.h:1035) prlink.c: In function 'pr_FindSymbolInLib': prlink.c:1400: warning: 'c2pstrcpy' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextUtils.h:578) prlink.c: In function 'PR_GetLibraryFilePathname': prlink.c:1629: warning: assignment discards qualifiers from pointer target type make[3]: *** [prlink.o] Error 1 make[2]: *** [export] Error 2 make[1]: *** [export] Error 2 make: *** [export] Error 2 Error: Status 1 encountered during processing.
Attachments (1)
Change History (6)
comment:1 Changed 17 years ago by nox@…
Milestone: | → Port Bugs |
---|
comment:2 Changed 17 years ago by rtiainen macosforge@…
Changed 17 years ago by niw
Attachment: | nspr-4.6.1-pthreadkill.patch added |
---|
the patch for nspr _pth.h
comment:3 Changed 17 years ago by niw@…
I've attach the patch to fix this problem. simply remove the conflict definition of pthread_kill
comment:4 Changed 17 years ago by rhwood@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in changeset:30493
Note: See
TracTickets for help on using
tickets.
Workaround: The compiler complains about line 84 in /usr/include/signal.h above. Commenting out this line from the include file allows nspr to compile; probably there is a clash with pthread_t definition in system include files and nspr sources somewhere.