bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with __USE_XOPEN


From: Keisuke Nishida
Subject: Problem with __USE_XOPEN
Date: Fri, 09 Mar 2001 18:52:44 -0500
User-agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.99 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

The resent change in posix.c, which defines __USE_XOPEN, causes
the following error on my machine (RH7.0 + gcc-2.96 + glibc-2.2)

gcc -DHAVE_CONFIG_H -I.. -I./.. -I../libltdl -g -O2 -Wall -Wmissing-prototypes 
-Wp,-MD,.deps/posix.pp -c posix.c  -fPIC -DPIC -o .libs/posix.lo
In file included from posix.c:95:
/usr/include/sys/wait.h:113: parse error before `__stat_loc'
/usr/include/sys/wait.h:114: parse error before `__stat_loc'
In file included from posix.c:95:
/usr/include/sys/wait.h:161: parse error before `__stat_loc'
/usr/include/sys/wait.h:171: parse error before `__WAIT_STATUS'
posix.c: In function `scm_status_term_sig':
posix.c:503: warning: implicit declaration of function `WIFSIGNALED'
posix.c:504: warning: implicit declaration of function `WTERMSIG'
posix.c: In function `scm_status_stop_sig':
posix.c:521: warning: implicit declaration of function `WIFSTOPPED'
posix.c:522: warning: implicit declaration of function `WSTOPSIG'
posix.c: In function `scm_cuserid':
posix.c:1346: warning: implicit declaration of function `cuserid'
posix.c:1346: warning: assignment makes pointer from integer without a cast
make: *** [posix.lo] Error 1

I can avoid this error by removing the following line

  /* GNU/Linux libc requires __USE_XOPEN or cuserid() is not defined.  */
  #define __USE_XOPEN

and adding the following instead:

  extern char *cuserid (char *);

What would be the best solution?

Kei



reply via email to

[Prev in Thread] Current Thread [Next in Thread]