Hi all,
As noted in the subject, build of root_v5.24.00 fails on linux/alpha:
...
gcc -pipe -Wall -fPIC -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -Icint/cint/inc -Icint/cint/src -Icint/cint/src/dict -I. -DG__SYSTYPES_H -I. -Icint/cint/inc -o cint/cint/lib/G__c_posix.o -c cint/cint/lib/G__c_posix.c
In file included from ./cint/cint/lib/posix/exten.h:16,
from ./cint/cint/lib/G__c_posix.h:26,
from cint/cint/lib/G__c_posix.c:4:
./cint/cint/lib/posix/posix.h:287: error: conflicting types for ‘setpgrp’
/usr/include/unistd.h:617: error: previous declaration of ‘setpgrp’ was here
make: *** [cint/cint/lib/G__c_posix.o] Error 1
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx
I’ve tried on two alpha machines with almost the same spec (164LX 533MHz) but running different distro., Gentoo 2008.0 and Debian 5.0.3, and the build fails at the same place shown above.
Gentoo:
[ul]Configured as ./configure
-> ‘linuxalphagcc’ was selected
Linux genalpha 2.6.30-gentoo-r6 #1 SMP Sun Sep 20 15:48:20 JST 2009 alpha EV56 EB164 GNU/Linux
- sys-libs/glibc: 2.9_p20081201-r3
gcc (Gentoo 4.3.2-r3 p1.6, pie-10.1.5) 4.3.2[/ul]
Debian:
[ul]Configured as ./configure linuxalphagcc
Linux debalpha 2.6.26-2-alpha-generic #1 Wed Aug 19 22:14:00 UTC 2009 alpha GNU/Linux
glibc-2.7-1
gcc (GCC) 4.2.4 (Debian 4.2.4-6)[/ul]
./cint/cint/lib/posix/posix.h:287
286 #elif defined(G__FBSD)||defined(__FreeBSD__)||defined(G__OBSD)||defined(__OpenBSD__ 286 )||((defined(G__alpha)||defined(__alpha))&&(defined(G__GNUC) || defined(G__LINUX) | 286 | defined(__linux__)))||((defined(G__alpha)||defined(__alpha))&&defined(G__GNUC))
287 extern int setpgrp(pid_t _pid, pid_t _pgrp);
288 #elif defined(G__KCC) || defined(__KCC)
/usr/include/unistd.h:617
597 /* Set the process group ID of the process matching PID to PGID.
598 If PID is zero, the current process's process group ID is set.
599 If PGID is zero, the process ID of the process is used. */
600 extern int setpgid (__pid_t __pid, __pid_t __pgid) __THROW;
601
602 #if defined __USE_SVID || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
603 /* Both System V and BSD have `setpgrp' functions, but with different
604 calling conventions. The BSD function is the same as POSIX.1 `setpgid'
605 (above). The System V function takes no arguments and puts the calling
606 process in its on group like `setpgid (0, 0)'.
607
608 New programs should always use `setpgid' instead.
609
610 The default in GNU is to provide the System V function. The BSD
611 function is available under -D_BSD_SOURCE. */
612
613 # ifndef __FAVOR_BSD
614
615 /* Set the process group ID of the calling process to its own PID.
616 This is exactly the same as `setpgid (0, 0)'. */
617 extern int setpgrp (void) __THROW;
618
619 # else
620
621 /* Another name for `setpgid' (above). */
622 # ifdef __REDIRECT_NTH
623 extern int __REDIRECT_NTH (setpgrp, (__pid_t __pid, __pid_t __pgrp), setpgid);
624 # else
625 # define setpgrp setpgid
626 # endif
627
628 # endif /* Favor BSD. */
629 #endif /* Use SVID or BSD. */
Any clue?
Thanks in advance…
Yours,
Kazuyoshi