Hi there, Bertl asked me to submit a diff file to the list after we worked
through getting bestcrypt going on the lastest stable gentoo sources.
Details:
Kernel linux-2.6.12-vserver-2.0-r1
Package BestCrypt-1.6-2.tar.gz
Problem: Package compiles without errors or warnings but modules error
with "Unknown symbol vx_rmap_pid" during loading
Resolution:
RoT@localhost ~ $ cat bestcrypt-1.6-2.diff
diff -NurpP bcrypt/mod/bc_dev22.c bcrypt_working/mod/bc_dev22.c
--- bcrypt/mod/bc_dev22.c 2004-12-16 16:42:35.000000000 +0800
+++ bcrypt_working/mod/bc_dev22.c 2005-10-08 12:34:10.000000000 +0800
@@ -284,7 +284,7 @@ static void bc_pid_timer_proc(unsigned l
down(&bc_pid_sema);
for (i = 0; i < bc_pid_next; i++) {
- if (NULL == find_task_by_pid(bc_pid_table[i])) {
+ if (NULL == find_task_by_pid_type(PIDTYPE_PID, bc_pid_table[i])) {
bc_pid_next--;
if (bc_pid_next)
bc_pid_table[i] = bc_pid_table[bc_pid_next];
diff -NurpP bcrypt/mod/bc_dev24.c bcrypt_working/mod/bc_dev24.c
--- bcrypt/mod/bc_dev24.c 2004-12-16 16:42:35.000000000 +0800
+++ bcrypt_working/mod/bc_dev24.c 2005-10-08 12:34:51.000000000 +0800
@@ -270,7 +270,7 @@ static void bc_pid_timer_proc(unsigned l
write_lock_irq(&tasklist_lock);
#endif
for (i = 0; i < bc_pid_next; i++) {
- if (NULL == find_task_by_pid(bc_pid_table[i])) {
+ if (NULL == find_task_by_pid_type(PIDTYPE_PID, bc_pid_table[i])) {
bc_pid_next--;
if (bc_pid_next)
bc_pid_table[i] = bc_pid_table[bc_pid_next];
diff -NurpP bcrypt/mod/bc_dev26.c bcrypt_working/mod/bc_dev26.c
--- bcrypt/mod/bc_dev26.c 2005-01-06 17:15:48.000000000 +0800
+++ bcrypt_working/mod/bc_dev26.c 2005-10-08 12:35:27.000000000 +0800
@@ -161,7 +161,7 @@ static void bc_pid_timer_proc(unsigned l
write_lock_irq(&tasklist_lock);
#endif
for (i = 0; i < bc_pid_next; i++) {
- if (NULL == find_task_by_pid(bc_pid_table[i])) {
+ if (NULL == find_task_by_pid_type(PIDTYPE_PID, bc_pid_table[i])) {
bc_pid_next--;
if (bc_pid_next)
bc_pid_table[i] = bc_pid_table[bc_pid_next];
-- RoT _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserverReceived on Sat Oct 8 06:59:18 2005