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 

Cannot compile under FreeBSD 7

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
Gulfstream



Joined: 10 Aug 2010
Posts: 2

PostPosted: Tue Aug 10, 2010 6:26 am    Post subject: Cannot compile under FreeBSD 7 Reply with quote

Hi,

I'm trying to give miniupnpd a shot on FreeBSD, however I can't compile it properly.

Here is what I get :

pf/obsdrdr.c: In function 'add_redirect_rule2':
pf/obsdrdr.c:210: error: 'tag' undeclared (first use in this function)
pf/obsdrdr.c:210: error: (Each undeclared identifier is reported only once
pf/obsdrdr.c:210: error: for each function it appears in.)
*** Error code 1


Any clues ?

Thanks
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Aug 10, 2010 9:20 pm    Post subject: Reply with quote

run ./genconfig.sh and tell me the output.
It's like it is trying to compile with pf code but using IPF config somewhere...
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Gulfstream



Joined: 10 Aug 2010
Posts: 2

PostPosted: Wed Aug 11, 2010 4:41 am    Post subject: Genconfig Reply with quote

This is what I get when running genconfig :

[root@us2 /usr/ports/net/miniupnpd/work/miniupnpd-1.4.20100511]# ./genconfig.sh
Using ipf
Configuring compilation for [FreeBSD] [7.2-RELEASE] with [ipf] firewall software.
Please edit config.h for more compilation options.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Aug 11, 2010 3:50 pm    Post subject: Reply with quote

just a question... are you using IPF or PF (or IPFW ?)
currently only IPF and PF are supported

you can correct the config.h file if genconfig.sh was wrong detecting your packet filtering software.
If make is wrong, you should edit the Makefile to force FWNAME to the right value
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Xylifrost
Guest





PostPosted: Mon Jan 17, 2011 5:14 am    Post subject: Cannot compile under FreeBSD 7 Reply with quote

I cannot compile Context Free under my FreeBSD box. Using gmake it gives :

--
fredn:/tmp/ContextFree> gmake
g -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/cfdg.o src-common/cfdg.cpp
src-common/cfdg.cpp: In method Renderer::Renderer:
src-common/cfdg.cpp:241: implicit declaration of function int unlink...
gmake: objs/cfdg.o Erreur 1
--

So i has #include <unistd.h> in cfdg.cpp. And now :

--
fredn:/tmp/ContextFree> gmake
g -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/cfdg.o src-common/cfdg.cpp
g -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/yglue.o src-common/yglue.cpp
src-common/yglue.cpp:21: FILE was not declared in this scope
src-common/yglue.cpp:21: new_file was not declared in this scope
src-common/yglue.cpp:21: variable or field yyrestart declared void
src-common/yglue.cpp: In function void yg_Reset...:
src-common/yglue.cpp:106: yyrestart cannot be used as a function
gmake: objs/yglue.o Erreur 1
--

So before I dive into the code, has someone ever compiled under FreeBSD ?

Fred
Back to top
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Jan 17, 2011 8:50 am    Post subject: Re: Cannot compile under FreeBSD 7 Reply with quote

Xylifrost wrote:
I cannot compile Context Free under my FreeBSD box.
[...]

What is "Context Free" ?
I looks like you are on the wrong forum.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation 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.