View previous topic :: View next topic |
Author |
Message |
Gulfstream
Joined: 10 Aug 2010 Posts: 2
|
Posted: Tue Aug 10, 2010 6:26 am Post subject: Cannot compile under FreeBSD 7 |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Tue Aug 10, 2010 9:20 pm Post subject: |
|
|
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 |
|
|
Gulfstream
Joined: 10 Aug 2010 Posts: 2
|
Posted: Wed Aug 11, 2010 4:41 am Post subject: Genconfig |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Wed Aug 11, 2010 3:50 pm Post subject: |
|
|
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 |
|
|
Xylifrost Guest
|
Posted: Mon Jan 17, 2011 5:14 am Post subject: Cannot compile under FreeBSD 7 |
|
|
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
|
Posted: Mon Jan 17, 2011 8:50 am Post subject: Re: Cannot compile under FreeBSD 7 |
|
|
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 |
|
|
|