List Info

Thread: Re: FW: VMWare Tools for FreeBSD




Re: FW: VMWare Tools for FreeBSD
user name
2008-03-18 10:36:53
I believe the issue is that MNT_NODEV which should be
defined in
/usr/include/sys/mount.h was deprecated and removed from
FreeBSD:

http://ftp.cz.freebsd.org/pub/FreeBSD-cvs/gnats/conf/7
9715

At line 42 in hgfsmounter.c, add

#     define MNT_NODEV  0

Then rebuild.  SHould work fine now.

I configured my build environment via the README with
./configure
LDFLAGS="/usr/local/lib" etc.

-aps

On Tue, Mar 18, 2008 at 10:42 AM, Paul Schmehl <paulsutdallas.edu> wrote:
> --On Tuesday, March 18, 2008 22:34:30 +0800
"Gelsema, P (Patrick) - FreeBSD"
>
>
> <freebsdsuperhero.nl> wrote:
>  >
>  > I get an error running an install on RELENG_7_0
I386.
>  >
>  > Making check in hgfsmounter
>  > gcc -DPACKAGE_NAME="open-vm-tools"
-DPACKAGE_TARNAME="open-vm-tools"
>  > -DPACKAGE_VERSION="2008.03.03-79993"
-DPACKAGE_STRING="open-vm-tools
>  > 2008.03.03-79993"
>  >
-DPACKAGE_BUGREPORT="open-vm-tools-devellists.sourceforge.net"
>  > -DPACKAGE="open-vm-tools"
-DVERSION="2008.03.03-79993"
>  > -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1
>  > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
>  > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
>  > -DX_DISPLAY_MISSING=1 -DHAVE_DLOPEN=1
-DHAVE_INTTYPES_H=1
>  > -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_WCHAR_H=1 -DHAVE_SYS_PARAM_H=1
>  > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1
-DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1
>  > -DHAVE_STRUCT_STAT_ST_RDEV=1
-DTIME_WITH_SYS_TIME=1 -DNO_MULTIMON=1 -I.
>  >  -Wall -Werror -Wno-pointer-sign
-Wno-unused-value -fno-strict-aliasing
>  > -Wno-unknown-pragmas -Wno-uninitialized
-DVMX86_TOOLS
>  > -I/tmp/open-vm-tools-2008.03.03-79993/lib/include
-DUSING_AUTOCONF=1 -MT
>  > hgfsmounter.o -MD -MP -MF .deps/hgfsmounter.Tpo
-c -o hgfsmounter.o
>  > hgfsmounter.c
>  > hgfsmounter.c: In function 'ParseOptions':
>  > hgfsmounter.c:607: error: 'MNT_NODEV' undeclared
(first use in this function)
>  > hgfsmounter.c:607: error: (Each undeclared
identifier is reported only once
>  > hgfsmounter.c:607: error: for each function it
appears in.)
>  > *** Error code 1
>  >
>  > Someone seen this before?
>  >
>
>  Yes, I got it as well.  I was going to create a port
for it, but I have no idea
>  how to solve the make problem.  If there is a
programmer reading this that
>  wants to work with me to get the software to make on
FreeBSD, I'll be happy to
>  submit and maintain the port.
>
>  --
>
> Paul Schmehl (paulsutdallas.edu)
>  Senior Information Security Analyst
>  The University of Texas at Dallas
>  http://www.utdal
las.edu/ir/security/
>
>  _______________________________________________
>
>
> freebsd-questionsfreebsd.org mailing list
>  http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
>  To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
>



-- 
"What lies behind us and what lies in front of us is of
little concern
to what lies within us." -Ralph Waldo Emerson
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: FW: VMWare Tools for FreeBSD
country flaguser name
United States
2008-03-18 11:12:43
--On Tuesday, March 18, 2008 11:36:53 -0400 Alexander Sack
<pisymbolgmail.com> 
wrote:

> I believe the issue is that MNT_NODEV which should be
defined in
> /usr/include/sys/mount.h was deprecated and removed
from FreeBSD:
>
> http://ftp.cz.freebsd.org/pub/FreeBSD-cvs/gnats/conf/7
9715
>
> At line 42 in hgfsmounter.c, add
>
>#     define MNT_NODEV  0
>
> Then rebuild.  SHould work fine now.

Thanks.  I was contacted privately by someone else on the
list and advised of 
the same thing.  I chose to remove the lines mentioning
MNT_NODEV from the 
hgfsmounter.c file.  I wasn't aware you could simply define
it as 0.  Which is 
preferable?

>
> I configured my build environment via the README with
./configure
> LDFLAGS="/usr/local/lib" etc.
>

I'm compiling and making without problems now that the NODEV
problem is cleared 
up, but I didn't define any LDFLAGS.  Should I?

-- 
Paul Schmehl (paulsutdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdal
las.edu/ir/security/

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: FW: VMWare Tools for FreeBSD
user name
2008-03-18 11:13:58
On Tue, March 18, 2008 23:36, Alexander Sack wrote:
> I believe the issue is that MNT_NODEV which should be
defined in
> /usr/include/sys/mount.h was deprecated and removed
from FreeBSD:
>
> http://ftp.cz.freebsd.org/pub/FreeBSD-cvs/gnats/conf/7
9715
>
> At line 42 in hgfsmounter.c, add
>
> #     define MNT_NODEV  0
>
> Then rebuild.  SHould work fine now.
>
> I configured my build environment via the README with
./configure
> LDFLAGS="/usr/local/lib" etc.
>
Done

#./configure LDFLAGS="/usr/local/lib" --without-x
#make
#make install

That all goes ok
But when I run #make modules I get an error

wolverine# make modules
make -C modules
make -C "freebsd/vmmemctl"
make -C "freebsd/vmxnet"
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE
-std=c99
-nostdinc   -I. -I -I/contrib/altq -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000
-fno-common 
-mno-align-long-strings -mpreferred-stack-boundary=2 
-mno-mmx -mno-3dnow
-mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall
-Wredundant-decls
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign
-fformat-extensions -c
if_vxn.c
if_vxn.c: In function 'vxn_attach':
if_vxn.c:302: warning: passing argument 4 of
'bus_setup_intr' from
incompatible pointer type
if_vxn.c:302: warning: passing argument 5 of
'bus_setup_intr' from
incompatible pointer type
if_vxn.c:302: error: too few arguments to function
'bus_setup_intr'
if_vxn.c:378: error: 'struct arpcom' has no member named
'_ac_enaddr'
if_vxn.c:385: error: 'struct arpcom' has no member named
'_ac_enaddr'
*** Error code 1

Stop in
/tmp/open-vm-tools-2008.03.03-79993/modules/freebsd/vmxnet.
*** Error code 1

Any ideas?

> -aps
>
> On Tue, Mar 18, 2008 at 10:42 AM, Paul Schmehl
<paulsutdallas.edu> wrote:
>> --On Tuesday, March 18, 2008 22:34:30 +0800
"Gelsema, P (Patrick) -
>> FreeBSD"
>>
>>
>> <freebsdsuperhero.nl> wrote:
>>  >
>>  > I get an error running an install on
RELENG_7_0 I386.
>>  >
>>  > Making check in hgfsmounter
>>  > gcc
-DPACKAGE_NAME="open-vm-tools"
>> -DPACKAGE_TARNAME="open-vm-tools"
>>  >
-DPACKAGE_VERSION="2008.03.03-79993"
>> -DPACKAGE_STRING="open-vm-tools
>>  > 2008.03.03-79993"
>>  >
-DPACKAGE_BUGREPORT="open-vm-tools-devellists.sourceforge.net"
>>  > -DPACKAGE="open-vm-tools"
-DVERSION="2008.03.03-79993"
>>  > -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1
>>  > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1
>> -DHAVE_STRINGS_H=1
>>  > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1
>> -DHAVE_DLFCN_H=1
>>  > -DX_DISPLAY_MISSING=1 -DHAVE_DLOPEN=1
-DHAVE_INTTYPES_H=1
>>  > -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_WCHAR_H=1
>> -DHAVE_SYS_PARAM_H=1
>>  > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1
-DHAVE__BOOL=1
>> -DHAVE_STDBOOL_H=1
>>  > -DHAVE_STRUCT_STAT_ST_RDEV=1
-DTIME_WITH_SYS_TIME=1 -DNO_MULTIMON=1
>> -I.
>>  >  -Wall -Werror -Wno-pointer-sign
-Wno-unused-value
>> -fno-strict-aliasing
>>  > -Wno-unknown-pragmas -Wno-uninitialized
-DVMX86_TOOLS
>>  >
-I/tmp/open-vm-tools-2008.03.03-79993/lib/include
-DUSING_AUTOCONF=1
>> -MT
>>  > hgfsmounter.o -MD -MP -MF
.deps/hgfsmounter.Tpo -c -o hgfsmounter.o
>>  > hgfsmounter.c
>>  > hgfsmounter.c: In function 'ParseOptions':
>>  > hgfsmounter.c:607: error: 'MNT_NODEV'
undeclared (first use in this
>> function)
>>  > hgfsmounter.c:607: error: (Each undeclared
identifier is reported
>> only once
>>  > hgfsmounter.c:607: error: for each function
it appears in.)
>>  > *** Error code 1
>>  >
>>  > Someone seen this before?
>>  >
>>
>>  Yes, I got it as well.  I was going to create a
port for it, but I have
>> no idea
>>  how to solve the make problem.  If there is a
programmer reading this
>> that
>>  wants to work with me to get the software to make
on FreeBSD, I'll be
>> happy to
>>  submit and maintain the port.
>>
>>  --
>>
>> Paul Schmehl (paulsutdallas.edu)
>>  Senior Information Security Analyst
>>  The University of Texas at Dallas
>>  http://www.utdal
las.edu/ir/security/
>>
>>  _______________________________________________
>>
>>
>> freebsd-questionsfreebsd.org mailing list
>>  http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
>>  To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribefreebsd.org"
>>
>
>
>
> --
> "What lies behind us and what lies in front of us
is of little concern
> to what lies within us." -Ralph Waldo Emerson
> _______________________________________________
> freebsd-questionsfreebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribefreebsd.org"
>

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )