I try to port a scientific software to MacOSX, and I've trouble to compile it. The compilation crashes with the following message:

Ordinateur-de-Sebastien:~/Developpement/gildas/kernel/lib/sic bastien$ make
(...)
gcc -pipe -c -O -I/usr/include -I/usr/X11R6/include -Wall getcar.c
In file included from getcar.c:21:
semaphore.h: In function `whichproc':
semaphore.h:146: warning: control reaches end of non-void function
getcar.c: In function `search_clients':
getcar.c:165: error: too few arguments to function `setpgrp'
getcar.c: In function `exit_clean':
getcar.c:301: error: `SIGCLD' undeclared (first use in this function)
getcar.c:301: error: (Each undeclared identifier is reported only once
getcar.c:301: error: for each function it appears in.)
getcar.c:303: warning: implicit declaration of function `waitpid'
getcar.c: In function `launch_gtv_motif':
getcar.c:365: error: `SIGCLD' undeclared (first use in this function)
getcar.c:385: warning: implicit declaration of function `sic_ctrans'
getcar.c:399: warning: int format, long unsigned int arg (arg 3)
getcar.c:400: warning: int format, long unsigned int arg (arg 3)
getcar.c:412: warning: char format, different type arg (arg 3)
getcar.c:413: warning: char format, different type arg (arg 2)
getcar.c:415: warning: char format, different type arg (arg 3)
getcar.c:416: warning: char format, different type arg (arg 2)
getcar.c:418: warning: char format, different type arg (arg 3)
getcar.c:419: warning: char format, different type arg (arg 2)
getcar.c:333: warning: unused variable `np'
getcar.c: In function `launch_gtv_xwindow':
getcar.c:439: warning: unused variable `ret'
getcar.c: In function `xgag_detach':
getcar.c:669: warning: long int format, int32_t arg (arg 5)
getcar.c:669: warning: long int format, int32_t arg (arg 6)
getcar.c: In function `xgag_end_detach':
getcar.c:766: error: `SIGCLD' undeclared (first use in this function)
getcar.c: In function `kbd_line':
getcar.c:873: warning: unused variable `nchar'
getcar.c:873: warning: unused variable `error'
getcar.c: In function `set_termio':
getcar.c:1247: error: `IUCLC' undeclared (first use in this function)
getcar.c:1249: error: `ONOCR' undeclared (first use in this function)
/usr/include/stdio.h: At top level:
semaphore.h:31: warning: `VALUE0' defined but not used
getcar.c:89: warning: `keymem' defined but not used
Ordinateur-de-Sebastien:~/Developpement/gildas/kernel/lib/sic bastien$


The problems seems to be related to the header file semaphore.h. Is it a known problem ?

Thanks for help,
Sébastien



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to