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 

Debian 5.0.1 Compile NOT Working - I need my XBOX Live...
Goto page 1, 2  Next
 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
2marshall8



Joined: 05 Jun 2009
Posts: 5

PostPosted: Fri Jun 05, 2009 11:56 pm    Post subject: Debian 5.0.1 Compile NOT Working - I need my XBOX Live... Reply with quote

My goal is to get xbox live working and I'm sure it won't work due to this UPNP issue. I've tried the linux-igd upnpd project and it doesn't seem to work and then I found miniupnpd and figured I would give it a shot. Well I'm having some problems compiling the code in order to get this to work.

This is a fresh debian 5 install and i'm at the part in the INSTALL where it asks me to edit my config.h file. Looking through this file I'm not sure which options I should enable in order to get this to work. If I enable the following options:

Code:

/* MiniUPnP Project
 * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
 * (c) 2006-2009 Thomas Bernard
 * generated by ./genconfig.sh on Fri Jun  5 15:00:10 MDT 2009 */
#ifndef __CONFIG_H__
#define __CONFIG_H__

define UPNP_VERSION   "20090605"
define USE_NETFILTER 1
define OS_NAME      "Debian"
define OS_VERSION   "Debian/5.0.1"
define OS_URL      "http://www.debian.org/"

/* syslog facility to be used by miniupnpd */
#define LOG_MINIUPNPD       LOG_DAEMON

/* Uncomment the following line to allow miniupnpd to be
 * controlled by miniupnpdctl */
/*#define USE_MINIUPNPDCTL*/

/* Comment the following line to disable NAT-PMP operations */
#define ENABLE_NATPMP

/* Uncomment the following line to enable generation of
 * filter rules with pf */
/*#define PF_ENABLE_FILTER_RULES*/

/* Uncomment the following line to enable caching of results of
 * the getifstats() function */
/*#define ENABLE_GETIFSTATS_CACHING*/
/* The cache duration is indicated in seconds */
#define GETIFSTATS_CACHING_DURATION 2

/* Uncomment the following line to enable multiple external ip support */
/* note : Thas is EXPERIMENTAL, do not use that unless you know perfectly what you are doing */
/*#define MULTIPLE_EXTERNAL_IP*/

/* Comment the following line to use home made daemonize() func instead
 * of BSD daemon() */
define USE_DAEMON

/* Uncomment the following line to enable lease file support */
/*#define ENABLE_LEASEFILE*/

/* Define one or none of the two following macros in order to make some
 * clients happy. It will change the XML Root Description of the IGD.
 * Enabling the Layer3Forwarding Service seems to be the more compatible
 * option. */
/*#define HAS_DUMMY_SERVICE*/
define ENABLE_L3F_SERVICE

/* Experimental UPnP Events support. */
/*#define ENABLE_EVENTS*/

/* include interface name in pf and ipf rules */
define USE_IFNAME_IN_RULES

#endif



I get this error:


Code:

gcc -Wall -Os -D_GNU_SOURCE   -c -o miniupnpd.o miniupnpd.c
In file included from miniupnpd.c:32:
config.h:8: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âUPNP_VERSIONâ
In file included from upnpglobalvars.h:12,
                 from miniupnpd.c:37:
upnppermissions.h:37: warning: âstruct upnppermâ declared inside parameter list
upnppermissions.h:37: warning: its scope is only this definition or declaration, which is probably not what you want
upnppermissions.h:46: warning: âstruct upnppermâ declared inside parameter list
make: *** [miniupnpd.o] Error 1


Let me know if you can help. I would greatly appreciate it.

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


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sat Jun 06, 2009 7:00 pm    Post subject: Reply with quote

why are some #define lines turned into define without the '#' ?
That is improper
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
2marshall8



Joined: 05 Jun 2009
Posts: 5

PostPosted: Sat Jun 06, 2009 11:51 pm    Post subject: Reply with quote

miniupnp wrote:
why are some #define lines turned into define without the '#' ?
That is improper


thanks for your quick help. I changed all those entries to include the # before the define but it still errors out. here's the first part of it when I run the make -f Makefile.linux command.

Code:


gcc -Wall -Os -D_GNU_SOURCE   -c -o netfilter/iptcrdr.o netfilter/iptcrdr.c
netfilter/iptcrdr.c:16:29: error: libiptc/libiptc.h: No such file or directory
netfilter/iptcrdr.c:17:22: error: iptables.h: No such file or directory
netfilter/iptcrdr.c:32:36: error: linux/netfilter/nf_nat.h: No such file or directory


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


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sun Jun 07, 2009 2:42 pm    Post subject: Reply with quote

you need to download and compile iptable from netfilter.org.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
2marshall8



Joined: 05 Jun 2009
Posts: 5

PostPosted: Sun Jun 07, 2009 5:28 pm    Post subject: Reply with quote

miniupnp wrote:
you need to download and compile iptable from netfilter.org.


thanks again. I know I have iptables downloaded and installed already. Are you saying that I need the iptable.h file from the source to be available when I compile this?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sun Jun 07, 2009 10:24 pm    Post subject: Reply with quote

You need libiptc compiled from iptables sources and all headers.
IPTABLESPATH=/path/to/iptables-1.4.1 make -f Makefile.linux
libiptc is not available in debian any more.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
2marshall8



Joined: 05 Jun 2009
Posts: 5

PostPosted: Mon Jun 08, 2009 3:43 am    Post subject: Reply with quote

miniupnp wrote:
You need libiptc compiled from iptables sources and all headers.
IPTABLESPATH=/path/to/iptables-1.4.1 make -f Makefile.linux
libiptc is not available in debian any more.


K thanks. I now get this error after uploading the iptables 1.4.1 source code to the root of the linux file system and running this command:
Code:


IPTABLESPATH=/iptables-1.4.1 make -f Makefile.linux


I get this error:

Code:

/bin/sh: line 0: [: `)' expected, found 1
make: *** No rule to make target `/iptables-1.4.1/libiptc/libiptc.a', needed by `miniupnpd'.  Stop.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Jul 13, 2009 8:57 am    Post subject: Reply with quote

have you compiled iptables ???
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
WattoDaToydarian



Joined: 21 Jan 2009
Posts: 3

PostPosted: Sat Jul 25, 2009 9:22 pm    Post subject: Reply with quote

I am having similar trouble attempting to compile/install on Ubuntu 9.04.

I downloaded/extracted iptables-20090724 from the snapshot ftp, ran ./configure --enable-static, then make. It finished with no problem.

I then downloaded/extracted miniupnpd-20090605, ran make -f Makefile.linux config.h, then "IPTABLESPATH=/home/watto/iptables-20090724/ make -f Makefile.linux"

It stopped with this error:
Code:
gcc -Wall -Os -D_GNU_SOURCE -I/home/watto/iptables-20090724//include/ -DIPTABLES_143   -c -o linux/getifstats.o linux/getifstats.c
linux/getifstats.c: In function ‘getifstats’:
linux/getifstats.c:56: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
linux/getifstats.c:57: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
gcc -Wall -Os -D_GNU_SOURCE -I/home/watto/iptables-20090724//include/ -DIPTABLES_143   -c -o netfilter/iptcrdr.o netfilter/iptcrdr.c
gcc  -L/home/watto/iptables-20090724//libiptc/  miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o upnpreplyparse.o minixml.o upnpredirect.o getifaddr.o daemonize.o upnpglobalvars.o options.o upnppermissions.o minissdp.o natpmp.o upnpevents.o linux/getifstats.o netfilter/iptcrdr.o /home/watto/iptables-20090724//libiptc/.libs/libiptc.a   -o miniupnpd
netfilter/iptcrdr.o: In function `list_redirect_rule':
iptcrdr.c:(.text+0x86): undefined reference to `iptc_init'
iptcrdr.c:(.text+0x9f): undefined reference to `iptc_strerror'
iptcrdr.c:(.text+0xba): undefined reference to `iptc_is_chain'
iptcrdr.c:(.text+0xec): undefined reference to `iptc_first_rule'
iptcrdr.c:(.text+0xfc): undefined reference to `iptc_get_target'
iptcrdr.c:(.text+0x33e): undefined reference to `iptc_next_rule'
iptcrdr.c:(.text+0x356): undefined reference to `iptc_free'
netfilter/iptcrdr.o: In function `iptc_init_verify_and_append':
iptcrdr.c:(.text+0x45a): undefined reference to `iptc_init'
iptcrdr.c:(.text+0x472): undefined reference to `iptc_strerror'
iptcrdr.c:(.text+0x48b): undefined reference to `iptc_is_chain'
iptcrdr.c:(.text+0x4a1): undefined reference to `iptc_strerror'
iptcrdr.c:(.text+0x4b7): undefined reference to `iptc_append_entry'
iptcrdr.c:(.text+0x4cd): undefined reference to `iptc_strerror'
iptcrdr.c:(.text+0x4e3): undefined reference to `iptc_commit'
iptcrdr.c:(.text+0x4fb): undefined reference to `iptc_strerror'
netfilter/iptcrdr.o: In function `delete_rule_and_commit':
iptcrdr.c:(.text+0x797): undefined reference to `iptc_delete_num_entry'
iptcrdr.c:(.text+0x7ad): undefined reference to `iptc_strerror'
iptcrdr.c:(.text+0x7c1): undefined reference to `iptc_commit'
iptcrdr.c:(.text+0x7d9): undefined reference to `iptc_strerror'
netfilter/iptcrdr.o: In function `delete_redirect_and_filter_rules':
iptcrdr.c:(.text+0x814): undefined reference to `iptc_init'
iptcrdr.c:(.text+0x830): undefined reference to `iptc_strerror'
iptcrdr.c:(.text+0x857): undefined reference to `iptc_is_chain'
iptcrdr.c:(.text+0x88e): undefined reference to `iptc_first_rule'
iptcrdr.c:(.text+0x8c8): undefined reference to `iptc_next_rule'
iptcrdr.c:(.text+0x8e5): undefined reference to `iptc_free'
iptcrdr.c:(.text+0x907): undefined reference to `iptc_init'
iptcrdr.c:(.text+0x937): undefined reference to `iptc_init'
netfilter/iptcrdr.o: In function `get_redirect_rule_by_index':
iptcrdr.c:(.text+0x9bd): undefined reference to `iptc_init'
iptcrdr.c:(.text+0x9d8): undefined reference to `iptc_strerror'
iptcrdr.c:(.text+0x9fd): undefined reference to `iptc_is_chain'
iptcrdr.c:(.text+0xa33): undefined reference to `iptc_first_rule'
iptcrdr.c:(.text+0xb15): undefined reference to `iptc_next_rule'
iptcrdr.c:(.text+0xb2e): undefined reference to `iptc_free'
netfilter/iptcrdr.o: In function `get_redirect_rule':
iptcrdr.c:(.text+0xb55): undefined reference to `iptc_init'
iptcrdr.c:(.text+0xb70): undefined reference to `iptc_strerror'
iptcrdr.c:(.text+0xb95): undefined reference to `iptc_is_chain'
iptcrdr.c:(.text+0xbc9): undefined reference to `iptc_first_rule'
iptcrdr.c:(.text+0xca1): undefined reference to `iptc_next_rule'
iptcrdr.c:(.text+0xcba): undefined reference to `iptc_free'
collect2: ld returned 1 exit status
make: *** [miniupnpd] Error 1
Crying or Very sad
You think my iptables snapshot is too new? I could not find the 1.4.1 version exactly...
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Jul 27, 2009 9:08 am    Post subject: Reply with quote

maybe the symbols not found (iptc_init, etc.) are present in another library file.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Sep 16, 2009 1:12 pm    Post subject: Reply with quote

I just compiled successfully with iptables-1.4.3.2 and miniupnpd-20090904.tar.gz

Code:

cd iptables-1.4.3.2
./configure  --enable-devel --disable-ipv6  --enable-libipq   --enable-static
make
cd ../miniupnpd
IPTABLESPATH=../iptables-1.4.3.2 make -f Makefile.linux

_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
grey_ash



Joined: 14 Nov 2010
Posts: 3

PostPosted: Sun Nov 14, 2010 11:52 pm    Post subject: Re: Debian 5.0.1 Compile NOT Working Reply with quote

How odd, I'm getting this error too or something like it:

Code:
netfilter/iptcrdr.o: In function `list_redirect_rule':
iptcrdr.c:(.text+0x8f): undefined reference to `iptc_init'


Any idea of which version of iptables would not give this error? Guess I'll have to try a few different ones.

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


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Nov 15, 2010 9:23 am    Post subject: Re: Debian 5.0.1 Compile NOT Working Reply with quote

grey_ash wrote:
How odd, I'm getting this error too or something like it:

Code:
netfilter/iptcrdr.o: In function `list_redirect_rule':
iptcrdr.c:(.text+0x8f): undefined reference to `iptc_init'


Any idea of which version of iptables would not give this error? Guess I'll have to try a few different ones.

Check if the symbol "iptc_init" is there in the libiptc.a/.so file
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
grey_ash



Joined: 14 Nov 2010
Posts: 3

PostPosted: Tue Nov 16, 2010 12:09 am    Post subject: Reply with quote

Hi,
It seems that libiptc.a contains only "<arch>." I suppose one needs to specfically use libip6tc.a or libip4tc.a when compiling against iptables-1.4.10? Or is miniupnpd not yet tested against this version?

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


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sat Jan 01, 2011 8:34 pm    Post subject: Reply with quote

I tested the compilation with iptables 1.4.10 and I needed to use libip4tc.

I used miniupnpd-1.5
_________________
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
Goto page 1, 2  Next
Page 1 of 2

 
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.