Compiling HTB2 on RH7.2
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.osch_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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
-----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 | +-------------------------------------------------------------------+
Quoted 29 lines · Nils Lichtenfeld
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.osch_htb.c
sch_htb.c:1215: parse error before string constant sch_htb.c:1215: warning: type defaults toint' in declaration ofMODULE_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 ----
Quoted 9 lines
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 / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello!
Thanks for the quick answer.
Quoted 7 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
-----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 | +-------------------------------------------------------------------+
Quoted 9 lines · Nils Lichtenfeld
Hello!
Thanks for the quick answer.
Quoted 5 lines
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.
Quoted 9 lines
Quoted 2 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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
Quoted 18 lines · Nils Lichtenfeld
Hello!
Thanks for the quick answer.
Quoted 7 lines
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?
Quoted 5 lines
Greetings, Nils
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello Patric!
Quoted 3 lines · Patrick McHardy
IMHO
MODULE_LICENSEwas introduced during 2.4, i don't know when exactly. Try inserting "#defineMODULE_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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello!
Quoted 5 lines · Nils Lichtenfeld
sch_htb.c:1215: parse error before string constant sch_htb.c:1215: warning: type defaults to
int' in declaration ofMODULE_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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
-----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 | +-------------------------------------------------------------------+
Quoted 33 lines · Patrick McHardy
Hi !
IMHOMODULE_LICENSEwas introduced during 2.4, i don't know when exactly. Try inserting "#defineMODULE_LICENSE(x)" after #includes of htb. Bye,
PatrickQuoted 18 lines · Nils Lichtenfeld
Hello!
Thanks for the quick answer.
Quoted 7 lines
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?
Quoted 5 lines
Greetings, Nils
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 4 lines
_______________________________________________
LARTC mailing list / [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/