# Ruby.h and warning on redefined "PACKAGE\_NAME"

**URL:** <https://www.ruby-forum.com/t/ruby-h-and-warning-on-redefined-package-name/109874>\
**Category:** Ruby\
**Created:** [July 19, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/ruby-h-and-warning-on-redefined-package-name/109874 "2007-07-19T20:11:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliver](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@oliver](https://www.ruby-forum.com/u/oliver)\
**Post date:** [July 19, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/ruby-h-and-warning-on-redefined-package-name/109874/1 "2007-07-19T20:11:33Z")

</div>

hi,

if a C program have:

#include \<ruby.h\>

and autoconf’ed, which meaning it will generate another “config.h”,  
the compiler will report warning like:

/usr/lib/ruby/1.8/i486-linux/config.h:1:1: warning: “PACKAGE\_NAME”  
redefined

The reason being ruby.h include its config.h, and there is a empty  
PACKAGE\_NAME etc. defined there already.

Is there any way I can get rid of this warning?

thanks

oliver
