[Pharo-project] Trying to build alien plugin in linux

Marco Schmidt Marco.Schmidt at Taugamma.de
Sat Feb 20 17:44:13 EST 2010


Define nil as ((void*)0L) or something like this

2010/2/20 Javier Pimás <elpochodelagente at gmail.com>:
> nice! this is way better, but I still have this:
>
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:
> In function ‘primCallOutDoubleReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:372:
> error: ‘nil’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:372:
> error: (Each undeclared identifier is reported only once
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:372:
> error: for each function it appears in.)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:
> In function ‘primCallOutFloatReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:424:
> error: ‘nil’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:
> In function ‘primCallOutIntegralReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:476:
> error: ‘nil’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:
> In function ‘primVarArgsCallOutDoubleReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1394:
> error: ‘nil’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:
> In function ‘primVarArgsCallOutFloatReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1452:
> error: ‘nil’ undeclared (first use in this function)
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:
> In function ‘primVarArgsCallOutIntegralReturn’:
> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:1510:
> error: ‘nil’ undeclared (first use in this function)
> make[2]: ***
> [IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o]
> Error 1
> make[1]: *** [IA32ABI/CMakeFiles/IA32ABI.dir/all] Error 2
> make: *** [all] Error 2
>
>
> any clue?
>
> Thanks!
>             Javier.
>
> 2010/2/20 John M McIntosh <johnmci at smalltalkconsulting.com>
>>
>> In the
>> Cross/plugins/IA32ABI  folder you will find a
>> sqVirtualMachine.h
>> sqVirtualMachine.c
>> Use those to replace the *standard* ones which aren't Alien plugin aware.
>> On 2010-02-20, at 7:59 AM, Javier Pimás wrote:
>>
>> I generate C code and then I get:
>>
>> Scanning dependencies of target
>> IA32ABI
>> [  3%] Building C object
>> IA32ABI/CMakeFiles/IA32ABI.dir/home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c.o
>>
>> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:
>> In function
>> ‘isAlien’:
>>
>> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:154:
>> error: ‘struct VirtualMachine’ has no member named
>> ‘classAlien’
>>
>> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:
>> In function
>> ‘primAddressFieldPut’:
>>
>> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191:
>> error: ‘struct VirtualMachine’ has no member named
>> ‘primitiveFailFor’
>>
>> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191:
>> error: ‘PrimErrBadArgument’ undeclared (first use in this
>> function)
>>
>> /home/javier/st/squeak-svn/platforms/unix/src32/vm/intplugins/IA32ABI/IA32ABI.c:191:
>> error: (Each undeclared identifier is reported only once
>>
>> --
>>
>> ===========================================================================
>> John M. McIntosh <johnmci at smalltalkconsulting.com>   Twitter:
>>  squeaker68882
>> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
>>
>> ===========================================================================
>>
>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project at lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>
> --
> Javier Pimás
> Ciudad de Buenos Aires
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>




More information about the Pharo-dev mailing list