<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 28: header file names risk collision with other headers</title><link>https://sourceforge.net/p/openprinting/bugs/28/</link><description>Recent changes to 28: header file names risk collision with other headers</description><atom:link href="https://sourceforge.net/p/openprinting/bugs/28/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 30 Dec 2007 23:02:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/openprinting/bugs/28/feed.rss" rel="self" type="application/rss+xml"/><item><title>header file names risk collision with other headers</title><link>https://sourceforge.net/p/openprinting/bugs/28/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm experimenting with papi-1.0_beta on x86_64-sun-solaris2.10.&lt;/p&gt;
&lt;p&gt;When you "make install", papi's install procedure&lt;br /&gt;
installs headers named (among some less-problematic names)&lt;/p&gt;
&lt;p&gt;debug.h&lt;br /&gt;
http.h&lt;/p&gt;
&lt;p&gt;These are installed into the top level of the include directory (${prefix}/include).&lt;/p&gt;
&lt;p&gt;This strikes me as a very bad idea, because the header file names are very common (they could easily have the same name as other headers on the system).&lt;/p&gt;
&lt;p&gt;I think it would be much safer if the headers were&lt;br /&gt;
instead either:&lt;/p&gt;
&lt;p&gt;- named with papi in the name, i.e.&lt;/p&gt;
&lt;p&gt;papi-debug.h&lt;br /&gt;
papi-http.h&lt;br /&gt;
papi-http-private.h&lt;br /&gt;
papi-ipp.h&lt;/p&gt;
&lt;p&gt;etc.&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;- papi installed its headers into its own directory&lt;br /&gt;
under include, and any programs that want include&lt;br /&gt;
those headers should be modified to use&lt;/p&gt;
&lt;p&gt;#include &amp;lt;papi/debug.h&amp;gt;&lt;/p&gt;
&lt;p&gt;etc.&lt;/p&gt;
&lt;p&gt;instead of just&lt;/p&gt;
&lt;p&gt;#include &amp;lt;debug.h&amp;gt;&lt;/p&gt;
&lt;p&gt;The second option (a ${prefix}/include/papi directory&lt;br /&gt;
with the headers going in there) is probably the better option, since that's what most other open source projects do these days.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tim Mooney</dc:creator><pubDate>Sun, 30 Dec 2007 23:02:41 -0000</pubDate><guid>https://sourceforge.net7e4860b7ddd32ccf08da62a11479ac4afbf59044</guid></item></channel></rss>