Skip to Content.
Sympa Menu

baslinux - Re: [BL] Compiling with upgraded BL3 was Re: CNet NIC problems

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] Compiling with upgraded BL3 was Re: CNet NIC problems
  • Date: Tue, 22 Dec 2009 03:36:07 +0100

> For Slackware 7 you need egcs or gcc, binutils, gmake, linuxinc and glibc.
>
> Slackware 8.1 (which uses long file names and bigger packages) uses
> gcc*2.95.3*.tgz, binutils*.tgz, make*.tgz, kernel-headers*.tgz, and glibc*
> make-3.79.1*tgz

Okay, got those

>> I've downloaded the 2.4.31 kernel source now. I've configured
>> successfully, but make modules gives the following errors:
>>
>> Make: /bin/pwd: Command not found
>
> pwd is in busybox (big surprise).
>
> Many of the other busybox commands are already linked to /bin but
> this was omitted.
>
> ln -sf /bin/busybox /bin/pwd
> (if it is /bin/busybox - I forget where BL3 busybox resides.)

Did that - it fixed the error.


>> AC        @Ac        @gcc -Wall-prototypes -O2 -fomit-frame-pointer -o
>> scripts/split-include scripts/split-include.c
>> scripts/split-include.c:22: sys/types.h: No such file or directory
>> scripts/split-include.c:23: sys/stat.h: No such file or directory
>> scripts/split-include.c:25: ctype.h: No such file or directory
>> scripts/split-include.c:26: error.h: No such file or directory
>> scripts/split-include.c:27: fcntl.h: No such file or directory
>> scripts/split-include.c:28: stdio.h: No such file or directory
>> scripts/split-include.c:29: stdlib.h: No such file or directory
>> scripts/split-include.c:30: string.h: No such file or directory
>> scripts/split-include.c:31: unistd.h: No such file or directory
>> make: *** [scripts/split-include] Error 1
>
> I have a /usr/include/linux-2.4.31/include/linux/string.h and ctype.h but
> not error.h or fntctl.h of stdio.h or sys/types.h.
>
> When I compile I do 'make config' and 'make dep' and 'make bzImage' and
> 'make modules' in that order.  I don't know how to compile just one module
> or if you need the other steps first.  You could try skipping the make
> bzImage (kernel) step.  It can take 20 min at 200MHz.
>
> Try upgrading binutils etc. and then compile again, doing all the above.
> Make dep might tell the compiler where to look for things.
> (But I don't even find the files you are missing, on my computer).

Okay, I could make dep now, but I can't make modules or make bzImage -
they pretty much give me the same error.



>> Nevertheless, I found ip_tables.c and tried to compile it, which
>>
>> throws several pages of errors at me, ending in the following:
>>
>> ip_tables.c:1849: parse error before
>> 'this_object_must_be_defined_as_export_objs_in_the_Makefile'
>> ip_tables.c:1849: warning: data definition has ny type or storage class
>>
>> Could this have something to do with the other packages you were
>> talking about? Or the errors in make?
>
> Maybe.  Upgrade and try again.  Slackware 4 probably does not even include
> iptables (in ipv4), so probably you are missing some pieces.
>
> I don't understand how compiling works, just try to follow instructions and
> blunder through.  I had help getting started.

Well, that's sort of the problem: There is no instructions for
ip_tables.c, and finding anything online is hard because 99% of all
distros seem to ship with it.

> Search the archives on ipchains or 'gateway between two laptops'.
> circa 2008.  iptables replaced ipchains in kernel 2.4 (you had a choice of
> both).  SW41 does not have iptables, only ipchains.

Okay, that's a good secondary solution. I still want to try to get
iptables working, though, part because I'm stubborn and part because
I'm a lot more likely to encounter it on other distros.

Iptables is in slackware 8
(ftp://ftp.slackware-brasil.com.br/slackware-8.0/slakware/n1/iptables.tgz),
and I am able to install it, however if I try to do anything, I get
the following error:

iptables v1.2.2: can't initialize iptables table 'filter': iptables
who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

This, and the fact that the only listed requirement for iptables is
ip_tables.o, leads me to believe that ip_tables is the only thing I'm
missing. If you could compile it, it'd be great, so I can at least be
sure that's what's missing.




Archive powered by MHonArc 2.6.24.

Top of Page