* [LARTC] Compiling HTB2 on RH7.2
@ 2002-04-30 19:32 Nils Lichtenfeld
2002-04-30 19:59 ` LuisMi
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Nils Lichtenfeld @ 2002-04-30 19:32 UTC (permalink / raw)
To: lartc
Hello!
Just tried to compile HTB2 on a fresh RedHat 7.2 OS with the kernel-dev
packages installed.
I applied the patch, told menuconfig to compile HTB as a module, make
dep and then a make modules. After some time I get the following
erroroutput:
---- snipp ----
gcc -D__KERNEL__ -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-proto
types -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno
-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMO
DULE -DMODVERSIONS -include
/usr/src/linux-2.4.7-10/include/linux/modversions.h -c -o sch_htb.o
sch_htb.c
sch_htb.c:1215: parse error before string constant
sch_htb.c:1215: warning: type defaults to `int' in declaration of
`MODULE_LICENSE'
sch_htb.c:1215: warning: function declaration isn't a prototype
sch_htb.c:1215: warning: data definition has no type or storage class
make[2]: *** [sch_htb.o] Fehler 1
make[2]: Verlassen des Verzeichnisses
Verzeichnis »/usr/src/linux-2.4.7-10/net/sched«
make[1]: *** [_modsubdir_sched] Fehler 2
make[1]: Verlassen des Verzeichnisses
Verzeichnis »/usr/src/linux-2.4.7-10/net«
make: *** [_mod_net] Fehler 2
---- snapp ----
The Kernel is the one lieing in /usr/src/linux-2.4 (2.4.7-10). Does
anyone know how to compile HTB for RH7.2?
Greetings, Nils
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Compiling HTB2 on RH7.2
2002-04-30 19:32 [LARTC] Compiling HTB2 on RH7.2 Nils Lichtenfeld
@ 2002-04-30 19:59 ` LuisMi
2002-04-30 20:13 ` Nils Lichtenfeld
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: LuisMi @ 2002-04-30 19:59 UTC (permalink / raw)
To: lartc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I usually patch my kernel into RH 7.2 with some differents patches.
From my experience: never user the kernel sources from redhat.
It is too complicated, or impossible, to patch that sources in the most
cases.
I patch HTB (not HTB2) over a 2.4.17 without problems, and, of course, I
use RH 7.2 :-)
- --
+-------------------------------------------------------------------+
| Luis Miguel Cruz. |
| |
| [ADPSOFT] http://www.adpsoft.com |
| "Connecting your business" |
| |
| irc.irc-hispano.org -> #redhat |
| http://www.flcnet.es/tbe/luismi |
| Canal IRC para usuarios RedHat Linux |
| |
| Public Key: http://www.flcnet.es/tbe/luismi/nadie/luismi_adp.asc |
+-------------------------------------------------------------------+
On Tue, 30 Apr 2002, Nils Lichtenfeld wrote:
> Hello!
>
> Just tried to compile HTB2 on a fresh RedHat 7.2 OS with the kernel-dev
> packages installed.
> I applied the patch, told menuconfig to compile HTB as a module, make
> dep and then a make modules. After some time I get the following
> erroroutput:
>
> ---- snipp ----
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.7-10/include -Wall -Wstrict-proto
> types -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno
> -common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMO
> DULE -DMODVERSIONS -include
> /usr/src/linux-2.4.7-10/include/linux/modversions.h -c -o sch_htb.o
> sch_htb.c
> sch_htb.c:1215: parse error before string constant
> sch_htb.c:1215: warning: type defaults to `int' in declaration of
> `MODULE_LICENSE'
> sch_htb.c:1215: warning: function declaration isn't a prototype
> sch_htb.c:1215: warning: data definition has no type or storage class
> make[2]: *** [sch_htb.o] Fehler 1
> make[2]: Verlassen des Verzeichnisses
> Verzeichnis »/usr/src/linux-2.4.7-10/net/sched«
> make[1]: *** [_modsubdir_sched] Fehler 2
> make[1]: Verlassen des Verzeichnisses
> Verzeichnis »/usr/src/linux-2.4.7-10/net«
> make: *** [_mod_net] Fehler 2
> ---- snapp ----
>
> The Kernel is the one lieing in /usr/src/linux-2.4 (2.4.7-10). Does
> anyone know how to compile HTB for RH7.2?
>
> Greetings, Nils
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzO95cACgkQvQHLTzrFJlfyVwCfeqyP4Fuj3synE/CzmAmA2qqZ
rdkAnROTdn0DvYMbxgCloT4ty+AiPHzB
=Y/Mo
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Compiling HTB2 on RH7.2
2002-04-30 19:32 [LARTC] Compiling HTB2 on RH7.2 Nils Lichtenfeld
2002-04-30 19:59 ` LuisMi
@ 2002-04-30 20:13 ` Nils Lichtenfeld
2002-05-01 0:59 ` LuisMi
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Nils Lichtenfeld @ 2002-04-30 20:13 UTC (permalink / raw)
To: lartc
Hello!
Thanks for the quick answer.
> I usually patch my kernel into RH 7.2 with some differents patches.
> From my experience: never user the kernel sources from redhat.
> It is too complicated, or impossible, to patch that sources in the
> most cases.
>
> I patch HTB (not HTB2) over a 2.4.17 without problems, and, of
> course, I use RH 7.2 :-)
I don not want to change the kernel, even if it is the better choice.
Would it be possible to get 2.4.7 from kernel.org, compile the
HTB-module and use that one with the current kernel from RH7.2?
Greetings, Nils
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Compiling HTB2 on RH7.2
2002-04-30 19:32 [LARTC] Compiling HTB2 on RH7.2 Nils Lichtenfeld
2002-04-30 19:59 ` LuisMi
2002-04-30 20:13 ` Nils Lichtenfeld
@ 2002-05-01 0:59 ` LuisMi
2002-05-01 1:11 ` Patrick McHardy
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: LuisMi @ 2002-05-01 0:59 UTC (permalink / raw)
To: lartc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Maybe it is the best way, always try to avoid the redhat kernel sources if
you want to apply any patch.
- --
+-------------------------------------------------------------------+
| Luis Miguel Cruz. |
| |
| [ADPSOFT] http://www.adpsoft.com |
| "Connecting your business" |
| |
| irc.irc-hispano.org -> #redhat |
| http://www.flcnet.es/tbe/luismi |
| Canal IRC para usuarios RedHat Linux |
| |
| Public Key: http://www.flcnet.es/tbe/luismi/nadie/luismi_adp.asc |
+-------------------------------------------------------------------+
On Tue, 30 Apr 2002, Nils Lichtenfeld wrote:
> Hello!
>
> Thanks for the quick answer.
>
> > I usually patch my kernel into RH 7.2 with some differents patches.
> > From my experience: never user the kernel sources from redhat.
> > It is too complicated, or impossible, to patch that sources in the
> > most cases.
> >
> > I patch HTB (not HTB2) over a 2.4.17 without problems, and, of
> > course, I use RH 7.2 :-)
>
> I don not want to change the kernel, even if it is the better choice.
> Would it be possible to get 2.4.7 from kernel.org, compile the
> HTB-module and use that one with the current kernel from RH7.2?
>
> Greetings, Nils
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzPPgMACgkQvQHLTzrFJldKXgCdEyfceHsE7V4xieIeC2+s7AER
mlgAoItMhNKB/urYS3Uig6f5zq7Yaibt
=buiU
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Compiling HTB2 on RH7.2
2002-04-30 19:32 [LARTC] Compiling HTB2 on RH7.2 Nils Lichtenfeld
` (2 preceding siblings ...)
2002-05-01 0:59 ` LuisMi
@ 2002-05-01 1:11 ` Patrick McHardy
2002-05-01 10:59 ` Nils Lichtenfeld
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Patrick McHardy @ 2002-05-01 1:11 UTC (permalink / raw)
To: lartc
Hi !
IMHO MODULE_LICENSE was introduced during 2.4, i don't know when exactly.
Try inserting "#define MODULE_LICENSE(x)" after #includes of htb.
Bye,
Patrick
Nils Lichtenfeld wrote:
> Hello!
>
> Thanks for the quick answer.
>
>
>>I usually patch my kernel into RH 7.2 with some differents patches.
>>From my experience: never user the kernel sources from redhat.
>>It is too complicated, or impossible, to patch that sources in the
>>most cases.
>>
>>I patch HTB (not HTB2) over a 2.4.17 without problems, and, of
>>course, I use RH 7.2 :-)
>
>
> I don not want to change the kernel, even if it is the better choice.
> Would it be possible to get 2.4.7 from kernel.org, compile the
> HTB-module and use that one with the current kernel from RH7.2?
>
> Greetings, Nils
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Compiling HTB2 on RH7.2
2002-04-30 19:32 [LARTC] Compiling HTB2 on RH7.2 Nils Lichtenfeld
` (3 preceding siblings ...)
2002-05-01 1:11 ` Patrick McHardy
@ 2002-05-01 10:59 ` Nils Lichtenfeld
2002-05-01 11:24 ` Nils Lichtenfeld
2002-05-01 12:31 ` LuisMi
6 siblings, 0 replies; 8+ messages in thread
From: Nils Lichtenfeld @ 2002-05-01 10:59 UTC (permalink / raw)
To: lartc
Hello Patric!
Patrick McHardy wrote:
> IMHO MODULE_LICENSE was introduced during 2.4, i don't know when
> exactly. Try inserting "#define MODULE_LICENSE(x)" after #includes
> of htb. Bye,
Well, there is already a MODULE_LICENSE(X)...
---- sch_htb.c ----
/* ==== Begin of part to be deleted for 2.4 merged one ===== */
#if LINUX_VERSION_CODE < 0x20300
#define MODULE_LICENSE(X)
---- snapp ----
Greetings, Nils
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Compiling HTB2 on RH7.2
2002-04-30 19:32 [LARTC] Compiling HTB2 on RH7.2 Nils Lichtenfeld
` (4 preceding siblings ...)
2002-05-01 10:59 ` Nils Lichtenfeld
@ 2002-05-01 11:24 ` Nils Lichtenfeld
2002-05-01 12:31 ` LuisMi
6 siblings, 0 replies; 8+ messages in thread
From: Nils Lichtenfeld @ 2002-05-01 11:24 UTC (permalink / raw)
To: lartc
Hello!
Nils Lichtenfeld wrote:
> sch_htb.c:1215: parse error before string constant
> sch_htb.c:1215: warning: type defaults to `int' in declaration of
> `MODULE_LICENSE'
> sch_htb.c:1215: warning: function declaration isn't a prototype
> sch_htb.c:1215: warning: data definition has no type or storage class
Well, I just deleted line 1215
---- line 1215 ----
MODULE_LICENSE("GPL");
---- snapp ----
and sch_htb just compiled and could also be loaded (havn't tested if it
is functional though).
What is that line for? Two friends and I would like to make a howto on
compiling HTB and are currently trieing to compile HTB on several
current Linux-Distris. It would be nice, if we won't have to tell
people to edit the source on their own. So Devik, could you make a
workaround for this, please?
Greetings, Nils
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Compiling HTB2 on RH7.2
2002-04-30 19:32 [LARTC] Compiling HTB2 on RH7.2 Nils Lichtenfeld
` (5 preceding siblings ...)
2002-05-01 11:24 ` Nils Lichtenfeld
@ 2002-05-01 12:31 ` LuisMi
6 siblings, 0 replies; 8+ messages in thread
From: LuisMi @ 2002-05-01 12:31 UTC (permalink / raw)
To: lartc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
¿?¿?¿? SIC!
- --
+-------------------------------------------------------------------+
| Luis Miguel Cruz. |
| |
| [ADPSOFT] http://www.adpsoft.com |
| "Connecting your business" |
| |
| irc.irc-hispano.org -> #redhat |
| http://www.flcnet.es/tbe/luismi |
| Canal IRC para usuarios RedHat Linux |
| |
| Public Key: http://www.flcnet.es/tbe/luismi/nadie/luismi_adp.asc |
+-------------------------------------------------------------------+
On Wed, 1 May 2002, Patrick McHardy wrote:
> Hi !
> IMHO MODULE_LICENSE was introduced during 2.4, i don't know when exactly.
> Try inserting "#define MODULE_LICENSE(x)" after #includes of htb.
> Bye,
> Patrick
>
> Nils Lichtenfeld wrote:
> > Hello!
> >
> > Thanks for the quick answer.
> >
> >
> >>I usually patch my kernel into RH 7.2 with some differents patches.
> >>From my experience: never user the kernel sources from redhat.
> >>It is too complicated, or impossible, to patch that sources in the
> >>most cases.
> >>
> >>I patch HTB (not HTB2) over a 2.4.17 without problems, and, of
> >>course, I use RH 7.2 :-)
> >
> >
> > I don not want to change the kernel, even if it is the better choice.
> > Would it be possible to get 2.4.7 from kernel.org, compile the
> > HTB-module and use that one with the current kernel from RH7.2?
> >
> > Greetings, Nils
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzP4CMACgkQvQHLTzrFJlfw0gCeKELKu2WO38f2hZx2GnFi2pCd
R+wAnjkU+YWzwkG2suGbGDTQddbYsUCE
=8o5U
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-05-01 12:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-30 19:32 [LARTC] Compiling HTB2 on RH7.2 Nils Lichtenfeld
2002-04-30 19:59 ` LuisMi
2002-04-30 20:13 ` Nils Lichtenfeld
2002-05-01 0:59 ` LuisMi
2002-05-01 1:11 ` Patrick McHardy
2002-05-01 10:59 ` Nils Lichtenfeld
2002-05-01 11:24 ` Nils Lichtenfeld
2002-05-01 12:31 ` LuisMi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.