OpenWrt Forum Archive

Topic: Problem creating a package

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a really hard time porting my application natstat (http://freshmeat.net/projects/natstat)

I've read some tutorials but I seem to get stuck at the makefile :/
get "out of virtual memory" amongst many errors.
Anyone feels like helping me ? help would be most appreciated :)

/ Tommy

Which kind of platform do you use to cross-compile packages ? I  know that on my MacOSx machine, even with 1GB mem, you always get this error, check you have the latest make version (I think it is stille v3.80).

bash-3.00$ make --version
GNU Make 3.80

Slackware , i386
kernel 2.6.12.4
1 gb ram

I really don't think I should get that.
I believe my makefile is just one screwed puppy :/ that's why I desperately need the help :)

But if that IS the problem (low ram) what the heck can I do ? anyone out there with more ram than me, willing to give it a shot ? :)

(Last edited by svearike on 16 Nov 2005, 19:06)

Oh, another slackware user with make 3.80 *g*. I had the same problem - there is a bug in gnu make that this triggered if a make variable is more than 200 characters long (at least google told me so); the newest official make version (3.80) still has this bug, so take a look at ftp://alpha.gnu.org/gnu/make/ .

Yeah that seemed to work thanks alot :)

I'm still having some problems though.
I'm more or less following the first HOWTO (hello world) in the howtos section.
I can not seem to find where to change what the actual package name should be called.
as it is now it comes out with the name
hello-0.0.11_1*****
I grepped for hello but can not seem to find any references to it.. any suggestions ?


and when I run the executable on the router I get:

root@OpenWrt:/bin# natstat
/usr/bin/natstat: 1: Syntax error: word unexpected (expecting ")")

(Last edited by svearike on 16 Nov 2005, 21:10)

The discussion might have continued from here.