Jean-François Mertens wrote:
> On 13 Mar 2008, at 01:04, Alexander Hansen wrote:
> 
>> I got the following error (10.5.2) when I set Type: sys_nspr (no):
>>
>> ...
>> gcc -o unix.o -c      -pipe -Wmost -fno-common -pthread -Os -fPIC  -
>> UDEBUG  -DMOZILLA_CLIENT=1 -DNDEBUG=1 -
>> DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DXP_UNIX=1 -DDARWIN=1 -
>> DHAVE_BSD_FLOCK=1 -Dppc=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1  -
>> DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_PR_INET6 -
>> D_NSPR_BUILD_ -I/sw/src/fink.build/seamonkey-1.1.7-3.test/mozilla/ 
>> dist/
>> include/nspr -I../../../../pr/include -I../../../../pr/include/
>> private  unix.c
>> In file included from /sw/src/fink.build/seamonkey-1.1.7-3.test/
>> mozilla/dist/include/nspr/md/prosdep.h:100,
>>                   from ../../../../pr/include/private/primpl.h:78,
>>                   from unix.c:38:
>> /sw/src/fink.build/seamonkey-1.1.7-3.test/mozilla/dist/include/nspr/ 
>> md/
>> _darwin.h:72:1: warning: "_PR_INET6" redefined
>> <command line>:1:1: warning: this is the location of the previous
>> definition
>> In file included from unix.c:41:
>> /usr/include/signal.h:84: error: syntax error before numeric constant
>> unix.c: In function '_MD_unix_get_nonblocking_connect_error':
>> unix.c:3296: warning: pointer targets in passing argument 5 of
>> 'getsockopt' differ in signedness
>> make[6]: *** [unix.o] Error 1
>>
> At that place I get only :
> 
>> In file included from /sw/.bld/seamonkey-1.1.8-3/mozilla/dist/ 
>> include/nspr/md/prosdep.h:100,
>>                  from ../../../../pr/include/private/primpl.h:78,
>>                  from unix.c:38:
>> /sw/.bld/seamonkey-1.1.8-3/mozilla/dist/include/nspr/md/_darwin.h: 
>> 72:1: warning: "_PR_INET6" redefined
>> <command line>:1:1: warning: this is the location of the previous  
>> definition
>> unix.c: In function '_MD_unix_get_nonblocking_connect_error':
>> unix.c:3296: warning: pointer targets in passing argument 5 of  
>> 'getsockopt' differ in signedness
> 
> and my /usr/include/signal.h has as line 84 :
>      84  int     pthread_kill(pthread_t, int);
> 
> which seems irrelevant ..
> Could someone with a 10.5 system try to see what could be this  
> "syntax error before numeric constant"
> in /usr/include/signal.h  ?

Never mind.  Here's the patch chunk that fixes the signal.h:84 error on 
Leopard and didn't affect firefox2 on Tiger building.  Latest versions 
of firefox2 don't need that patch since the original bug was fixed, and 
I'm not sure where seamonkey1.1.8 fits into the whole mozilla/gecko tree 
branch structure, so it might still be needed there.  Don't know if this 
will take care of the other issues...

****
diff -ruN mozilla-orig/nsprpub/pr/include/md/_pth.h 
mozilla/nsprpub/pr/include/md/_pth.h
--- mozilla-orig/nsprpub/pr/include/md/_pth.h   2005-07-21 
14:22:53.000000000 -0400
+++ mozilla/nsprpub/pr/include/md/_pth.h        2007-12-10 13:18:36.000000000 
-0500
@@ -202,12 +202,15 @@
  #define PT_NO_SIGTIMEDWAIT
  #endif

+/* remove pthread_kill for Leopard */
+/* Unpatched dies at /usr/include/signal.h:84 */
+/* Bug 401813 */
  /*
   * These platforms don't have pthread_kill()
- */
  #if defined(DARWIN)
  #define pthread_kill(thread, sig) ENOSYS
  #endif
+*/

  #if defined(OSF1) || defined(VMS)
  #define PT_PRIO_MIN            PRI_OTHER_MIN
****

Hanspeter

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to