UnixOSProcessPlugin

Thomas Schwarzkopf tschwarzkopf at t-online.de
Tue Sep 2 09:53:07 UTC 2003


Hi,

I try to install UnixOSProcessPlugin on my FreeBSD-5.1-CURRENT box
for Squeak-3.4-1. I used the VMMaker tool to generate the C source 
code as an external plugin. The relevant file named 
UnixOSProcessPlugin.c is placed in 
~/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin.
I followed the instructions given in 
~/Squeak-3.4-1/platforms/unix/doc/HowToBuildFromSource.pdf . 
I created a builddirectory, ran configure and tried to make the plugin 
inside ~/Squeak-3.4-1/blddir/UnixOSProcessPlugin but i got 
several  errors:

..k-3.4-1/blddir/UnixOSProcessPlugin => make
/bin/sh /usr/home/thomas/Squeak-3.4-1/blddir/libtool --mode=compile  gcc 
-I/usr/X11R6/include -g -O2 -fomit-frame-pointer -DLSB_FIRST=1  
-DHAVE_CONFIG_H   -I/usr/home/thomas/Squeak-3.4-1/blddir 
-I/usr/home/thomas/Squeak-3.4-1/platforms/unix/vm 
-I/usr/home/thomas/Squeak-3.4-1/platforms/Cross/vm -I/usr/X11R6/include  
-l/usr/home/thomas/test/Squeak-3.4-1/platforms/Cross/plugins/SocketPlugin/   
-I/usr/home/thomas/Squeak-3.4-1/platforms/Cross/plugins/FilePlugin 
-I/usr/home/thomas/Squeak-3.4-1/platforms/Cross/plugins/SocketPlugin -c 
-o UnixOSProcessPlugin.lo 
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c
gcc -I/usr/X11R6/include -g -O2 -fomit-frame-pointer -DLSB_FIRST=1 
-DHAVE_CONFIG_H -I/usr/home/thomas/Squeak-3.4-1/blddir 
-I/usr/home/thomas/Squeak-3.4-1/platforms/unix/vm 
-I/usr/home/thomas/Squeak-3.4-1/platforms/Cross/vm -I/usr/X11R6/include 
-l/usr/home/thomas/test/Squeak-3.4-1/platforms/Cross/plugins/SocketPlugin/ 
-I/usr/home/thomas/Squeak-3.4-1/platforms/Cross/plugins/FilePlugin 
-I/usr/home/thomas/Squeak-3.4-1/platforms/Cross/plugins/SocketPlugin -c 
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c  
-fPIC -DPIC -o UnixOSProcessPlugin.lo
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c:41:26: 
SocketPlugin.h: No such file or directory
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c:218: 
error: syntax error before '*' token
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c:218: 
warning: data definition has no type or storage class
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c: 
In function `socketRecordSize':
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c:2933: 
error: `SQSocket' undeclared (first use in this function)
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c:2933: 
error: (Each undeclared identifier is reported only once
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c:2933: 
error: for each function it appears in.)
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c: 
At top level:
/usr/home/thomas/Squeak-3.4-1/src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c:2940: 
error: syntax error before '*' token
*** Error code 1

Stop in /usr/home/thomas/Squeak-3.4-1/blddir/UnixOSProcessPlugin.

There is a file named SocketPlugin.h in 
~/Squeak-3.4-1/platforms/Cross/plugins/SocketPlugin/ but I don't know 
if this is the missing one. There are also syntax errors and other 
errors in UnixOSProcessPlugin.c. See attachment. 
Can anyone tell me where I made a mistake and what I can do to make the 
plugin compile?


Thanks
Thomas



-------------- next part --------------
A non-text attachment was scrubbed...
Name: UnixOSProcessPlugin.c
Type: text/x-csrc
Size: 104895 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030902/aa5dee6d/UnixOSProcessPlugin.c


More information about the Squeak-dev mailing list