Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#41519 closed defect (fixed)

Port 2.2.99 cannot be built on PPC Mac OS X 10.4.11 (Tiger) because of missing spawn.h C header file

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: base Version: 2.2.99
Keywords: tiger Cc: cooljeanius (Eric Gallager)
Port: port

Description

cc -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch i386 -arch ppc -DHAVE_CONFIG_H -I.. -I.  -I"/usr/include"  -c -o proc.o proc.c
proc.c:45:19: error: spawn.h: No such file or directory
proc.c:45:19: error: spawn.h: No such file or directory
proc.c:293: warning: type defaults to ‘int’ in declaration of ‘posix_spawn_file_actions_t’
proc.c:293: error: parse error before ‘*’ token
proc.c:302: warning: type defaults to ‘int’ in declaration of ‘posix_spawn_file_actions_t’
proc.c:302: error: parse error before ‘*’ token
proc.c: In function ‘posix_spawn’:
proc.c:309: error: ‘path’ undeclared (first use in this function)
proc.c:309: error: (Each undeclared identifier is reported only once
proc.c:309: error: for each function it appears in.)
proc.c:317: error: ‘attrp’ undeclared (first use in this function)
proc.c:318: warning: implicit declaration of function ‘posix_spawnattr_getflags’
proc.c:319: error: ‘POSIX_SPAWN_SETEXEC’ undeclared (first use in this function)
proc.c:343: error: ‘envp’ undeclared (first use in this function)
proc.c:344: error: ‘pid’ undeclared (first use in this function)
proc.c:344: error: ‘file_actions’ undeclared (first use in this function)
proc.c:344: error: ‘argv’ undeclared (first use in this function)
proc.c:293: warning: type defaults to ‘int’ in declaration of ‘posix_spawn_file_actions_t’
proc.c:293: error: parse error before ‘*’ token
proc.c:302: warning: type defaults to ‘int’ in declaration of ‘posix_spawn_file_actions_t’
proc.c:302: error: parse error before ‘*’ token
proc.c: In function ‘posix_spawn’:
proc.c:309: error: ‘path’ undeclared (first use in this function)
proc.c:309: error: (Each undeclared identifier is reported only once
proc.c:309: error: for each function it appears in.)
proc.c:317: error: ‘attrp’ undeclared (first use in this function)
proc.c:318: warning: implicit declaration of function ‘posix_spawnattr_getflags’
proc.c:319: error: ‘POSIX_SPAWN_SETEXEC’ undeclared (first use in this function)
proc.c:343: error: ‘envp’ undeclared (first use in this function)
proc.c:344: error: ‘pid’ undeclared (first use in this function)
proc.c:344: error: ‘file_actions’ undeclared (first use in this function)
proc.c:344: error: ‘argv’ undeclared (first use in this function)
lipo: can't figure out the architecture type of: /var/tmp//cc6rtmmO.out
make[3]: *** [proc.o] Error 1
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 2

The file really does not exist on Tiger. I can find it on Leopard. Tiger has something in Python plus these:

/opt/local/include/glib-2.0/glib/gspawn.h
/opt/local/include/gtk-2.0/gdk/gdkspawn.h

Change History (5)

comment:1 Changed 10 years ago by neverpanic (Clemens Lang)

Cc: cal@… removed
Keywords: tiger added
Owner: changed from macports-tickets@… to cal@…
Status: newassigned

Fixed in r113821, r113822, r113823.

comment:2 Changed 10 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

comment:3 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 10 years ago by neverpanic (Clemens Lang)

Milestone: MacPorts Future

comment:5 Changed 10 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.