[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha-dev
Subject:    [Linux-ha-dev] crm/common/utils.c compile error
From:       Guochun Shi <gshi () ncsa ! uiuc ! edu>
Date:       2005-01-31 22:26:23
Message-ID: 5.1.0.14.2.20050131162423.00ae4e00 () pop ! ncsa ! uiuc ! edu
[Download RAW message or body]

gcc -DHAVE_CONFIG_H -I. -I. -I../../linux-ha -I../../include -I../../include -I../../include -I..
/../libltdl -I../../libltdl -I../../linux-ha -I../../linux-ha -I../.. -I../.. -I/usr/include/glib
-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -O2 -Wall -Wmissing-prototypes -Wmissi
ng-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wba
d-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonlite
ral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 -g -O2 -Wall -Wmissing-prototypes -Wmissin
g-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad
-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliter
al -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c
 utils.c  -fPIC -DPIC -o .libs/utils.lo
utils.c: In function `do_crm_log':
utils.c:293: warning: implicit declaration of function `vasprintf'
make: *** [utils.lo] Error 1


It looks like it needs this definition (man vasprintf):

Index: utils.c
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/crm/common/utils.c,v
retrieving revision 1.21
diff -u -1 -r1.21 utils.c
--- utils.c     27 Jan 2005 08:55:31 -0000      1.21
+++ utils.c     31 Jan 2005 22:25:22 -0000
@@ -18,2 +18,3 @@
  */
+#define _GNU_SOURCE
 #include <sys/param.h>



-Guochun

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic