[rrd-developers] it exposes too much ...

Florian Forster rrdtool at nospam.verplant.org
Tue Jun 10 17:42:32 CEST 2008


Hi Tobi,

On Tue, Jun 10, 2008 at 04:17:47PM +0200, Tobias Oetiker wrote:
> if you can send the patch in the next few hours we will manage to cram
> it into 1.3.0 still ...

ugh, that's a rough deadline ;) I made it though, but only gave this a
quick test:
-- 8< --
 octo at leeloo:/tmp/rrdtest $ gcc -I/tmp/rrdtool/include -L/tmp/rrdtool/lib -o foo foo.c -lrrd
 foo.c: In function `main':
 foo.c:5: error: `rrd_t' undeclared (first use in this function)
 foo.c:5: error: (Each undeclared identifier is reported only once
 foo.c:5: error: for each function it appears in.)
 foo.c:5: error: expected `;' before `buffer'
 foo.c:7: error: `buffer' undeclared (first use in this function)
 octo at leeloo:/tmp/rrdtest $ gcc -I/tmp/rrdtool/include -L/tmp/rrdtool/lib -DRRD_EXPORT_DEPRECATED -o foo foo.c -lrrd
 foo.c: In function `main':
 foo.c:7: warning: `rrd_init' is deprecated (declared at /tmp/rrdtool/include/rrd.h:330)
 foo.c:9: warning: `rrd_lock' is deprecated (declared at /tmp/rrdtool/include/rrd.h:352)
-- >8 --

Everything I changed is hidden within the #if, normal applications
should not notice the change at all. I didn't test RRDTool itself with
`-Werror' since there are a couple of unrelated warnings which would
terminate the build..

Let me know what you think. I have a date at 19:30 (GMT+1) and can fix
stuff till then ;)

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rrdtool-export_deprecated.patch
Type: text/x-diff
Size: 5393 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20080610/fea62231/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20080610/fea62231/attachment-0003.bin 


More information about the rrd-developers mailing list