Unfortunately buld fails with following errors and warnings:
+ make
gcc -Wall -Os -s -c op.c
op.c: In function ‘main’:
op.c:302:2: warning: format ‘%x’ expects argument of type ‘unsigned int ’, but argument 3 has type ‘unsigned char ’ [-Wformat=]
for(j=0,i = optind; i < argc&&i<128; i++,j++) sscanf(argv[i], "%x", &tmpbuf[j]);
^
op.c:365:3: warning: call to function ‘AddDevices’ without a real prototype [-Wunprototyped-calls]
AddDevices(list);
^
In file included from op.c:27:0:
deviceRW.h:3:6: note: ‘AddDevices’ was declared here
void AddDevices();
^
op.c:387:11: warning: variable ‘t’ set but not used [-Wunused-but-set-variable]
DWORD t0,t;
^
op.c: At top level:
op.c:883:7: error: redefinition of ‘GetTickCount’
DWORD GetTickCount(){
^
op.c:574:7: note: previous definition of ‘GetTickCount’ was here
DWORD GetTickCount(){
^
op.c: In function ‘CleanIO’:
op.c:894:12: warning: extra tokens at end of #undef directive [enabled by default]
#undef read()
^
op.c: In function ‘PacketIO’:
op.c:922:5: error: unknown type name ‘uint64_t’
uint64_t start,stop;
^
op.c:951:12: warning: extra tokens at end of #undef directive [enabled by default]
#undef read()
^
op.c: In function ‘FindDevice’:
op.c:990:25: error: ‘FALSE’ undeclared (first use in this function)
int MyDeviceDetected = FALSE;
^
op.c:990:25: note: each undeclared identifier is reported only once for each function it appears in
op.c:1031:21: error: ‘TRUE’ undeclared (first use in this function)
MyDeviceDetected = TRUE;
^
Makefile:23: recipe for target 'op.o' failed
make: *** [op.o] Error 1
openSUSE 13.2, gcc 4.8
Wojciech Kazubski
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to build the latest release 0.9.1 of openprogrammer (OP), taken from:
http://sourceforge.net/projects/openprogrammer/files/OP/op_0.9.1.tar.gz
Unfortunately buld fails with following errors and warnings:
+ make
gcc -Wall -Os -s -c op.c
op.c: In function ‘main’:
op.c:302:2: warning: format ‘%x’ expects argument of type ‘unsigned int ’, but argument 3 has type ‘unsigned char ’ [-Wformat=]
for(j=0,i = optind; i < argc&&i<128; i++,j++) sscanf(argv[i], "%x", &tmpbuf[j]);
^
op.c:365:3: warning: call to function ‘AddDevices’ without a real prototype [-Wunprototyped-calls]
AddDevices(list);
^
In file included from op.c:27:0:
deviceRW.h:3:6: note: ‘AddDevices’ was declared here
void AddDevices();
^
op.c:387:11: warning: variable ‘t’ set but not used [-Wunused-but-set-variable]
DWORD t0,t;
^
op.c: At top level:
op.c:883:7: error: redefinition of ‘GetTickCount’
DWORD GetTickCount(){
^
op.c:574:7: note: previous definition of ‘GetTickCount’ was here
DWORD GetTickCount(){
^
op.c: In function ‘CleanIO’:
op.c:894:12: warning: extra tokens at end of #undef directive [enabled by default]
#undef read()
^
op.c: In function ‘PacketIO’:
op.c:922:5: error: unknown type name ‘uint64_t’
uint64_t start,stop;
^
op.c:951:12: warning: extra tokens at end of #undef directive [enabled by default]
#undef read()
^
op.c: In function ‘FindDevice’:
op.c:990:25: error: ‘FALSE’ undeclared (first use in this function)
int MyDeviceDetected = FALSE;
^
op.c:990:25: note: each undeclared identifier is reported only once for each function it appears in
op.c:1031:21: error: ‘TRUE’ undeclared (first use in this function)
MyDeviceDetected = TRUE;
^
Makefile:23: recipe for target 'op.o' failed
make: *** [op.o] Error 1
openSUSE 13.2, gcc 4.8
Wojciech Kazubski
Sorry for the delay.
You're right, there were some bugs building under Linux.
They're fixed now.
Last edit: Alberto Maccioni 2014-12-13
Great thanks. Now builds fine. I have openSUSE and Fedora RPMs on openSUSE Build Service:
https://build.opensuse.org/package/show/home:wkazubski/openprogrammer
https://build.opensuse.org/package/show/home:wkazubski/openprogrammergui
Wojciech Kazubski