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

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: kernel modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: mna-news (mna-news)
Assigned to: Nobody/Anonymous (nobody)
Summary: vmhgfs/page.c does not compile

Initial Comment:
am trying to compile "open-vm-tools-2009.01.21-142982" on a kernel version  
2.6.28.1 and there are somes troubles ...

[...)
make[3]: Entering directory `/usr/src/linux-2.6.28.1'
  CC [M]  /tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.o
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c: In function 
`HgfsDoWriteBegin':
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c:763: attention 
: ISO C89 interdit les m▒langes de d▒clarations et de code
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c: In function 
`HgfsWriteBegin':
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c:867: erreur: 
d▒claration implicite de la fonction ▒ __grab_cache_page ▒
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c:867: attention 
: affectation transforme un entier en pointeur sans transtypage
make[4]: *** [/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.o] 
Erreur 1
make[3]: *** 
[_module_/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs] Erreur 2
make[3]: Leaving directory `/usr/src/linux-2.6.28.1'
make[2]: *** [vmhgfs.ko] Erreur 2
make[2]: Leaving directory 
`/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs'
make[1]: *** [vmhgfs] Erreur 2
make[1]: Leaving directory `/tmp/open-vm-tools-2009.01.21-142982/modules'
make: *** [all-recursive] Erreur 1


if anybody has an idear or solution ...

thanks in advance
mna.

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

Comment By: Hemp Cluster (jointy)
Date: 2009-01-26 19:09

Message:
Hi,

I tried this patch and everythings works fine now.

Best thanks
j0inty

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

Comment By: mna-news (mna-news)
Date: 2009-01-23 16:42

Message:
I have try your patch,

it's seem to work, i  can compile the vmhgfs kernel module.
(but i have another trouble in vsocks ... i will open another ticket with
the other trouble)

[...]
Using 2.6.x kernel build system.
make[2]: Entering directory
`/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs'
make -C /lib/modules/2.6.28.1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/.
modules
make[3]: Entering directory `/usr/src/linux-2.6.28.1'
  CC [M] 
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.o
  CC [M] 
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/request.o
  CC [M] 
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/rpcout.o
  CC [M] 
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/stubs.o
  CC [M] 
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/super.o
  LD [M] 
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC     
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/vmhgfs.mod.o
  LD [M] 
/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/vmhgfs.ko
make[3]: Leaving directory `/usr/src/linux-2.6.28.1'
make -C $PWD SRCROOT=$PWD/. postbuild
make[3]: Entering directory
`/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs'
make[3]: ▒ postbuild ▒ est ▒ jour.
make[3]: Leaving directory
`/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs'
cp -f vmhgfs.ko ./../vmhgfs.o
make[2]: Leaving directory
`/tmp/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs'
make VM_UNAME=2.6.28.1  -C "../modules/linux/vsock"
Using 2.6.x kernel build system.
Building VMCI Sockets with VMCI module symbols.

many thanks for your help.
mna.

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

Comment By: Dmitry Torokhov (dtor)
Date: 2009-01-23 16:13

Message:
Could you please try the patch I just uploaded? Go to Linux HGFS directory
and apply with -p3. Thanks!

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

Comment By: Hemp Cluster (jointy)
Date: 2009-01-23 10:31

Message:
Hi,

On my gentoobox I ran into the same problems.

[code]
CC [M] 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20090121.142982/work/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.o
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20090121.142982/work/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c:
In function 'HgfsDoWriteBegin':
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20090121.142982/work/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c:763:
warning: ISO C90 forbids mixed declarations and code
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20090121.142982/work/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c:
In function 'HgfsWriteBegin':
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20090121.142982/work/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c:867:
error: implicit declaration of function '__grab_cache_page'
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20090121.142982/work/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.c:867:
warning: assignment makes pointer from integer without a cast
make[2]: ***
[/var/tmp/portage/app-emulation/open-vm-tools-0.0.20090121.142982/work/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs/page.o]
Error 1
make[1]: ***
[_module_/var/tmp/portage/app-emulation/open-vm-tools-0.0.20090121.142982/work/open-vm-tools-2009.01.21-142982/modules/linux/vmhgfs]
Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28-gentoo-r1'
make: *** [vmhgfs.ko] Error 2
 *
 * ERROR: app-emulation/open-vm-tools-0.0.20090121.142982 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3327:  Called linux-mod_src_compile
 *             environment, line 2499:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC="$(tc-getBUILD_CC)"                   
                             CROSS_COMPILE=${CHOST}-                       
                      LDFLAGS="$(get_abi_LDFLAGS)"                         
                  ${BUILD_FIXES}                                           
   ${BUILD_PARAMS}                                                
${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)"
CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES}
${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc
CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=   auto-build
HEADER_DIR=/usr/src/linux/include
BUILD_DIR=/lib/modules/2.6.28-gentoo-r1/build
[/code]


The build log you will find here.

http://pastebin.com/m34c54235

and usefull infos about the System you will find here.

http://pastebin.com/m497e3088

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

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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to