Changes between Initial Version and Version 7 of Ticket #3061
- Timestamp:
- Mar 24, 2016, 5:07:21 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3061
-
Property
Status
changed from
new
toclosed
- Property Cc minskim@… added
-
Property
Summary
changed from
xterm fails to compile on Tiger
toBUG: xterm fails to compile on Tiger
- Property Owner changed from darwinports-bugs@… to pesco@…
-
Property
Resolution
changed from
to
fixed
- Property Port xterm added
-
Property
Status
changed from
-
Ticket #3061 – Description
initial v7 1 1 I tried to compile (and install) the xterm package on Tiger (OS X 10.4). During 2 2 compilation, I get the following error: 3 gcc -I. -I. -DHAVE_CONFIG_H -I/usr/X11R6/include 4 -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include -I. 5 -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 6 -I./exports/include/X11 -I/usr/X11R6/include -D__DARWIN__ -DNO_ALLOCA 7 -DCSRG_BASED -DXFREE86_FT2 -DUTMP -DOSMAJORVERSION=8 -DOSMINORVERSION=0 8 -I/usr/X11R6/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 9 -DPROJECTROOT='"/usr/X11R6"' -D__vendorversion__='"Version 4.4.0 XFree86"' -g 10 -O2 -c ./main.c 3 {{{ 4 gcc -I. -I. -DHAVE_CONFIG_H -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include -I. -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I./exports/include/X11 -I/usr/X11R6/include -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DXFREE86_FT2 -DUTMP -DOSMAJORVERSION=8 -DOSMINORVERSION=0 -I/usr/X11R6/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DPROJECTROOT='"/usr/X11R6"' -D__vendorversion__='"Version 4.4.0 XFree86"' -g -O2 -c ./main.c 11 5 ./main.c: In function 'spawn': 12 6 ./main.c:3760: error: too many arguments to function 'setpgrp' 13 7 ./main.c:3762: error: too many arguments to function 'setpgrp' 14 8 make: *** [main.o] Error 1 9 }}} 15 10 16 Line 3760 is: setpgrp(0, 0);17 Line 3762 is: setpgrp(0, pgrp);11 Line 3760 is: `setpgrp(0, 0);`\\ 12 Line 3762 is: `setpgrp(0, pgrp);` 18 13 19 14 Looking at what the preprocessor generated, it looks like this function is 20 15 getting defined in /usr/include/unistd.h in an ifdef: 21 16 17 {{{ 22 18 #if __DARWIN_UNIX03 23 19 pid_t setpgrp(void) __DARWIN_ALIAS(setpgrp); … … 25 21 int setpgrp(pid_t pid, pid_t pgrp); /* obsoleted by setpgid() */ 26 22 #endif /* __DARWIN_UNIX03 */ 23 }}} 27 24 28 25 I am not a C expert, but it seems that depending on the value of 29 __DARWIN_UNIX03, setpgrp can either take one argument or two arguments.30 However, I am not sure what is setting __DARWIN_UNIX03and I don't know enough26 `__DARWIN_UNIX03`, setpgrp can either take one argument or two arguments. 27 However, I am not sure what is setting `__DARWIN_UNIX03` and I don't know enough 31 28 about gcc to get it to tell me this information.