miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

libnatpmp-20140401-r1 + miniupnpc-1.9.20150427 header clash

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
blueness



Joined: 09 Jan 2012
Posts: 4

PostPosted: Sun May 24, 2015 12:08 pm    Post subject: libnatpmp-20140401-r1 + miniupnpc-1.9.20150427 header clash Reply with quote

<declspec.h> from libnatpmp-20140401-r1 clashes with <miniupnpc/declspec.h> from miniupnpc-1.9.20150427. Both use DECLSPEC_H_INCLUDED and yet one defines LIBSPEC while the other defines MINIUPNP_LIBSPEC for the same compiler attribute. In applications like tor or transmission which use both, this is a problem.
Back to top
View user's profile Send private message
blueness



Joined: 09 Jan 2012
Posts: 4

PostPosted: Sun May 24, 2015 12:08 pm    Post subject: Re: libnatpmp-20140401-r1 + miniupnpc-1.9.20150427 header cl Reply with quote

The issue is described in detail in

https://bugs.gentoo.org/show_bug.cgi?id=548148

See comment #18 in particular.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue May 26, 2015 8:09 am    Post subject: Reply with quote

I don't know how to fix this right.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
martyk



Joined: 06 Jun 2015
Posts: 3
Location: Australia

PostPosted: Sat Jun 06, 2015 1:58 pm    Post subject: Reply with quote

Are you still active? (Cheating on my first post so I can post a topic)
Back to top
View user's profile Send private message
blueness



Joined: 09 Jan 2012
Posts: 4

PostPosted: Wed Jun 10, 2015 1:34 pm    Post subject: Reply with quote

martyk wrote:
Are you still active? (Cheating on my first post so I can post a topic)


please don't steal a thread.
Back to top
View user's profile Send private message
blueness



Joined: 09 Jan 2012
Posts: 4

PostPosted: Wed Jun 10, 2015 1:36 pm    Post subject: Reply with quote

miniupnp wrote:
I don't know how to fix this right.


What about changing the names of the headers and using include guards.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.