You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(30) |
Oct
(50) |
Nov
(42) |
Dec
(17) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(36) |
Feb
(13) |
Mar
(74) |
Apr
(17) |
May
(62) |
Jun
(53) |
Jul
(32) |
Aug
(58) |
Sep
(44) |
Oct
(21) |
Nov
(35) |
Dec
(53) |
2009 |
Jan
(43) |
Feb
(58) |
Mar
(14) |
Apr
(16) |
May
(61) |
Jun
(49) |
Jul
(11) |
Aug
(22) |
Sep
(37) |
Oct
(12) |
Nov
(23) |
Dec
(10) |
2010 |
Jan
(21) |
Feb
(13) |
Mar
(5) |
Apr
(18) |
May
(14) |
Jun
(10) |
Jul
(1) |
Aug
|
Sep
(13) |
Oct
(8) |
Nov
(11) |
Dec
(14) |
2011 |
Jan
(13) |
Feb
(19) |
Mar
(16) |
Apr
(10) |
May
(22) |
Jun
(4) |
Jul
(63) |
Aug
(14) |
Sep
(10) |
Oct
(12) |
Nov
(10) |
Dec
(43) |
2012 |
Jan
(3) |
Feb
(4) |
Mar
(35) |
Apr
(1) |
May
(32) |
Jun
(8) |
Jul
(10) |
Aug
(6) |
Sep
(3) |
Oct
(25) |
Nov
(14) |
Dec
(4) |
2013 |
Jan
(12) |
Feb
(6) |
Mar
(15) |
Apr
(24) |
May
(9) |
Jun
(2) |
Jul
|
Aug
(4) |
Sep
|
Oct
(8) |
Nov
(3) |
Dec
|
2014 |
Jan
(5) |
Feb
|
Mar
(4) |
Apr
(2) |
May
(4) |
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2015 |
Jan
|
Feb
(5) |
Mar
|
Apr
(1) |
May
(3) |
Jun
(1) |
Jul
(2) |
Aug
(5) |
Sep
|
Oct
|
Nov
(2) |
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2009-05-28 18:02:52
|
Tracker item #2797776, was opened at 2009-05-28 01:45 Message generated for change (Settings changed) made by mvanzin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&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: v1.0 (example) >Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Reindl Harald (reindl_harald) Assigned to: Nobody/Anonymous (nobody) Summary: kernel-modules not longer building on fedora Initial Comment: Since april 2009 the open-vm-tools are not longer building on fedora 9 / fedora 10 Since a long time i use the following script to build the kernel-modules for distributing after that to all other machines and it would be fine to get this working again because kernel 2.6.29 landed in updates-testing today [root@buildserver:/scripts]$ cat /scripts/open-vm-tools/build.sh #!/bin/bash tar -xzf open-vm-tools-*.gz cd open-vm-tools-*/modules/linux modsrc="/usr/lib/vmware-tools/modules/source" for x in `ls -d v*` do mv $x ${x}-only tar -cf $x.tar ${x}-only mv ${x}-only $x mv $modsrc/$x.tar $modsrc/$x.tar.orig mv $x.tar $modsrc done vmware-config-tools.pl ---------------------------------------------------------------------- >Comment By: Marcelo Vanzin (mvanzin) Date: 2009-05-28 11:02 Message: Reindl, not to get too held up in semantics, but you weren't building the modules, you were re-packaging them. Once you re-package them, if you can't build them it's probably an issue in *your* packaging steps, since we make sure that if you build things using the open-vm-tools makefiles it will build (and it does). You're seeing issues because in the past two months I cleaned up all the duplicate files in the open-vm-tools package. This means that a bunch of headers and sources that used to be duplicated in all kernel modules' directories are not there anymore and are instead re-used from other places. This is a good thing because it helps us internally at VMware with some projects we have in the mid-term. It also makes things better organized. So again, you're doing something that is not "standard building procedure" as far as the package goes; so if things don't build for you now, you need to fix your procedure and not the way around. Other people had problems building the module too after these changes - and they fixed their packages and now things work. About the fgets() problem, we fixed it internally already, it's a simple fix (just enclose it in an if () so that the compiler thinks you're using the return value). ---------------------------------------------------------------------- Comment By: Dominique Leuenberger (dimstar) Date: 2009-05-28 05:18 Message: your tone is rude at best, and yet you expect help. Amazing. Your issue is less with the open-vm-tools (you break them apart and try to do something with them what they are not meant for). Why don't you just take the original vmware-tools ones and apply the existing patches??? It's not as they would not exist! http://communities.vmware.com/thread/208963 OR: Use the following script to build all the modules (we use this script on openSUSE since first versions of open-vm-tools hit the download mirrors, with only minor modifications long ago): ### TOPDIR=$PWD cd .. mkdir -p obj for flavor in %{flavors_to_build}; do rm -rf obj/$flavor cp -r %{name}-%{version}-%{svn_rev} obj/$flavor pushd obj/$flavor for module in %{vm_modules}; do pushd modules/linux/$module make -C /usr/src/linux-obj/%{_target_cpu}/$flavor modules M=$PWD VM_CCVER=$(gcc -dumpversion) HEADER_DIR="/usr/src/linux-obj/$(uname -i)/default/include" SRCROOT=$PWD OVT_SOURCE_DIR=$TOPDIR popd done popd done ### (this is part of the spec file posted recently on the open-vm-tools maiinglist). the 'for' with the flavors you can skip for your usecase. It will most likely be 'default' ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 04:54 Message: > You need to file a bug against the Fedora rpmfusion packager (i.e. myself), not upstream. > For the record, I have an RPM of the latest open-vm-tools, but I'm seeing > massive regression (drag-n-drop not working, etc...). But i'm short on > time, patches are always welcome. Where does rpmfusion matter in my context? I try to build the whole time by myself the same way i did before april and i need only the newest kernel-modules We are speaking from hi-performance web- and databaseservers living on an vmware-esxi drag-n-drop does not matter, i need vmxnet etc. on the buildmachine/internel cacherepo and distribute them with rsync to the other machines before distribute the kernel-updates to avoid downtime and problems maybe not solveable without networking on the live-servers. If i would have a rock-stable src.rpm which builds the newest versions for vmci, vmemctl and vmxnet against the last kernel-updates i can distribute this as optimiized httpd, php... from the buildmachine. However - It's crazy to modify the open-vm-tools in a way that they makes such problems On VMware-Supported distributions they nobody needs and on guests where you need them you can not use them any longer - WTF? ---------------------------------------------------------------------- Comment By: Denis Leroy (poolshark) Date: 2009-05-28 04:39 Message: You need to file a bug against the Fedora rpmfusion packager (i.e. myself), not upstream. For the record, I have an RPM of the latest open-vm-tools, but I'm seeing massive regression (drag-n-drop not working, etc...). But i'm short on time, patches are always welcome. ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 03:35 Message: Now i try to get compiled the kernel-modules and i would like to copy them directly without install the other stuff But it is not building - So give me please a working way to get the kernel-modules built on recent fedora-versions or make the old way working again cc1: warnings being treated as errors wiperPosix.c: In function 'Wiper_Init': wiperPosix.c:1016: error: ignoring return value of 'fgets', declared with attribute warn_unused_result make[2]: *** [wiperPosix.lo] Fehler 1 make[2]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib/wiper' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib' make: *** [all-recursive] Fehler 1 #!/bin/bash cd /scripts/open-vm-tools/open-vm-tools*/ export CFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" export CXXFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" ./configure \ --host=x86_64-redhat-linux-gnu \ --build=x86_64-redhat-linux-gnu \ --without-procps \ --without-gtkmm \ --without-gtk2 \ --disable-unity \ --disable-docs && make ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 02:24 Message: > The module directories don't contain all needed files anymore WHY? You make unuseable this for non c-programmers in many cases or hurt them Since many months this works very well on round 20 guest-machines and On the referenced mailing-list i find no clear solution to get this working as it did before april 2009. > you should probably get them from VMware's Tools distribution that goes with the products If this would be so easy there would be NO NEED for open-vm-tools because you need them for distributions with really new kernels as not official supported fedora-guests ---------------------------------------------------------------------- Comment By: Marcelo Vanzin (mvanzin) Date: 2009-05-28 02:00 Message: That won't work. The module directories don't contain all needed files anymore - the shared files are reused from other locations. If you want the tar packages you should probably get them from VMware's Tools distribution that goes with the products, or try to adapt the instructions on the following thread to create them from the open-vm-tools code: https://sourceforge.net/mailarchive/forum.php?thread_name=200905181606.57759.olivier.lahaye%40cea.fr&forum_name=open-vm-tools-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&group_id=204462 |
From: SourceForge.net <no...@so...> - 2009-05-28 12:18:24
|
Tracker item #2797776, was opened at 2009-05-28 10:45 Message generated for change (Comment added) made by dimstar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&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: v1.0 (example) Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: Reindl Harald (reindl_harald) Assigned to: Nobody/Anonymous (nobody) Summary: kernel-modules not longer building on fedora Initial Comment: Since april 2009 the open-vm-tools are not longer building on fedora 9 / fedora 10 Since a long time i use the following script to build the kernel-modules for distributing after that to all other machines and it would be fine to get this working again because kernel 2.6.29 landed in updates-testing today [root@buildserver:/scripts]$ cat /scripts/open-vm-tools/build.sh #!/bin/bash tar -xzf open-vm-tools-*.gz cd open-vm-tools-*/modules/linux modsrc="/usr/lib/vmware-tools/modules/source" for x in `ls -d v*` do mv $x ${x}-only tar -cf $x.tar ${x}-only mv ${x}-only $x mv $modsrc/$x.tar $modsrc/$x.tar.orig mv $x.tar $modsrc done vmware-config-tools.pl ---------------------------------------------------------------------- Comment By: Dominique Leuenberger (dimstar) Date: 2009-05-28 14:18 Message: your tone is rude at best, and yet you expect help. Amazing. Your issue is less with the open-vm-tools (you break them apart and try to do something with them what they are not meant for). Why don't you just take the original vmware-tools ones and apply the existing patches??? It's not as they would not exist! http://communities.vmware.com/thread/208963 OR: Use the following script to build all the modules (we use this script on openSUSE since first versions of open-vm-tools hit the download mirrors, with only minor modifications long ago): ### TOPDIR=$PWD cd .. mkdir -p obj for flavor in %{flavors_to_build}; do rm -rf obj/$flavor cp -r %{name}-%{version}-%{svn_rev} obj/$flavor pushd obj/$flavor for module in %{vm_modules}; do pushd modules/linux/$module make -C /usr/src/linux-obj/%{_target_cpu}/$flavor modules M=$PWD VM_CCVER=$(gcc -dumpversion) HEADER_DIR="/usr/src/linux-obj/$(uname -i)/default/include" SRCROOT=$PWD OVT_SOURCE_DIR=$TOPDIR popd done popd done ### (this is part of the spec file posted recently on the open-vm-tools maiinglist). the 'for' with the flavors you can skip for your usecase. It will most likely be 'default' ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 13:54 Message: > You need to file a bug against the Fedora rpmfusion packager (i.e. myself), not upstream. > For the record, I have an RPM of the latest open-vm-tools, but I'm seeing > massive regression (drag-n-drop not working, etc...). But i'm short on > time, patches are always welcome. Where does rpmfusion matter in my context? I try to build the whole time by myself the same way i did before april and i need only the newest kernel-modules We are speaking from hi-performance web- and databaseservers living on an vmware-esxi drag-n-drop does not matter, i need vmxnet etc. on the buildmachine/internel cacherepo and distribute them with rsync to the other machines before distribute the kernel-updates to avoid downtime and problems maybe not solveable without networking on the live-servers. If i would have a rock-stable src.rpm which builds the newest versions for vmci, vmemctl and vmxnet against the last kernel-updates i can distribute this as optimiized httpd, php... from the buildmachine. However - It's crazy to modify the open-vm-tools in a way that they makes such problems On VMware-Supported distributions they nobody needs and on guests where you need them you can not use them any longer - WTF? ---------------------------------------------------------------------- Comment By: Denis Leroy (poolshark) Date: 2009-05-28 13:39 Message: You need to file a bug against the Fedora rpmfusion packager (i.e. myself), not upstream. For the record, I have an RPM of the latest open-vm-tools, but I'm seeing massive regression (drag-n-drop not working, etc...). But i'm short on time, patches are always welcome. ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 12:35 Message: Now i try to get compiled the kernel-modules and i would like to copy them directly without install the other stuff But it is not building - So give me please a working way to get the kernel-modules built on recent fedora-versions or make the old way working again cc1: warnings being treated as errors wiperPosix.c: In function 'Wiper_Init': wiperPosix.c:1016: error: ignoring return value of 'fgets', declared with attribute warn_unused_result make[2]: *** [wiperPosix.lo] Fehler 1 make[2]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib/wiper' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib' make: *** [all-recursive] Fehler 1 #!/bin/bash cd /scripts/open-vm-tools/open-vm-tools*/ export CFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" export CXXFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" ./configure \ --host=x86_64-redhat-linux-gnu \ --build=x86_64-redhat-linux-gnu \ --without-procps \ --without-gtkmm \ --without-gtk2 \ --disable-unity \ --disable-docs && make ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 11:24 Message: > The module directories don't contain all needed files anymore WHY? You make unuseable this for non c-programmers in many cases or hurt them Since many months this works very well on round 20 guest-machines and On the referenced mailing-list i find no clear solution to get this working as it did before april 2009. > you should probably get them from VMware's Tools distribution that goes with the products If this would be so easy there would be NO NEED for open-vm-tools because you need them for distributions with really new kernels as not official supported fedora-guests ---------------------------------------------------------------------- Comment By: Marcelo Vanzin (mvanzin) Date: 2009-05-28 11:00 Message: That won't work. The module directories don't contain all needed files anymore - the shared files are reused from other locations. If you want the tar packages you should probably get them from VMware's Tools distribution that goes with the products, or try to adapt the instructions on the following thread to create them from the open-vm-tools code: https://sourceforge.net/mailarchive/forum.php?thread_name=200905181606.57759.olivier.lahaye%40cea.fr&forum_name=open-vm-tools-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&group_id=204462 |
From: SourceForge.net <no...@so...> - 2009-05-28 11:54:31
|
Tracker item #2797776, was opened at 2009-05-28 10:45 Message generated for change (Comment added) made by reindl_harald You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&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: v1.0 (example) Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: Reindl Harald (reindl_harald) Assigned to: Nobody/Anonymous (nobody) Summary: kernel-modules not longer building on fedora Initial Comment: Since april 2009 the open-vm-tools are not longer building on fedora 9 / fedora 10 Since a long time i use the following script to build the kernel-modules for distributing after that to all other machines and it would be fine to get this working again because kernel 2.6.29 landed in updates-testing today [root@buildserver:/scripts]$ cat /scripts/open-vm-tools/build.sh #!/bin/bash tar -xzf open-vm-tools-*.gz cd open-vm-tools-*/modules/linux modsrc="/usr/lib/vmware-tools/modules/source" for x in `ls -d v*` do mv $x ${x}-only tar -cf $x.tar ${x}-only mv ${x}-only $x mv $modsrc/$x.tar $modsrc/$x.tar.orig mv $x.tar $modsrc done vmware-config-tools.pl ---------------------------------------------------------------------- >Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 13:54 Message: > You need to file a bug against the Fedora rpmfusion packager (i.e. myself), not upstream. > For the record, I have an RPM of the latest open-vm-tools, but I'm seeing > massive regression (drag-n-drop not working, etc...). But i'm short on > time, patches are always welcome. Where does rpmfusion matter in my context? I try to build the whole time by myself the same way i did before april and i need only the newest kernel-modules We are speaking from hi-performance web- and databaseservers living on an vmware-esxi drag-n-drop does not matter, i need vmxnet etc. on the buildmachine/internel cacherepo and distribute them with rsync to the other machines before distribute the kernel-updates to avoid downtime and problems maybe not solveable without networking on the live-servers. If i would have a rock-stable src.rpm which builds the newest versions for vmci, vmemctl and vmxnet against the last kernel-updates i can distribute this as optimiized httpd, php... from the buildmachine. However - It's crazy to modify the open-vm-tools in a way that they makes such problems On VMware-Supported distributions they nobody needs and on guests where you need them you can not use them any longer - WTF? ---------------------------------------------------------------------- Comment By: Denis Leroy (poolshark) Date: 2009-05-28 13:39 Message: You need to file a bug against the Fedora rpmfusion packager (i.e. myself), not upstream. For the record, I have an RPM of the latest open-vm-tools, but I'm seeing massive regression (drag-n-drop not working, etc...). But i'm short on time, patches are always welcome. ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 12:35 Message: Now i try to get compiled the kernel-modules and i would like to copy them directly without install the other stuff But it is not building - So give me please a working way to get the kernel-modules built on recent fedora-versions or make the old way working again cc1: warnings being treated as errors wiperPosix.c: In function 'Wiper_Init': wiperPosix.c:1016: error: ignoring return value of 'fgets', declared with attribute warn_unused_result make[2]: *** [wiperPosix.lo] Fehler 1 make[2]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib/wiper' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib' make: *** [all-recursive] Fehler 1 #!/bin/bash cd /scripts/open-vm-tools/open-vm-tools*/ export CFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" export CXXFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" ./configure \ --host=x86_64-redhat-linux-gnu \ --build=x86_64-redhat-linux-gnu \ --without-procps \ --without-gtkmm \ --without-gtk2 \ --disable-unity \ --disable-docs && make ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 11:24 Message: > The module directories don't contain all needed files anymore WHY? You make unuseable this for non c-programmers in many cases or hurt them Since many months this works very well on round 20 guest-machines and On the referenced mailing-list i find no clear solution to get this working as it did before april 2009. > you should probably get them from VMware's Tools distribution that goes with the products If this would be so easy there would be NO NEED for open-vm-tools because you need them for distributions with really new kernels as not official supported fedora-guests ---------------------------------------------------------------------- Comment By: Marcelo Vanzin (mvanzin) Date: 2009-05-28 11:00 Message: That won't work. The module directories don't contain all needed files anymore - the shared files are reused from other locations. If you want the tar packages you should probably get them from VMware's Tools distribution that goes with the products, or try to adapt the instructions on the following thread to create them from the open-vm-tools code: https://sourceforge.net/mailarchive/forum.php?thread_name=200905181606.57759.olivier.lahaye%40cea.fr&forum_name=open-vm-tools-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&group_id=204462 |
From: SourceForge.net <no...@so...> - 2009-05-28 11:39:28
|
Tracker item #2797776, was opened at 2009-05-28 01:45 Message generated for change (Comment added) made by poolshark You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&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: v1.0 (example) Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: Reindl Harald (reindl_harald) Assigned to: Nobody/Anonymous (nobody) Summary: kernel-modules not longer building on fedora Initial Comment: Since april 2009 the open-vm-tools are not longer building on fedora 9 / fedora 10 Since a long time i use the following script to build the kernel-modules for distributing after that to all other machines and it would be fine to get this working again because kernel 2.6.29 landed in updates-testing today [root@buildserver:/scripts]$ cat /scripts/open-vm-tools/build.sh #!/bin/bash tar -xzf open-vm-tools-*.gz cd open-vm-tools-*/modules/linux modsrc="/usr/lib/vmware-tools/modules/source" for x in `ls -d v*` do mv $x ${x}-only tar -cf $x.tar ${x}-only mv ${x}-only $x mv $modsrc/$x.tar $modsrc/$x.tar.orig mv $x.tar $modsrc done vmware-config-tools.pl ---------------------------------------------------------------------- Comment By: Denis Leroy (poolshark) Date: 2009-05-28 04:39 Message: You need to file a bug against the Fedora rpmfusion packager (i.e. myself), not upstream. For the record, I have an RPM of the latest open-vm-tools, but I'm seeing massive regression (drag-n-drop not working, etc...). But i'm short on time, patches are always welcome. ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 03:35 Message: Now i try to get compiled the kernel-modules and i would like to copy them directly without install the other stuff But it is not building - So give me please a working way to get the kernel-modules built on recent fedora-versions or make the old way working again cc1: warnings being treated as errors wiperPosix.c: In function 'Wiper_Init': wiperPosix.c:1016: error: ignoring return value of 'fgets', declared with attribute warn_unused_result make[2]: *** [wiperPosix.lo] Fehler 1 make[2]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib/wiper' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib' make: *** [all-recursive] Fehler 1 #!/bin/bash cd /scripts/open-vm-tools/open-vm-tools*/ export CFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" export CXXFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" ./configure \ --host=x86_64-redhat-linux-gnu \ --build=x86_64-redhat-linux-gnu \ --without-procps \ --without-gtkmm \ --without-gtk2 \ --disable-unity \ --disable-docs && make ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 02:24 Message: > The module directories don't contain all needed files anymore WHY? You make unuseable this for non c-programmers in many cases or hurt them Since many months this works very well on round 20 guest-machines and On the referenced mailing-list i find no clear solution to get this working as it did before april 2009. > you should probably get them from VMware's Tools distribution that goes with the products If this would be so easy there would be NO NEED for open-vm-tools because you need them for distributions with really new kernels as not official supported fedora-guests ---------------------------------------------------------------------- Comment By: Marcelo Vanzin (mvanzin) Date: 2009-05-28 02:00 Message: That won't work. The module directories don't contain all needed files anymore - the shared files are reused from other locations. If you want the tar packages you should probably get them from VMware's Tools distribution that goes with the products, or try to adapt the instructions on the following thread to create them from the open-vm-tools code: https://sourceforge.net/mailarchive/forum.php?thread_name=200905181606.57759.olivier.lahaye%40cea.fr&forum_name=open-vm-tools-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&group_id=204462 |
From: SourceForge.net <no...@so...> - 2009-05-28 10:35:21
|
Tracker item #2797776, was opened at 2009-05-28 10:45 Message generated for change (Comment added) made by reindl_harald You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&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: v1.0 (example) Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: Reindl Harald (reindl_harald) Assigned to: Nobody/Anonymous (nobody) Summary: kernel-modules not longer building on fedora Initial Comment: Since april 2009 the open-vm-tools are not longer building on fedora 9 / fedora 10 Since a long time i use the following script to build the kernel-modules for distributing after that to all other machines and it would be fine to get this working again because kernel 2.6.29 landed in updates-testing today [root@buildserver:/scripts]$ cat /scripts/open-vm-tools/build.sh #!/bin/bash tar -xzf open-vm-tools-*.gz cd open-vm-tools-*/modules/linux modsrc="/usr/lib/vmware-tools/modules/source" for x in `ls -d v*` do mv $x ${x}-only tar -cf $x.tar ${x}-only mv ${x}-only $x mv $modsrc/$x.tar $modsrc/$x.tar.orig mv $x.tar $modsrc done vmware-config-tools.pl ---------------------------------------------------------------------- >Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 12:35 Message: Now i try to get compiled the kernel-modules and i would like to copy them directly without install the other stuff But it is not building - So give me please a working way to get the kernel-modules built on recent fedora-versions or make the old way working again cc1: warnings being treated as errors wiperPosix.c: In function 'Wiper_Init': wiperPosix.c:1016: error: ignoring return value of 'fgets', declared with attribute warn_unused_result make[2]: *** [wiperPosix.lo] Fehler 1 make[2]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib/wiper' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/usr/local/scripts/open-vm-tools/open-vm-tools-2009.05.22-167859/lib' make: *** [all-recursive] Fehler 1 #!/bin/bash cd /scripts/open-vm-tools/open-vm-tools*/ export CFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" export CXXFLAGS="-O6 -march=native -mtune=native -fopenmp -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=2" ./configure \ --host=x86_64-redhat-linux-gnu \ --build=x86_64-redhat-linux-gnu \ --without-procps \ --without-gtkmm \ --without-gtk2 \ --disable-unity \ --disable-docs && make ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 11:24 Message: > The module directories don't contain all needed files anymore WHY? You make unuseable this for non c-programmers in many cases or hurt them Since many months this works very well on round 20 guest-machines and On the referenced mailing-list i find no clear solution to get this working as it did before april 2009. > you should probably get them from VMware's Tools distribution that goes with the products If this would be so easy there would be NO NEED for open-vm-tools because you need them for distributions with really new kernels as not official supported fedora-guests ---------------------------------------------------------------------- Comment By: Marcelo Vanzin (mvanzin) Date: 2009-05-28 11:00 Message: That won't work. The module directories don't contain all needed files anymore - the shared files are reused from other locations. If you want the tar packages you should probably get them from VMware's Tools distribution that goes with the products, or try to adapt the instructions on the following thread to create them from the open-vm-tools code: https://sourceforge.net/mailarchive/forum.php?thread_name=200905181606.57759.olivier.lahaye%40cea.fr&forum_name=open-vm-tools-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&group_id=204462 |
From: SourceForge.net <no...@so...> - 2009-05-28 09:24:38
|
Tracker item #2797776, was opened at 2009-05-28 10:45 Message generated for change (Comment added) made by reindl_harald You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&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: v1.0 (example) Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Reindl Harald (reindl_harald) Assigned to: Nobody/Anonymous (nobody) Summary: kernel-modules not longer building on fedora Initial Comment: Since april 2009 the open-vm-tools are not longer building on fedora 9 / fedora 10 Since a long time i use the following script to build the kernel-modules for distributing after that to all other machines and it would be fine to get this working again because kernel 2.6.29 landed in updates-testing today [root@buildserver:/scripts]$ cat /scripts/open-vm-tools/build.sh #!/bin/bash tar -xzf open-vm-tools-*.gz cd open-vm-tools-*/modules/linux modsrc="/usr/lib/vmware-tools/modules/source" for x in `ls -d v*` do mv $x ${x}-only tar -cf $x.tar ${x}-only mv ${x}-only $x mv $modsrc/$x.tar $modsrc/$x.tar.orig mv $x.tar $modsrc done vmware-config-tools.pl ---------------------------------------------------------------------- Comment By: Reindl Harald (reindl_harald) Date: 2009-05-28 11:24 Message: > The module directories don't contain all needed files anymore WHY? You make unuseable this for non c-programmers in many cases or hurt them Since many months this works very well on round 20 guest-machines and On the referenced mailing-list i find no clear solution to get this working as it did before april 2009. > you should probably get them from VMware's Tools distribution that goes with the products If this would be so easy there would be NO NEED for open-vm-tools because you need them for distributions with really new kernels as not official supported fedora-guests ---------------------------------------------------------------------- Comment By: Marcelo Vanzin (mvanzin) Date: 2009-05-28 11:00 Message: That won't work. The module directories don't contain all needed files anymore - the shared files are reused from other locations. If you want the tar packages you should probably get them from VMware's Tools distribution that goes with the products, or try to adapt the instructions on the following thread to create them from the open-vm-tools code: https://sourceforge.net/mailarchive/forum.php?thread_name=200905181606.57759.olivier.lahaye%40cea.fr&forum_name=open-vm-tools-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&group_id=204462 |
From: SourceForge.net <no...@so...> - 2009-05-28 09:00:22
|
Tracker item #2797776, was opened at 2009-05-28 01:45 Message generated for change (Comment added) made by mvanzin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&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: v1.0 (example) >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: Reindl Harald (reindl_harald) Assigned to: Nobody/Anonymous (nobody) Summary: kernel-modules not longer building on fedora Initial Comment: Since april 2009 the open-vm-tools are not longer building on fedora 9 / fedora 10 Since a long time i use the following script to build the kernel-modules for distributing after that to all other machines and it would be fine to get this working again because kernel 2.6.29 landed in updates-testing today [root@buildserver:/scripts]$ cat /scripts/open-vm-tools/build.sh #!/bin/bash tar -xzf open-vm-tools-*.gz cd open-vm-tools-*/modules/linux modsrc="/usr/lib/vmware-tools/modules/source" for x in `ls -d v*` do mv $x ${x}-only tar -cf $x.tar ${x}-only mv ${x}-only $x mv $modsrc/$x.tar $modsrc/$x.tar.orig mv $x.tar $modsrc done vmware-config-tools.pl ---------------------------------------------------------------------- >Comment By: Marcelo Vanzin (mvanzin) Date: 2009-05-28 02:00 Message: That won't work. The module directories don't contain all needed files anymore - the shared files are reused from other locations. If you want the tar packages you should probably get them from VMware's Tools distribution that goes with the products, or try to adapt the instructions on the following thread to create them from the open-vm-tools code: https://sourceforge.net/mailarchive/forum.php?thread_name=200905181606.57759.olivier.lahaye%40cea.fr&forum_name=open-vm-tools-devel ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&group_id=204462 |
From: SourceForge.net <no...@so...> - 2009-05-28 08:45:13
|
Tracker item #2797776, was opened at 2009-05-28 10:45 Message generated for change (Tracker Item Submitted) made by reindl_harald You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&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: v1.0 (example) Status: Open Resolution: None Priority: 5 Private: No Submitted By: Reindl Harald (reindl_harald) Assigned to: Nobody/Anonymous (nobody) Summary: kernel-modules not longer building on fedora Initial Comment: Since april 2009 the open-vm-tools are not longer building on fedora 9 / fedora 10 Since a long time i use the following script to build the kernel-modules for distributing after that to all other machines and it would be fine to get this working again because kernel 2.6.29 landed in updates-testing today [root@buildserver:/scripts]$ cat /scripts/open-vm-tools/build.sh #!/bin/bash tar -xzf open-vm-tools-*.gz cd open-vm-tools-*/modules/linux modsrc="/usr/lib/vmware-tools/modules/source" for x in `ls -d v*` do mv $x ${x}-only tar -cf $x.tar ${x}-only mv ${x}-only $x mv $modsrc/$x.tar $modsrc/$x.tar.orig mv $x.tar $modsrc done vmware-config-tools.pl ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2797776&group_id=204462 |
From: Olivier L. <oli...@ce...> - 2009-05-27 11:29:00
|
Thanks Marcelo, I think I've got it. I finaly managed how to create a working dkms package following your tips. the result can be found here: http://olivier.lahaye1.free.fr/SRPMS/open-vm-tools-2009.05.22.167859-1mdv2009.1.src.rpm http://olivier.lahaye1.free.fr/RPMS/open-vm-tools-2009.05.22.167859-1mdv2009.1.x86_64.rpm http://olivier.lahaye1.free.fr/RPMS/open-vm-tools-devel-2009.05.22.167859-1mdv2009.1.x86_64.rpm http://olivier.lahaye1.free.fr/RPMS/dkms-open-vm-tools-2009.05.22.167859-1mdv2009.1.x86_64.rpm I've attached the spec file so you can look at the %install stage and see all the tricks I did. Basicaly: for DKMS package: - I've patched dkms.conf file to have vmci module built before vsock and thus have the VMwareVMCIModule.symvers file generated befor building vsock module - I've patched dkms.conf file to define MODULEBUILDDIR as it seems not defined when run from dkms and thus symers files are not properly copied. - I've created a symlink to the shared directory in each module tree. (I think there are better way for this approach like changing the way makefiles are generated so they all use the shared directory in the parent directory. - I've put all shared includes form lib/include /lib/misc/ ....into the shared directory - I've put specific source files and includes in respective modules directory - I've put backdoorGcc*.c files into vmhgfs directory and created a symlink to it into the vmmemctl directory. (I think there should be a better approach to this problem, but this quick and dirty hack is doing its job for now). I've attached the content of the 3 binary packages for information. Regards, Olivier. Le mardi 26 mai 2009 01:48:58 Marcelo Vanzin, vous avez écrit : > Hi Olivier, > > Olivier LAHAYE wrote: > > Then I had to patch docs/api/Makefile.am to add the -e > > 's,##{PROJECT_NAME}##,@PACKAGE_STRING@,' line and then I had to fix > > lib/wiper/wiperPosix.c to handle fgets return. > > Thanks for pointing out the PROJECT_NAME thing, I'll fix that. Dominique also > pointed out the fgets() issue (it seems Ubuntu's headers are still not > complaining about that function so I didn't catch it), I'll fix it internally > (it shouldn't be hard to work around so you get things to compile). > > > - Put modules in a dkms package that build modules at boot if the kernel has > > been updated > > If you start with the latest open-vm-tools package, to create a working kernel > module package to each module, you'll have to do the following: > > . create a new <target> directory for the module source > . copy the module sources from their original locations into <target> > . copy the modules/linux/shared directory into <target> (you should end up with > a "shared" subdirectory) > . if one exists, copy the contents of modules/shared/<module> into <target> > . copy shared headers from lib/include into <target>/shared; these should take > care of all modules: > > backdoor_def.h > backdoor_types.h > guest_msg_def.h > includeCheck.h > vm_assert.h > vm_atomic.h > vm_basic_asm.h > vm_basic_asm_x86.h > vm_basic_asm_x86_64.h > vm_basic_defs.h > vm_basic_math.h > vm_basic_types.h > vm_device_version.h > vmware.h > vmware_pack_begin.h > vmware_pack_end.h > vmware_pack_init.h > dbllnklst.h > circList.h > x86cpuid.h > > . for a few modules, you'll have to copy extra source files (and some private > header files) from lib/ into <target>; I think the worst case here is vmhgfs. > You can check each module's Makefile.kernel to figure out the source files that > need to be copied (there will be a section starting with "ifdef OVT_SOURCE_DIR" > where all object files are listed manually - you just need to copy the > corresponding .c file from lib/). > > Hopefully this can get you started. > > > I've notices in the modules dir that the Makefile has different behaviours > > depending OVT_SOURCE_DIR is defined or not. I've also noticed that the > > dkms.conf file uses the standard Makefile. Then what is the purpose of > > Makefile.kernel file? > > OVT_SOURCE_DIR is used when compiling the sources within the open-vm-tools tree; > they allow the makefiles to find all those shared header and sources you'll have > to copy into the module's directory when using dkms. > > Makefile.kernel is needed because some modules also support 2.4 kernels, and the > build instructions for those is in Makefile.normal. The top-level Makefile will > detect which sub-makefile it needs to use. > > > - Create a working open-vm-tools-devel package that permit developpements of > > new tools (tuypicaly would contain includes and .so files) > > As Dominique hinted at, mostly open-vm-tools are not yet extensible and wouldn't > need a -devel package; there's one exception, though - the "guestlib" library. > But you just need to install a handful of headers for this library (instead of > everything under lib/include), namely: > > vm_basic_types.h > vmGuestLib.h > vmSessionId.h > includeCheck.h > > It's also a good idea to include "modules/linux/vsock/linux/vmci_sockets.h" in > that package so that users can write programs that use the vsock module. > > > I've also created an init file (/etc/init.d/vmtoolsd) that should be LSB > > compatible (see attachment). > > I think it would be great to have this file in the distribution, even if just to > serve as a starting point for packagers. If you haven't done so yet, could you > take a look at http://open-vm-tools.sourceforge.net/contribute.php and follow > the instructions so we can get it into the official package? > > > Maybe one day all thoses modules will go into the standard linux kernel.... > > who knows? > > Believe me, you're not the only people who want that to happen. :-) > -- Olivier LAHAYE CEA Saclay DRT-LIST-DETECS-SSTM |
From: Dominique L. <Dom...@TM...> - 2009-05-27 06:26:06
|
Dmitry, Marcelo, >>> On 5/26/2009 at 6:53 , Dmitry Torokhov <dt...@vm...> wrote: > modules/linux/vmblock/linux/control.c-#if LINUX_VERSION_CODE < > KERNEL_VERSION(2, 6, 24) > modules/linux/vmblock/linux/control.c: entry->owner = THIS_MODULE; > modules/linux/vmblock/linux/control.c-#endif > > I just freshly unpacked the 05.22 tarball and modules compiled against > 2.6.30-rc7 without any issues. Sorry, you're absolutely right. All this failing actually had me look at the wrong build log for this issue. I have two project s with open-vm-tools, one with the released version (was still 2009.03.23) and one rolling development, to be released. And the compilation of course failed in the older one. I'm so very sorry for this. Dominique |
From: Dmitry T. <dt...@vm...> - 2009-05-26 21:08:32
|
Hi Dominique, On Monday 25 May 2009 07:54:36 Dominique Leuenberger wrote: > Hi mates, > > Just one question: > Is there already a patch for the open-vm-tools (2009.05.22) for Kernel > 2.6.30 available? > > for now I see it failing with: > sing 2.6.x kernel build system. > CC [M] > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/block.o In > file included from > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/vmblockInt.h: >40, from > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/block.c:30: > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_ty >pes.h:145:7: warning: "__FreeBSD__" is not defined CC [M] > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.o In > file included from > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/vmblockInt.h: >40, from > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:33: > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_ty >pes.h:145:7: warning: "__FreeBSD__" is not defined > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c: In > function 'SetupProcDevice': > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:159 >: error: 'struct proc_dir_entry' has no member named 'owner' > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:171 >: error: 'struct proc_dir_entry' has no member named 'owner' make[3]: *** > [/usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.o] > Error 1 make[2]: *** > [_module_/usr/src/packages/BUILD/obj/debug/modules/linux/vmblock] Error 2 > make[1]: *** [sub-make] Error 2 > make: *** [all] Error 2 > make: Leaving directory `/usr/src/linux-2.6.30-rc6-git3-3-obj/x86_64/debug' > error: Bad exit status from /var/tmp/rpm-tmp.62886 (%build) > The following patch should help with 'undefined macro' errors. Thanks, Dmitry --- vm_basic_types.h.orig +++ vm_basic_types.h @@ -113,12 +113,12 @@ typedef char int8; #else /* !HAVE_STDINT_H */ -#ifdef _MSC_VER +#if defined(_MSC_VER) typedef unsigned __int64 uint64; typedef signed __int64 int64; -#elif __GNUC__ +#elif defined(__GNUC__) /* The Xserver source compiles with -ansi -pendantic */ #ifndef __STRICT_ANSI__ #if defined(VM_X86_64) @@ -128,7 +128,7 @@ typedef long int64; typedef unsigned long long uint64; typedef long long int64; #endif -#elif __FreeBSD__ +#elif defined(__FreeBSD__) typedef unsigned long long uint64; typedef long long int64; #endif @@ -261,7 +261,7 @@ typedef int64 VmTimeVirtualClock; /* Vi #define FMTSZ "z" #define FMTPD "l" #define FMTH "" -#elif __GNUC__ +#elif defined(__GNUC__) #define FMTH "" #if defined(N_PLAT_NLM) || defined(sun) || \ (defined(__FreeBSD__) && (__FreeBSD__ + 0) && ((__FreeBSD__ + 0) < 5)) @@ -600,7 +600,8 @@ typedef void * UserVA; * are added the inline-ness should be removed. */ -#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) +#if defined(__GNUC__) && \ + (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) /* * Starting at version 3.3, gcc does not always inline functions marked * 'inline' (it depends on their size). To force gcc to do so, one must use the @@ -633,7 +634,8 @@ typedef void * UserVA; #ifdef _MSC_VER #define NORETURN __declspec(noreturn) -#elif __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 9) +#elif defined(__GNUC__) && \ + (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 9)) #define NORETURN __attribute__((__noreturn__)) #else #define NORETURN @@ -644,7 +646,8 @@ typedef void * UserVA; * Older GCCs don't know about it --hpreg */ -#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2) +#if defined(__GNUC__) && \ + (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) # define VM_ASM_PLUS 1 #else # define VM_ASM_PLUS 0 @@ -663,7 +666,7 @@ typedef void * UserVA; * all others we don't so we do nothing. */ -#if (__GNUC__ >= 3) +#if defined(__GNUC__) && (__GNUC__ >= 3) /* * gcc3 uses __builtin_expect() to inform the compiler of an expected value. * We use this to inform the static branch predictor. The '!!' in LIKELY |
From: Marcelo V. <mv...@vm...> - 2009-05-26 18:37:59
|
Olivier LAHAYE wrote: > pvscsi: Unknown parameter `vmblock' This one beats me... I didn't see anything suspicious in your script. Can you "grep -r vmblock" in pvscsi's dkms source dir? > vmhgfs: Unknown symbol Backdoor_InOut > vmhgfs: Unknown symbol BackdoorHbIn > vmhgfs: Unknown symbol BackdoorHbOut > vmmemctl: Unknown symbol Backdoor_InOut You're missing backdoorGcc32.c and backdoorGcc64.c for these two modules. > vsock: no symbol version for VMCIMemcpyToQueueV [snip] vsock needs the symbols file created during the vmci module build so that it correctly references those symbols. This is controlled in vsock's makefile by defining MODPOST_VMCI_SYMVERS to the path of the .symvers file. I don't know how you'd express that dependency using dkms, though. I'll look at the duplicate files and see if I get rid of them. -- - Marcelo |
From: Dmitry T. <dt...@vm...> - 2009-05-26 16:54:25
|
Dominique, On Tuesday 26 May 2009 00:09:13 Dominique Leuenberger wrote: > >>> On 5/26/2009 at 8:56, "Dominique Leuenberger" > > Marcelo, > > > I think I posted at least three more lines of errors log, showing the > > error: > > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_ > >typ es.h:145:7: warning: "__FreeBSD__" is not defined > > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c: > > In function 'SetupProcDevice': > > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:1 > >59: error: 'struct proc_dir_entry' has no member named 'owner' > > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:1 > >71: error: 'struct proc_dir_entry' has no member named 'owner' > > make[3]: *** > > [/usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.o] > > Error 1 > > > > So the real error is in control.c, lines 159 and 171, where the structure > > proc_dir_entry seems no longer to contain an 'owner'. > > Just to follow up on this: > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h >=99b76233803beab302123d243eea9e41149804f3 > > owner WAS removed from that struct. > Something must be wrong with the source tree you are using. We do handle the removal of owner field form proc_dir_entry buy guarding against certain kernel version (.24 is first released kernel when setting owner was not really needed; .29 was the first kernel that actually broke compilation): modules/linux/vmblock/linux/control.c-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) modules/linux/vmblock/linux/control.c: entry->owner = THIS_MODULE; modules/linux/vmblock/linux/control.c-#endif I just freshly unpacked the 05.22 tarball and modules compiled against 2.6.30-rc7 without any issues. I will take a look at that warning in a minute. -- Dmitry |
From: Olivier L. <oli...@ce...> - 2009-05-26 15:41:58
|
Marcelo, thanks to your help, I've been able to create a somewhat working dkms build tree. Unfortunately, I still have problems when linking/insmoding some modules: pvscsi: Unknown parameter `vmblock' vmhgfs: Unknown symbol Backdoor_InOut vmhgfs: Unknown symbol BackdoorHbIn vmhgfs: Unknown symbol BackdoorHbOut vmmemctl: Unknown symbol Backdoor_InOut vsock: no symbol version for VMCIMemcpyToQueueV vsock: Unknown symbol VMCIMemcpyToQueueV vsock: no symbol version for VMCIEvent_Unsubscribe vsock: Unknown symbol VMCIEvent_Unsubscribe vsock: Unknown symbol VMCIQueuePair_Alloc vsock: no symbol version for VMCIDatagram_Send vsock: Unknown symbol VMCIDatagram_Send vsock: no symbol version for VMCI_GetContextID vsock: Unknown symbol VMCI_GetContextID vsock: Unknown symbol VMCIContext_GetPrivFlags vsock: Unknown symbol VMCIQueuePair_AllocPriv vsock: Unknown symbol VMCIQueuePair_Detach vsock: Unknown symbol VMCIDatagram_CreateHndPriv vsock: no symbol version for VMCIMemcpyFromQueueV vsock: Unknown symbol VMCIMemcpyFromQueueV vsock: Unknown symbol VMCI_DeviceGet vsock: no symbol version for VMCIEvent_Subscribe vsock: Unknown symbol VMCIEvent_Subscribe vsock: no symbol version for VMCIDatagram_DestroyHnd vsock: Unknown symbol VMCIDatagram_DestroyHnd vsock: no symbol version for VMCIDatagram_CreateHnd vsock: Unknown symbol VMCIDatagram_CreateHnd Here is what I'm doing to create the dkms tree: Basicaly, I'm creating the ../shared link in each modules dir, then I'm putting lib/include/relevant_include.h in the shared directory then I'm copying all includes specific to a module in its directory. See below the exact actions: ================================================== # Create dkms tree and fill it mkdir -p $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release} cp -r modules/linux/* $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/ # Common stuffs for modules cp lib/include/{vmware.h,vm_assert.h,includeCheck.h,vmware_pack_begin.h,vmware_pack_end.h,vm_basic_defs.h,vm_basic_types.h,vm_device_version.h,vmware_pack_init.h,vm_atomic.h,circList.h,backdoor.h,x86cpuid.h,vm_basic_asm_x86_64.h,vm_basic_math.h,vm_basic_asm.h} \ $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/shared/ # setup shared link for module_dir in pvscsi vmblock vmci vmhgfs vmmemctl vmsync vmxnet vmxnet3 vsock do (cd $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/$module_dir; ln -s ../shared) done # Specific stuff for pvscsi # => none # Specific stuff for vmblock cp lib/include/{vmblock.h,dbllnklst.h} \ $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/vmblock/linux/ cp modules/shared/vmblock/* \ $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/vmblock/linux/ # => none # Specific stuff for vmci # => none # Specific stuff for vmhgfs cp lib/backdoor/backdoor.[ch] \ lib/hgfs/{cpName.c,cpNameInt.h,cpNameLinux.c,cpNameLite.c,hgfsEscape.c,hgfsUtil.c} \ lib/include/{cpName.h,hgfsUtil.h,hgfsEscape.h,util.h,rpcout.h,hgfsBd.h,debug.h,backdoor_def.h,guest_msg_def.h,message.h,rpcout.h,backdoor_types.h,hgfsDevLinux.h,hgfsProto.h,cpNameLite.h,escBitvector.h} \ lib/hgfsBd/hgfsBd.c \ lib/message/{messageBackdoor.c,message.c} \ lib/rpcOut/rpcout.c \ $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/vmhgfs/ # Specific stuff for vmmemctl # => none # Specific stuff for vmsync cp lib/include/syncDriverIoc.h \ $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/vmsync/ # Specific stuff for vmxnet and vmxnet3 cp modules/shared/vmxnet/* \ $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/shared/ # Specific stuff for vsock cp lib/include/vm_basic_math.h \ $RPM_BUILD_ROOT%{_usrsrc}/%{name}-%{version}-%{release}/vsock/ ================================================== $ rpm -ql dkms-open-vm-tools-2009.05.22.167859-1mdv2009.1 /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1 /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/dkms.conf /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi/pvscsi.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi/pvscsi_defs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi/pvscsi_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi/scsi_defs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/pvscsi/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/cachecreate.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/cachector.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/cachector1.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/epoll.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/filldir1.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/geninclude.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/getsb1.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/inode1.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/maxbytes.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/netif_num_params.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/setnice.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/sk_filter.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/skas1.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/skblin.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/autoconf/statfs1.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/backdoor.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/circList.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_completion.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_cred.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_dcache.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_ethtool.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_file.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_fs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_highmem.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_init.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_interrupt.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_ioport.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_kernel.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_kthread.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_list.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_mm.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_module.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_mutex.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_namei.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_netdevice.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_page-flags.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_page.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_pagemap.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_pci.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_pci_mapping.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_pgtable.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_sched.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_scsi.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_semaphore.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_skbuff.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_slab.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_sock.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_spinlock.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_statfs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_string.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_timer.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_uaccess.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_wait.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/compat_workqueue.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/driver-config.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/driverLog.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/driverLog.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/includeCheck.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/kernelStubs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/kernelStubsLinux.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/net.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/net_sg.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/npa_defs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/upt1_defs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vm_assert.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vm_atomic.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vm_basic_asm.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vm_basic_asm_x86_64.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vm_basic_defs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vm_basic_math.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vm_basic_types.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vm_device_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmciGuestKernelAPI.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmci_call_defs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmci_defs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmci_infrastructure.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmci_iocontrols.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmci_kernel_if.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmci_queue_pair.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmnet_def.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmware.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmware_pack_begin.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmware_pack_end.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmware_pack_init.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmxnet2_def.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmxnet3_defs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/vmxnet_def.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/shared/x86cpuid.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/Makefile.normal /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/README /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/block.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/block.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/control.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/dbllnklst.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/dentry.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/file.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/filesystem.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/filesystem.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/inode.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/module.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/os.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/stubs.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/stubs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/super.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/vmblock.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/vmblockInt.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/linux/vmblock_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmblock/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/Makefile.normal /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/pgtbl.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciCommonInt.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciDatagram.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciDatagram.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciEvent.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciEvent.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciGuestDs.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciGuestKernelIf.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciGuestKernelIf.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciInt.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciKernelIf.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciProcess.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciProcess.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciQueuePair.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciQueuePairInt.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciUtil.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmciUtil.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmci_drv.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmci_handle_array.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmci/vmci_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/Makefile.normal /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/backdoor.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/backdoor_def.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/backdoor_types.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/bdhandler.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/bdhandler.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/cpName.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/cpName.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/cpNameInt.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/cpNameLinux.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/cpNameLite.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/cpNameLite.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/debug.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/dentry.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/dir.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/escBitvector.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/file.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/filesystem.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/filesystem.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/fsutil.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/fsutil.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/guest_msg_def.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfs.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfsBd.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfsBd.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfsDevLinux.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfsEscape.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfsEscape.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfsProto.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfsUtil.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/hgfsUtil.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/inode.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/inode.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/link.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/message.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/message.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/messageBackdoor.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/module.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/module.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/page.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/request.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/request.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/rpcout.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/rpcout.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/stubs.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/super.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/tcp.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/tcp.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/transport.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/transport.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/util.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmhgfs/vmhgfs_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/Makefile.normal /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/README /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/backdoor_balloon.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/balloon_def.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/os.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/os.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/vmballoon.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/vmballoon.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmmemctl/vmmemctl_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmsync /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmsync/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmsync/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmsync/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmsync/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmsync/sync.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmsync/syncDriverIoc.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmsync/vmsync_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/Makefile.normal /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/README /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/vmxnet.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/vmxnetInt.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet/vmxnet_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3 /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3/README /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3/vmxnet3.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3/vmxnet3_int.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vmxnet3/vmxnet3_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/COPYING /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/Makefile /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/Makefile.kernel /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/Makefile.normal /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/README /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/af_vsock.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/af_vsock.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/notify.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/notify.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/stats.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/stats.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/util.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/util.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vmciContext.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vmciDatagram.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vmciHostKernelAPI.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vmci_sockets.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vmci_sockets_int.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vsockAddr.c /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vsockAddr.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vsockCommon.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vsockPacket.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vsockSocketWrapper.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vsockVmci.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/linux/vsock_version.h /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/shared /usr/src/open-vm-tools-2009.05.22.167859-1mdv2009.1/vsock/vm_basic_math.h ========================================== I did not modify any files (either Makefiles or dkms.conf files) it looks like vsock is not linked with some vmci stuff, vmmemctl and vmhgfs are not linked with some backdoor stuff. as for "pvscsi: Unknown parameter `vmblock'" I don't understand.... Any ideas? Best regards. > Thanks a lot for your tips, I'm progressing in sorting out how to create a > minimal stand-alone dkms build tree. > During my research, I've found that there are sometimes different includes > with the same name (e.g.: util.h) > example in the vsock module:> I've also noted the following duplicate names in includes: ./modules/linux/vmblock/linux/filesystem.h ./modules/linux/vmhgfs/filesystem.h ./modules/linux/vsock/linux/vmciDatagram.h ./modules/linux/vmci/vmciDatagram.h -- Olivier LAHAYE CEA Saclay DRT-LIST-DETECS-SSTM |
From: Olivier L. <oli...@ce...> - 2009-05-26 12:06:41
|
Hi Marcelo, Thanks a lot for your tips, I'm progressing in sorting out how to create a minimal stand-alone dkms build tree. During my research, I've found that there are sometimes different includes with the same name (e.g.: util.h) example in the vsock module:> > Olivier LAHAYE wrote: > > Then I had to patch docs/api/Makefile.am to add the -e > > 's,##{PROJECT_NAME}##,@PACKAGE_STRING@,' line and then I had to fix > > lib/wiper/wiperPosix.c to handle fgets return. > > Thanks for pointing out the PROJECT_NAME thing, I'll fix that. Dominique > also pointed out the fgets() issue (it seems Ubuntu's headers are still not > complaining about that function so I didn't catch it), I'll fix it > internally (it shouldn't be hard to work around so you get things to > compile). > > > - Put modules in a dkms package that build modules at boot if the kernel > > has been updated > > If you start with the latest open-vm-tools package, to create a working > kernel module package to each module, you'll have to do the following: > > . create a new <target> directory for the module source > . copy the module sources from their original locations into <target> > . copy the modules/linux/shared directory into <target> (you should end up > with a "shared" subdirectory) > . if one exists, copy the contents of modules/shared/<module> into <target> > . copy shared headers from lib/include into <target>/shared; these should > take care of all modules: > > backdoor_def.h > backdoor_types.h > guest_msg_def.h > includeCheck.h > vm_assert.h > vm_atomic.h > vm_basic_asm.h > vm_basic_asm_x86.h > vm_basic_asm_x86_64.h > vm_basic_defs.h > vm_basic_math.h > vm_basic_types.h > vm_device_version.h > vmware.h > vmware_pack_begin.h > vmware_pack_end.h > vmware_pack_init.h > dbllnklst.h > circList.h > x86cpuid.h > ./modules/linux/vsock/linux/util.h ./lib/include/util.h => in the vsock build if the include path is incorectly set, this could lead to a situation where the wrong include (lib/include/util.h) is used (either by a .c or a sub include) instead of the correct one. Le mardi 26 mai 2009 01:48:58 Marcelo Vanzin, vous avez écrit : > Hi Olivier, > [...] > > . for a few modules, you'll have to copy extra source files (and some > private header files) from lib/ into <target>; I think the worst case here > is vmhgfs. You can check each module's Makefile.kernel to figure out the > source files that need to be copied (there will be a section starting with > "ifdef OVT_SOURCE_DIR" where all object files are listed manually - you > just need to copy the corresponding .c file from lib/). > > Hopefully this can get you started. It helps a lot :-) Though, there is still work to identify all files......... a "make standalone_module_tree" rule in the autotool config would help so much.... > [...] > > I've also created an init file (/etc/init.d/vmtoolsd) that should be LSB > > compatible (see attachment). > > I think it would be great to have this file in the distribution, even if > just to serve as a starting point for packagers. If you haven't done so > yet, could you take a look at > http://open-vm-tools.sourceforge.net/contribute.php and follow the > instructions so we can get it into the official package? I had a look, unfortunately, this file was not originaly created by me. If my memory is correct, it is a updated version of fedora package vmware-guestd Though, anybody can create a similar file based on other init.d startup script. > > Maybe one day all thoses modules will go into the standard linux > > kernel.... who knows? > > Believe me, you're not the only people who want that to happen. :-) Strange ;-) Regards, -- Olivier LAHAYE CEA Saclay DRT-LIST-DETECS-SSTM |
From: Dominique L. <Dom...@TM...> - 2009-05-26 07:09:52
|
>>> On 5/26/2009 at 8:56, "Dominique Leuenberger" Marcelo, > I think I posted at least three more lines of errors log, showing the error: > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_typ > es.h:145:7: warning: "__FreeBSD__" is not defined > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c: In > function 'SetupProcDevice': > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:159: > error: 'struct proc_dir_entry' has no member named 'owner' > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:171: > error: 'struct proc_dir_entry' has no member named 'owner' > make[3]: *** > [/usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.o] > Error 1 > > So the real error is in control.c, lines 159 and 171, where the structure > proc_dir_entry seems no longer to contain an 'owner'. Just to follow up on this: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=99b76233803beab302123d243eea9e41149804f3 owner WAS removed from that struct. |
From: Dominique L. <Dom...@TM...> - 2009-05-26 06:57:10
|
Marcelo, >>> On 5/26/2009 at 1:09, Marcelo Vanzin <mv...@vm...> wrote: >> Just one question: >> Is there already a patch for the open-vm-tools (2009.05.22) for Kernel 2.6.30 > available? > > Did you try with any other kernel (just to make sure this is really > something > caused by changes in 2.6.30)? > Yes, the package is at any time build for openSUSE 11.1 (based on 2.6.27) and openSUSE Factory (11.2 to be). It was 2.6.29 until just a day ago and it built, the 2.6.30 landed and I got the build failures. >> for now I see it failing with: >> sing 2.6.x kernel build system. >> CC [M] /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/block.o >> In file included from > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/vmblockInt.h:40 > , >> from > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/block.c:30: >> > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_type > s.h:145:7: warning: "__FreeBSD__" is not defined > > This is weird. Could you share some more details about how you're staging > these > files? Line 145 in vm_basic_types.h in my git tree is a comment... I think I posted at least three more lines of errors log, showing the error: /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_types.h:145:7: warning: "__FreeBSD__" is not defined /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c: In function 'SetupProcDevice': /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:159: error: 'struct proc_dir_entry' has no member named 'owner' /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:171: error: 'struct proc_dir_entry' has no member named 'owner' make[3]: *** [/usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.o] Error 1 So the real error is in control.c, lines 159 and 171, where the structure proc_dir_entry seems no longer to contain an 'owner'. Dominique |
From: Marcelo V. <mv...@vm...> - 2009-05-25 23:50:17
|
Hi Olivier, Olivier LAHAYE wrote: > Then I had to patch docs/api/Makefile.am to add the -e > 's,##{PROJECT_NAME}##,@PACKAGE_STRING@,' line and then I had to fix > lib/wiper/wiperPosix.c to handle fgets return. Thanks for pointing out the PROJECT_NAME thing, I'll fix that. Dominique also pointed out the fgets() issue (it seems Ubuntu's headers are still not complaining about that function so I didn't catch it), I'll fix it internally (it shouldn't be hard to work around so you get things to compile). > - Put modules in a dkms package that build modules at boot if the kernel has > been updated If you start with the latest open-vm-tools package, to create a working kernel module package to each module, you'll have to do the following: . create a new <target> directory for the module source . copy the module sources from their original locations into <target> . copy the modules/linux/shared directory into <target> (you should end up with a "shared" subdirectory) . if one exists, copy the contents of modules/shared/<module> into <target> . copy shared headers from lib/include into <target>/shared; these should take care of all modules: backdoor_def.h backdoor_types.h guest_msg_def.h includeCheck.h vm_assert.h vm_atomic.h vm_basic_asm.h vm_basic_asm_x86.h vm_basic_asm_x86_64.h vm_basic_defs.h vm_basic_math.h vm_basic_types.h vm_device_version.h vmware.h vmware_pack_begin.h vmware_pack_end.h vmware_pack_init.h dbllnklst.h circList.h x86cpuid.h . for a few modules, you'll have to copy extra source files (and some private header files) from lib/ into <target>; I think the worst case here is vmhgfs. You can check each module's Makefile.kernel to figure out the source files that need to be copied (there will be a section starting with "ifdef OVT_SOURCE_DIR" where all object files are listed manually - you just need to copy the corresponding .c file from lib/). Hopefully this can get you started. > I've notices in the modules dir that the Makefile has different behaviours > depending OVT_SOURCE_DIR is defined or not. I've also noticed that the > dkms.conf file uses the standard Makefile. Then what is the purpose of > Makefile.kernel file? OVT_SOURCE_DIR is used when compiling the sources within the open-vm-tools tree; they allow the makefiles to find all those shared header and sources you'll have to copy into the module's directory when using dkms. Makefile.kernel is needed because some modules also support 2.4 kernels, and the build instructions for those is in Makefile.normal. The top-level Makefile will detect which sub-makefile it needs to use. > - Create a working open-vm-tools-devel package that permit developpements of > new tools (tuypicaly would contain includes and .so files) As Dominique hinted at, mostly open-vm-tools are not yet extensible and wouldn't need a -devel package; there's one exception, though - the "guestlib" library. But you just need to install a handful of headers for this library (instead of everything under lib/include), namely: vm_basic_types.h vmGuestLib.h vmSessionId.h includeCheck.h It's also a good idea to include "modules/linux/vsock/linux/vmci_sockets.h" in that package so that users can write programs that use the vsock module. > I've also created an init file (/etc/init.d/vmtoolsd) that should be LSB > compatible (see attachment). I think it would be great to have this file in the distribution, even if just to serve as a starting point for packagers. If you haven't done so yet, could you take a look at http://open-vm-tools.sourceforge.net/contribute.php and follow the instructions so we can get it into the official package? > Maybe one day all thoses modules will go into the standard linux kernel.... > who knows? Believe me, you're not the only people who want that to happen. :-) -- - Marcelo |
From: Marcelo V. <mv...@vm...> - 2009-05-25 23:10:31
|
Hi Dominique, Dominique Leuenberger wrote: > Just one question: > Is there already a patch for the open-vm-tools (2009.05.22) for Kernel 2.6.30 available? Did you try with any other kernel (just to make sure this is really something caused by changes in 2.6.30)? > for now I see it failing with: > sing 2.6.x kernel build system. > CC [M] /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/block.o > In file included from /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/vmblockInt.h:40, > from /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/block.c:30: > /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_types.h:145:7: warning: "__FreeBSD__" is not defined This is weird. Could you share some more details about how you're staging these files? Line 145 in vm_basic_types.h in my git tree is a comment... -- - Marcelo |
From: Dominique L. <Dom...@TM...> - 2009-05-25 15:40:14
|
Olivier, >>> On 5/25/2009 at 5:24 , Olivier LAHAYE <oli...@ce...> wrote: >> http://open-vm-tools.wiki.sourceforge.net/Packaging > Yes, I know this URL, unfortunately, I did not find any usefull tips > regarding > includes and devel parts. > It looks like some .c files are shared between modules and tools, that some > .h > files are in tools build structure, but also used by some mudules I don't think the tools are actually ready to be extended by 3rd-parties. As such, I would not bother to much installing the devel packages. Even the fact with new kernels might be rather tricky: the modules are known to break with every single kernel release. Just now I'm stuck as openSUSE is moving to 2.6.30, but the modules do not yet compile on this kernel. Shame. > - Put modules in a dkms package that build modules at boot if the kernel has > been updated I see, as your package is not as closely linked, it's probably the only way to go. > - Create a working open-vm-tools-devel package that permit developpements of > new tools (tuypicaly would contain includes and .so files) As stated above: I don't think the tools are solid enough to encourage any 3rd party to develop on them out of the tree. Thus providing -devel package is probably not yet a good idea anyhow. >> Maybe you can have a look what I all did in the RPM for openSUSE? Might > Thanks a lot for your help, I had a 1st look at your RPM spec file which > looks > very interresting (see mine attached). > Unfortunately I don't quite understand the module part. As a distribution > owner I understand that you create a binary package for the modules right? > I assume that %suse_kernel_module_package -n vmware-guest -p %{SOURCE98} xen > um does all the magic ;-) > Although, I'm unable to follow this way as I'm not a Mandriva developper and yes, indeed: this does a lot of magic. It creates module packages for all different kernel flavors (different compiler options basically) and creates one RPM per flavor. XEN being excluded (I doubt that anybody is running a vmware inside a xen host or guest.. would not make to much sense). So yes, being close tight to the distribution is a big advantage here. > > thus I'm unable to follow thightly all new kernel releases. If a user > updates > its kernel, then I'll loose ability to connect it its vm and I'll have to > rebuild modules by hand. > Thus I'm forced to go for the dkms way until Mandriva includes open-vm-tools > in its main release tree. You should encourage them to do so early. Less wasted time for you. > > Maybe one day all thoses modules will go into the standard linux kernel.... > who knows? Oh.. THAT would be awesome. It would also finally stop us from being without running vmware (workstation/player/tools) with every new kernel hitting the shelfs. But I'm not sure I'm not to old already to still survive that day (hey.. I'm only 32.. but who knows how long THIS is going to take). Dominique |
From: Olivier L. <oli...@ce...> - 2009-05-25 15:24:40
|
Dominique, thanks a lot for your tips. See my comments below. > The wiki gives quite some overview of what to package and where to put it. > Most of the things are done correct by now using make install (I remember a > time this did not do anything useful). > http://open-vm-tools.wiki.sourceforge.net/Packaging Yes, I know this URL, unfortunately, I did not find any usefull tips regarding includes and devel parts. It looks like some .c files are shared between modules and tools, that some .h files are in tools build structure, but also used by some mudules For now I have an open-vm-tools that works for the userlan tools and system. what I'm stuck with is the foillowing: - Put modules in a dkms package that build modules at boot if the kernel has been updated - Create a working open-vm-tools-devel package that permit developpements of new tools (tuypicaly would contain includes and .so files) > Maybe you can have a look what I all did in the RPM for openSUSE? Might Thanks a lot for your help, I had a 1st look at your RPM spec file which looks very interresting (see mine attached). Unfortunately I don't quite understand the module part. As a distribution owner I understand that you create a binary package for the modules right? I assume that %suse_kernel_module_package -n vmware-guest -p %{SOURCE98} xen um does all the magic ;-) Although, I'm unable to follow this way as I'm not a Mandriva developper and thus I'm unable to follow thightly all new kernel releases. If a user updates its kernel, then I'll loose ability to connect it its vm and I'll have to rebuild modules by hand. Thus I'm forced to go for the dkms way until Mandriva includes open-vm-tools in its main release tree. Maybe one day all thoses modules will go into the standard linux kernel.... who knows? Olivier. -- Olivier LAHAYE CEA Saclay DRT-LIST-DETECS-SSTM |
From: Dominique L. <Dom...@TM...> - 2009-05-25 14:55:06
|
Hi mates, Just one question: Is there already a patch for the open-vm-tools (2009.05.22) for Kernel 2.6.30 available? for now I see it failing with: sing 2.6.x kernel build system. CC [M] /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/block.o In file included from /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/vmblockInt.h:40, from /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/block.c:30: /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_types.h:145:7: warning: "__FreeBSD__" is not defined CC [M] /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.o In file included from /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/vmblockInt.h:40, from /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:33: /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/include/vm_basic_types.h:145:7: warning: "__FreeBSD__" is not defined /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c: In function 'SetupProcDevice': /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:159: error: 'struct proc_dir_entry' has no member named 'owner' /usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.c:171: error: 'struct proc_dir_entry' has no member named 'owner' make[3]: *** [/usr/src/packages/BUILD/obj/debug/modules/linux/vmblock/linux/control.o] Error 1 make[2]: *** [_module_/usr/src/packages/BUILD/obj/debug/modules/linux/vmblock] Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 make: Leaving directory `/usr/src/linux-2.6.30-rc6-git3-3-obj/x86_64/debug' error: Bad exit status from /var/tmp/rpm-tmp.62886 (%build) Thanks for your help on this. Dominique |
From: Dominique L. <Dom...@TM...> - 2009-05-25 14:42:10
|
Olivier, >>> On 5/25/2009 at 16:03, Olivier LAHAYE <oli...@ce...> wrote: > hen I had to fix > lib/wiper/wiperPosix.c to handle fgets return. Had that too (I'm doing openSUSE packges). Sent my patch in also. > 3rd I must admit that I'm a little bit lost in finding what files should be > packaged and what files are only relevant to build open-vm-tools. > Basicaly, which includes should be part of open-vm-tools-devel:/usr/include, > which files should be part of dkms-open-vm-tools (that are not in open-vm- > tools) The wiki gives quite some overview of what to package and where to put it. Most of the things are done correct by now using make install (I remember a time this did not do anything useful). http://open-vm-tools.wiki.sourceforge.net/Packaging > > I've also created an init file (/etc/init.d/vmtoolsd) that should be LSB > compatible (see attachment). Maybe you can have a look what I all did in the RPM for openSUSE? Might help you save some hours. We're shipping it since openSUSE 11.1, so the packages are proven by now to work (even though the two last releases were not pushed out. Previous one had issues with Drag'n'Drop handler and the new one is not yet tested by me). I attach you for reference the RPM we use for the openSUSE packages (it creates KMPs (Kernel Module Packages). The complete SRPMS are downloadable at: http://download.opensuse.org/repositories/home:/dimstar/openSUSE_11.1/src/ Dominique |
From: Olivier L. <oli...@ce...> - 2009-05-25 14:22:32
|
Hi Marcelo, I've worked on the new release (build 167859) and I'm still having great difficulties to package open-vm-tools. Here are the problems. 1st of all I had to do a few patch for the whole stuff to build correctly (see attachment). Basicaly I had to patch configure.ac (DOT=/usr/bin instead of DOT=dot). Then I had to patch docs/api/Makefile.am to add the -e 's,##{PROJECT_NAME}##,@PACKAGE_STRING@,' line and then I had to fix lib/wiper/wiperPosix.c to handle fgets return. 2nd, lib/include/err.h has the same name as /usr/include.err.h Should the file be packaged in the open-vm-tools-devel? if yes, should the includes go to /usr/include or /usr/include/vmware ? 3rd I must admit that I'm a little bit lost in finding what files should be packaged and what files are only relevant to build open-vm-tools. Basicaly, which includes should be part of open-vm-tools-devel:/usr/include, which files should be part of dkms-open-vm-tools (that are not in open-vm- tools) I've also created an init file (/etc/init.d/vmtoolsd) that should be LSB compatible (see attachment). Aside that, except using the ./configure script, I'm totaly unfamiliar with autotools, and thus I'm realy unable to go beyond a few very basic patch in .ac and .am files, thus I'm afraid I won't be able to setup the "autoconf stuff" in the shared dir. I've notices in the modules dir that the Makefile has different behaviours depending OVT_SOURCE_DIR is defined or not. I've also noticed that the dkms.conf file uses the standard Makefile. Then what is the purpose of Makefile.kernel file? Best regards, Olivier. Le mardi 19 mai 2009 02:30:01 Marcelo Vanzin, vous avez écrit : > About your other question about what files to package, after all this > cleanup it does become a little bit trickier to package modules for use > with dkms; basically, what you'll have to do is: > > . place all shared headers either on the module's dir directly, or under a > "shared" directory under the module's source dir > . place all the "autoconf" stuff under "shared/autoconf" under the module's > source dir > . copy any shared sources to the module's source dir (for example, > lib/misc/dbllnklst.c which is used by a few modules). > > Also, you shouldn't define OVT_SOURCE_DIR when building through dkms (in > case you're wondering why that's used in modules/Makefile.am). That > variable changes the behavior of the makefiles to use the shared stuff in > the open-vm-tools package, which is not what you want for dkms. > > We do something similar when we package these modules with the Tools we > ship with Workstation or other VMware products, so if you want more > information about what the directory structure for building different > modules "stand alone" looks like, feel free to ask. -- Olivier LAHAYE CEA Saclay DRT-LIST-DETECS-SSTM |
From: SourceForge.net <no...@so...> - 2009-05-25 07:34:26
|
Tracker item #2796298, was opened at 2009-05-25 15:34 Message generated for change (Tracker Item Submitted) made by txdyjsyz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2796298&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: libraries Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mars Li (txdyjsyz) Assigned to: Nobody/Anonymous (nobody) Summary: libguestlib.so link error for vm guest API Initial Comment: For open-vm-tools version 2009.01.21-142982, we try to use vmware guest API like VMGuestLib_GetResourcePoolPath, VMGuestLib_GetSessionId, VMGuestLib_OpenHandle, etc... Problem 1 Link libguestlib.so failed due to missing some symbols (i.e., Debug(), VmCheck_IsVirtualWorld(), StrUtil_GetNextUintToken()). Problem 2 After run 'make install' following header files includeCheck.h,vm_basic_types.h,vmGuestLib.h,vmSessionId.h that is necessary for compiling the code which calling these vmware guest SDK APIs can not be found in /usr/include. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2796298&group_id=204462 |