Hi,

I tried to build this;
http://hg.linux-ha.org/dev/rev/84e6520764bf

but, compiler complains about "cl_free".

Making all in snmp_subagent
gmake[1]: Entering directory `/root/tmp/src/dev/snmp_subagent'
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include
-I../include -I../linux-ha -I../linux-ha -I../libltdl -I../libltdl
-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/libxml2 -g -O2  -Wall -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement
-Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast
-Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security
-Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror  -ggdb3
-funsigned-char -g -O2  -Wall -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith
-Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
-Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral
-Wno-long-long -Wno-strict-aliasing -Werror  -ggdb3 -funsigned-char -MT
hbagent.o -MD -MP -MF ".deps/hbagent.Tpo" -c -o hbagent.o hbagent.c; \
then mv -f ".deps/hbagent.Tpo" ".deps/hbagent.Po"; else rm -f
".deps/hbagent.Tpo"; exit 1; fi
hbagent.c: In function `init_heartbeat':
hbagent.c:582: warning: passing arg 1 of `cl_free' discards qualifiers from
pointer target type
gmake[1]: *** [hbagent.o] Error 1
gmake[1]: Leaving directory `/root/tmp/src/dev/snmp_subagent'
make: *** [all-recursive] Error 1

Is it possible to remove const modifier?

--- snmp_subagent/hbagent.c.org 2007-11-15 19:54:58.000000000 +0900
+++ snmp_subagent/hbagent.c     2007-11-15 19:55:03.000000000 +0900
@@ -558,7 +558,7 @@
 int
 init_heartbeat(void)
 {
-       const char * parameter;
+       char * parameter;
        hb = NULL;

        cl_log_set_entity("lha-snmpagent");


Best Regards,
Junko Ikeda



_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to