Cocoa Cog build fails with SerialPlugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Cocoa Cog build fails with SerialPlugin

Igor Stasenko
Esteban, could you check it please?
This is strange..

Scanning dependencies of target SerialPlugin
[ 79%] Building C object
SerialPlugin/CMakeFiles/SerialPlugin.dir/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c.o
/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c:
In function ‘primitiveSerialPortRead’:
/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c:188:
warning: passing argument 3 of ‘serialPortReadInto’ makes pointer from
integer without a cast
/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c:
In function ‘primitiveSerialPortWrite’:
/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c:220:
warning: passing argument 3 of ‘serialPortWriteFrom’ makes pointer
from integer without a cast
[ 79%] Building C object
SerialPlugin/CMakeFiles/SerialPlugin.dir/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c.o
/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c:91:
error: conflicting types for ‘serialPortReadInto’
/Users/sig/projects/cog/sig-cog/platforms/Cross/plugins/SerialPlugin/SerialPlugin.h:12:
error: previous declaration of ‘serialPortReadInto’ was here
/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c:100:
error: conflicting types for ‘serialPortWriteFrom’
/Users/sig/projects/cog/sig-cog/platforms/Cross/plugins/SerialPlugin/SerialPlugin.h:14:
error: previous declaration of ‘serialPortWriteFrom’ was here
/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c:
In function ‘serialPortWriteFrom’:
/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c:113:
warning: ‘FSWrite’ is deprecated (declared at
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:8383)
make[2]: *** [SerialPlugin/CMakeFiles/SerialPlugin.dir/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c.o]
Error 1
make[1]: *** [SerialPlugin/CMakeFiles/SerialPlugin.dir/all] Error 2



--
Best regards,
Igor Stasenko AKA sig.
_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cocoa Cog build fails with SerialPlugin

EstebanLM
yesterday I changed 

EXPORT (int) serialPortReadInto(int portNum, int count, void *bufferPtr)
EXPORT (int) serialPortWriteFrom(int portNum, int count, void *bufferPtr)

on ./platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c

that was an int call, but that change was needed because the declaration is (in SerialPlugin.h): 

int serialPortReadInto(int portNum, int count, void *bufferPtr);
int serialPortReadIntoByName(const char *portName, int count, void *bufferPtr);

if you see my builds, this way it build without any problem. This changes are also in blessed, so I guess: 

1) you are not using cog-osx branch, not blessed 
2) you have not merged with my latest changes :)

cheers,
Esteban

El 05/07/2011, a las 9:07a.m., Igor Stasenko escribió:

Esteban, could you check it please?
This is strange..

Scanning dependencies of target SerialPlugin
[ 79%] Building C object
SerialPlugin/CMakeFiles/SerialPlugin.dir/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c.o
/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c:
In function ‘primitiveSerialPortRead’:
/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c:188:
warning: passing argument 3 of ‘serialPortReadInto’ makes pointer from
integer without a cast
/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c:
In function ‘primitiveSerialPortWrite’:
/Users/sig/projects/cog/sig-cog/src/plugins/SerialPlugin/SerialPlugin.c:220:
warning: passing argument 3 of ‘serialPortWriteFrom’ makes pointer
from integer without a cast
[ 79%] Building C object
SerialPlugin/CMakeFiles/SerialPlugin.dir/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c.o
/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c:91:
error: conflicting types for ‘serialPortReadInto’
/Users/sig/projects/cog/sig-cog/platforms/Cross/plugins/SerialPlugin/SerialPlugin.h:12:
error: previous declaration of ‘serialPortReadInto’ was here
/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c:100:
error: conflicting types for ‘serialPortWriteFrom’
/Users/sig/projects/cog/sig-cog/platforms/Cross/plugins/SerialPlugin/SerialPlugin.h:14:
error: previous declaration of ‘serialPortWriteFrom’ was here
/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c:
In function ‘serialPortWriteFrom’:
/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c:113:
warning: ‘FSWrite’ is deprecated (declared at
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:8383)
make[2]: *** [SerialPlugin/CMakeFiles/SerialPlugin.dir/Users/sig/projects/cog/sig-cog/platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c.o]
Error 1
make[1]: *** [SerialPlugin/CMakeFiles/SerialPlugin.dir/all] Error 2



--
Best regards,
Igor Stasenko AKA sig.
_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners


_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cocoa Cog build fails with SerialPlugin

Igor Stasenko
On 5 July 2011 14:45, Esteban Lorenzano <[hidden email]> wrote:

> yesterday I changed
> EXPORT (int) serialPortReadInto(int portNum, int count, void *bufferPtr)
> EXPORT (int) serialPortWriteFrom(int portNum, int count, void *bufferPtr)
> on ./platforms/iOS/plugins/SerialPlugin/sqMacSerialPort.c
> that was an int call, but that change was needed because the declaration is
> (in SerialPlugin.h):
> int serialPortReadInto(int portNum, int count, void *bufferPtr);
> int serialPortReadIntoByName(const char *portName, int count, void
> *bufferPtr);
> if you see my builds, this way it build without any problem. This changes
> are also in blessed, so I guess:
> 1) you are not using cog-osx branch, not blessed
> 2) you have not merged with my latest changes :)

yes, i just realized that i:
- tried to build before merge
- posted this message to vm-beginners list...


:)

> cheers,
> Esteban
> El 05/07/2011, a las 9:07a.m., Igor Stasenko escribió:
>
> Esteban, could you check it please?
> This is strange..



--
Best regards,
Igor Stasenko AKA sig.
_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners