Changes between Initial Version and Version 7 of Ticket #3061


Ignore:
Timestamp:
Mar 24, 2016, 5:07:21 PM (8 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3061

    • Property Status changed from new to closed
    • Property Cc minskim@… added
    • Property Summary changed from xterm fails to compile on Tiger to BUG: xterm fails to compile on Tiger
    • Property Owner changed from darwinports-bugs@… to pesco@…
    • Property Resolution changed from to fixed
    • Property Port xterm added
  • Ticket #3061 – Description

    initial v7  
    11I tried to compile (and install) the xterm package on Tiger (OS X 10.4).  During
    22compilation, 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
    115./main.c: In function 'spawn':
    126./main.c:3760: error: too many arguments to function 'setpgrp'
    137./main.c:3762: error: too many arguments to function 'setpgrp'
    148make: *** [main.o] Error 1
     9}}}
    1510
    16 Line 3760 is:  setpgrp(0, 0);
    17 Line 3762 is:  setpgrp(0, pgrp);
     11Line 3760 is:  `setpgrp(0, 0);`\\
     12Line 3762 is:  `setpgrp(0, pgrp);`
    1813
    1914Looking at what the preprocessor generated, it looks like this function is
    2015getting defined in /usr/include/unistd.h in an ifdef:
    2116
     17{{{
    2218#if __DARWIN_UNIX03
    2319pid_t    setpgrp(void) __DARWIN_ALIAS(setpgrp);
     
    2521int      setpgrp(pid_t pid, pid_t pgrp);        /* obsoleted by setpgid() */
    2622#endif /* __DARWIN_UNIX03 */
     23}}}
    2724
    2825I 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_UNIX03 and I don't know enough
     26`__DARWIN_UNIX03`, setpgrp can either take one argument or two arguments.
     27However, I am not sure what is setting `__DARWIN_UNIX03` and I don't know enough
    3128about gcc to get it to tell me this information.