New to Anidote: error in make

92 views
Skip to first unread message

prach...@gmail.com

unread,
Jan 14, 2015, 7:24:04 AM1/14/15
to antido...@googlegroups.com
I have downloaded antidote-2.0.0. and running make on it, I am getting following error.
$ make
Making all in src
make[1]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src'
Making all in dim
make[2]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/dim'
  CC     dim.lo
gcc: error: unrecognized command line option '-pthread'
Makefile:350: recipe for target 'dim.lo' failed
make[2]: *** [dim.lo] Error 1
make[2]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/dim'
Makefile:848: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src'
Makefile:318: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

if i remove -pthread from and change entry for CFLAGS in configure file as 
CFLAGS="$CFLAGS $CUNIT_CFLAGS -Isrc "
#CFLAGS="$CFLAGS $CUNIT_CFLAGS -Isrc -g -pthread -Wall -Werror -fPIC"

get error :

$ make
Making all in src
make[1]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src'
Making all in dim
make[2]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/dim'
  CC     dim.lo
  CC     dimutil.lo
  CC     pmstore.lo
  CC     pmsegment.lo
  CC     cfg_scanner.lo
  CC     epi_cfg_scanner.lo
  CC     mds.lo
  CC     metric.lo
  CC     numeric.lo
  CC     rtsa.lo
  CC     enumeration.lo
  CC     peri_cfg_scanner.lo
  CC     scanner.lo
  CCLD   libdim.la
make[2]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/dim'
Making all in util
make[2]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/util'
  CC     bytelib.lo
  CC     dateutil.lo
  CC     ioutil.lo
  CC     linkedlist.lo
  CC     strbuff.lo
  CCLD   libutil.la
make[2]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/util'
Making all in communication
make[2]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/communication'
Making all in parser
make[3]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/communication/parser'
  CC     decoder_ASN1.lo
  CC     struct_cleaner.lo
  CC     encoder_ASN1.lo
  CCLD   libparser.la
make[3]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/communication/parser'
Making all in plugin
make[3]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/communication/plugin'
Making all in usb
make[4]: Entering directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/communication/plugin/usb'
  CC     libusbplugin_la-plugin_usb.lo
In file included from /usr/include/w32api/minwindef.h:146:0,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from /usr/include/libusb-1.0/libusb.h:70,
                 from usb_phdc_drive.h:31,
                 from plugin_usb.c:49:
/usr/include/w32api/winnt.h:380:17: error: conflicting types for 'HANDLE'
   typedef void *HANDLE;
                 ^
In file included from ../../../../src/util/bytelib.h:38:0,
                 from ../../../../src/communication/plugin/plugin.h:38,
                 from plugin_usb.c:45:
../../../../src/asn1/phd_types.h:64:16: note: previous declaration of 'HANDLE' was here
 typedef intu16 HANDLE;
                ^
In file included from /usr/include/w32api/windows.h:71:0,
                 from /usr/include/libusb-1.0/libusb.h:70,
                 from usb_phdc_drive.h:31,
                 from plugin_usb.c:49:
plugin_usb.c: In function 'data_received':
plugin_usb.c:337:3: error: called object is not a function or function pointer
   ERROR("Data length <= 0");
   ^
plugin_usb.c:356:3: error: called object is not a function or function pointer
   ERROR("Unknown channel");
   ^
plugin_usb.c: In function 'channel_closed':
plugin_usb.c:418:3: error: called object is not a function or function pointer
   ERROR("Unknown device");
   ^
plugin_usb.c: In function 'get_apdu':
plugin_usb.c:566:3: error: called object is not a function or function pointer
   ERROR("network:usb Error creating bytelib");
   ^
plugin_usb.c: In function 'channel_connected':
plugin_usb.c:618:3: error: called object is not a function or function pointer
   ERROR("Channel from unknown device");
   ^
Makefile:390: recipe for target 'libusbplugin_la-plugin_usb.lo' failed
make[4]: *** [libusbplugin_la-plugin_usb.lo] Error 1
make[4]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/communication/plugin/usb'
Makefile:389: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/communication/plugin'
Makefile:402: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src/communication'
Makefile:848: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/d/antidote-2.0.0/antidote-2.0.0/src'
Makefile:318: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I am Having win7-64 bit with latest cygwin installation.

Ivan Tumanov

unread,
Feb 25, 2015, 6:49:31 AM2/25/15
to antido...@googlegroups.com
try -lpthread

среда, 14 января 2015 г., 14:24:04 UTC+2 пользователь Violet написал:
Reply all
Reply to author
Forward
0 new messages