bug-guile
[Top][All Lists]
Advanced

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

No declaration for cuserid


From: Neil Jerram
Subject: No declaration for cuserid
Date: Wed, 19 Sep 2007 22:31:24 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Neil Jerram <address@hidden> writes:

> Compiling current CVS on Debian Etch:
>
> ...
> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../lib -I../lib -pthread -g -O2 
> -Wall -Wmissing-prototypes -Werror -MT libguile_la-srfi-14.lo -MD -MP -MF 
> .deps/libguile_la-srfi-14.Tpo -c srfi-14.c  -fPIC -DPIC -o 
> .libs/libguile_la-srfi-14.o
> cc1: warnings being treated as errors
> srfi-14.c: In function 'scm_srfi_14_compute_char_sets':
> srfi-14.c:1532: warning: implicit declaration of function 'isblank'

And a similar problem for cuserid() in posix.c:

 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../lib -I../lib -g -O2 -Wall 
-Wmissing-prototypes -Werror -MT posix.lo -MD -MP -MF .deps/posix.Tpo -c 
posix.c  -fPIC -DPIC -o .libs/posix.o
cc1: warnings being treated as errors
posix.c: In function 'scm_cuserid':
posix.c:1705: warning: implicit declaration of function 'cuserid'
posix.c:1705: warning: assignment makes pointer from integer without a cast
make[3]: *** [posix.lo] Error 1

--- posix.c     11 Sep 2007 00:46:15 -0000      1.167
+++ posix.c     19 Sep 2007 21:30:36 -0000
@@ -15,8 +15,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-
 
+#define _GNU_SOURCE
+
 #if HAVE_CONFIG_H
 #  include <config.h>
 #endif


Regards,
        Neil





reply via email to

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