Tracker item #2854490, was opened at 2009-09-08 10:04
Message generated for change (Comment added) made by mvanzin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2854490&group_id=204462

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: kernel modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Cedric Jeanneret (cjeanneret)
Assigned to: Nobody/Anonymous (nobody)
Summary: rhel 5.x, kernel 2.6.18

Initial Comment:
Hello,
Trying to make ovmt work on a rhel5.4 guest, I have a nice error :

make[3]: Entering directory `/usr/src/kernels/2.6.18-164.el5-x86_64'
CC [M] /tmp/open-vm-tools-2009.07.22-179896/modules/linux/vmxnet/vmxnet.o
In file included from 
/tmp/open-vm-tools-2009.07.22-179896/modules/linux/vmxnet/vmxnet.c:36:
/tmp/open-vm-tools-2009.07.22-179896/modules/linux/shared/compat_netdevice.h:299:
 error: redefinition of ‘struct napi_struct’
make[4]: *** 
[/tmp/open-vm-tools-2009.07.22-179896/modules/linux/vmxnet/vmxnet.o] Error 1
make[3]: *** 
[_module_/tmp/open-vm-tools-2009.07.22-179896/modules/linux/vmxnet] Error 2
make[3]: Leaving directory `/usr/src/kernels/2.6.18-164.el5-x86_64'
make[2]: *** [vmxnet.ko] Error 2
make[2]: Leaving directory 
`/tmp/open-vm-tools-2009.07.22-179896/modules/linux/vmxnet'
make[1]: *** [vmxnet] Error 2
make[1]: Leaving directory `/tmp/open-vm-tools-2009.07.22-179896/modules'
make: *** [all-recursive] Error 1

Details:
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
kernel: 2.6.18-164.el5
ovmt: open-vm-tools-2009.07.22-179896
gcc: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
glib-2.0 : 2.12.3 (4.el5_3.1)

I tried the latest one too, same machine (so same environment). And have other 
errors :

make[2]: Entering directory `/tmp/open-vm-tools-2009.08.24-187411/lib/slashProc'
/bin/sh ../../libtool --tag=CC --mode=compile gcc 
-DPACKAGE_NAME=\"open-vm-tools\" -DPACKAGE_TARNAME=\"open-vm-tools\" 
-DPACKAGE_VERSION=\"2009.08.24\" -DPACKAGE_STRING=\"open-vm-tools\ 2009.08.24\" 
-DPACKAGE_BUGREPORT=\"open-vm-tools-de...@lists.sourceforge.net\" 
-DPACKAGE=\"open-vm-tools\" -DVERSION=\"2009.08.24\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DX_DISPLAY_MISSING=1 
-DHAVE_ECVT=1 -DHAVE_FCVT=1 -DHAVE_CRYPT_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_IO_H=1 
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SYSINFO_H=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_USER_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_UNWIND_H=1 -DHAVE__BOOL=1 
-DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 
-DHAVE_LSEEK=1 -DNO_MULTIMON=1 -I. -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include 
-I/tmp/open-vm-tools-2009.08.24-187411/lib/include 
-I/tmp/open-vm-tools-2009.08.24-187411/lib/include -DUSING_AUTOCONF=1 
-DOPEN_VM_TOOLS -D_REENTRANT -D_REENTRANT -I/usr/include -DUSE_ICU 
-DVMX86_TOOLS -DNO_CORE_ICU -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -I/usr/include -g -O2 -Wall 
-Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing 
-Wno-unknown-pragmas -Wno-uninitialized -MT libSlashProc_la-net.lo -MD -MP -MF 
.deps/libSlashProc_la-net.Tpo -c -o libSlashProc_la-net.lo `test -f 'net.c' || 
echo './'`net.c
libtool: compile: gcc -DPACKAGE_NAME=\"open-vm-tools\" 
-DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"2009.08.24\" 
"-DPACKAGE_STRING=\"open-vm-tools 2009.08.24\"" 
-DPACKAGE_BUGREPORT=\"open-vm-tools-de...@lists.sourceforge.net\" 
-DPACKAGE=\"open-vm-tools\" -DVERSION=\"2009.08.24\" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DX_DISPLAY_MISSING=1 
-DHAVE_ECVT=1 -DHAVE_FCVT=1 -DHAVE_CRYPT_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_IO_H=1 
-DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SYSINFO_H=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_USER_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_UNWIND_H=1 -DHAVE__BOOL=1 
-DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 
-DHAVE_LSEEK=1 -DNO_MULTIMON=1 -I. -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include 
-I/tmp/open-vm-tools-2009.08.24-187411/lib/include 
-I/tmp/open-vm-tools-2009.08.24-187411/lib/include -DUSING_AUTOCONF=1 
-DOPEN_VM_TOOLS -D_REENTRANT -D_REENTRANT -I/usr/include -DUSE_ICU 
-DVMX86_TOOLS -DNO_CORE_ICU -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -I/usr/include -g -O2 -Wall 
-Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing 
-Wno-unknown-pragmas -Wno-uninitialized -MT libSlashProc_la-net.lo -MD -MP -MF 
.deps/libSlashProc_la-net.Tpo -c net.c -fPIC -DPIC -o 
.libs/libSlashProc_la-net.o
cc1: warnings being treated as errors
net.c:100: warning: type defaults to 'int' in declaration of 'GMatchInfo'
net.c:100: error: expected ';', ',' or ')' before '*' token
net.c: In function 'SlashProcNet_GetSnmp':
net.c:227: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
net.c:227: error: 'myKeyRegex' undeclared (first use in this function)
net.c:227: error: (Each undeclared identifier is reported only once
net.c:227: error: for each function it appears in.)
net.c:228: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
net.c:228: error: 'myValRegex' undeclared (first use in this function)
net.c:231: warning: implicit declaration of function 'g_regex_new'
net.c:231: error: 'G_REGEX_OPTIMIZE' undeclared (first use in this function)
net.c:261: error: 'GMatchInfo' undeclared (first use in this function)
net.c:261: error: 'keyMatchInfo' undeclared (first use in this function)
net.c:262: error: 'valMatchInfo' undeclared (first use in this function)
net.c:277: warning: implicit declaration of function 'g_regex_match'
net.c:283: warning: implicit declaration of function 'g_match_info_fetch'
net.c:283: warning: assignment makes pointer from integer without a cast
net.c:284: warning: assignment makes pointer from integer without a cast
net.c:336: warning: implicit declaration of function 'g_match_info_free'
net.c: In function 'SlashProcNet_GetSnmp6':
net.c:417: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
net.c:417: error: 'myRegex' undeclared (first use in this function)
net.c:420: error: 'G_REGEX_OPTIMIZE' undeclared (first use in this function)
net.c:444: error: 'GMatchInfo' undeclared (first use in this function)
net.c:444: error: 'matchInfo' undeclared (first use in this function)
net.c:451: warning: assignment makes pointer from integer without a cast
net.c:452: warning: assignment makes pointer from integer without a cast
net.c: In function 'SlashProcNet_GetRoute':
net.c:534: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
net.c:534: error: 'myFieldsRE' undeclared (first use in this function)
net.c:535: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
net.c:535: error: 'myValuesRE' undeclared (first use in this function)
net.c:585: error: 'GMatchInfo' undeclared (first use in this function)
net.c:585: error: 'myMatchInfo' undeclared (first use in this function)
net.c:608: warning: assignment makes pointer from integer without a cast
net.c:612: warning: implicit declaration of function 'MatchToGuint64'
net.c: In function 'SlashProcNet_GetRoute6':
net.c:726: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
net.c:726: error: 'myValuesRE' undeclared (first use in this function)
net.c:755: error: 'GMatchInfo' undeclared (first use in this function)
net.c:755: error: 'myMatchInfo' undeclared (first use in this function)
net.c:765: warning: initialization makes pointer from integer without a cast
net.c:766: warning: initialization makes pointer from integer without a cast
net.c:767: warning: initialization makes pointer from integer without a cast
net.c:774: warning: initialization makes pointer from integer without a cast
net.c: At top level:
net.c:881: warning: type defaults to 'int' in declaration of 'GMatchInfo'
net.c:881: error: expected ';', ',' or ')' before '*' token
make[2]: *** [libSlashProc_la-net.lo] Error 1
make[2]: Leaving directory `/tmp/open-vm-tools-2009.08.24-187411/lib/slashProc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/open-vm-tools-2009.08.24-187411/lib'
make: *** [all-recursive] Error 1


Anything to do about this ? It seems, for the first one, that commenting out 
the struc definition in modules/linux/shared/compat_netdevice.h fixes the 
problem.

Thanks in advance!

Best regards,

C.

----------------------------------------------------------------------

>Comment By: Marcelo Vanzin (mvanzin)
Date: 2009-09-29 15:20

Message:
I see Dmitry's fix made it into the 09.18 release (git commit f77444); did
that fix things for you?

----------------------------------------------------------------------

Comment By: Dmitry Torokhov (dtor)
Date: 2009-09-09 09:25

Message:
No, just give me some more time, there should be the second part coming...

----------------------------------------------------------------------

Comment By: Cedric Jeanneret (cjeanneret)
Date: 2009-09-09 02:37

Message:
Hello again,

I tried your path. good news, it works for
open-vm-tools-2009.07.22-179896

it doesn't fixe open-vm-tools-2009.08.24-187411 problem. Should I open a
new bug for open-vm-tools-2009.08.24-187411 ?

Great job :)

Best regards,

C.

----------------------------------------------------------------------

Comment By: Cedric Jeanneret (cjeanneret)
Date: 2009-09-08 22:44

Message:
What can I do to help you? We'll have a vmware guest for these tests, so
I'll be able to test any new version.
Thank you for your quick answer.

Best regards

C.

----------------------------------------------------------------------

Comment By: Dmitry Torokhov (dtor)
Date: 2009-09-08 10:24

Message:
Hmm, did RedHat backported new NAPI to 2.6.18?... It used to be available
with 2.6.24 kernels, I'll take a look.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2854490&group_id=204462

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to