Menu

#10 Cygwin compilation fails

v1.0 (example)
closed-works-for-me
cygwin (1)
5
2021-01-26
2020-04-09
No

I tried to compile the source code in cygwin 64 according to the readme.
This occurs with version 99 and 101
It fails with the following errors:

conftest.c:63:21: error: expected expression before ')' token
   63 | if (sizeof ((size_t)))
make  all-recursive
make[1]: Entering directory '/home/admusr/clamsap-0.99.25'
Making all in src
make[2]: Entering directory '/home/admusr/clamsap-0.99.25/src'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I.    -DVSI2_COMPATIBLE -DCLAMSAP_VERSION=\"0.99.25\" -g -O2 -MT libclamsap_la-vsclam.lo -MD -MP -MF .deps/libclamsap_la-vsclam.Tpo -c -o libclamsap_la-vsclam.lo `test -f 'vsclam.c' || echo './'`vsclam.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I. -DVSI2_COMPATIBLE -DCLAMSAP_VERSION=\"0.99.25\" -g -O2 -MT libclamsap_la-vsclam.lo -MD -MP -MF .deps/libclamsap_la-vsclam.Tpo -c vsclam.c  -DDLL_EXPORT -DPIC -o .libs/libclamsap_la-vsclam.o
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:267:1: note: in expansion of macro DLL_EXPORT
  267 | DLL_EXPORT VsaStartup( void )
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:325:1: note: in expansion of macro DLL_EXPORT
  325 | DLL_EXPORT VsaGetConfig(PPVSA_CONFIG pp_config)
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:605:1: note: in expansion of macro DLL_EXPORT
  605 | DLL_EXPORT VsaInit( const PVSA_CALLBACK p_callback,
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:886:1: note: in expansion of macro DLL_EXPORT
  886 | DLL_EXPORT VsaScan(
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:1416:1: note: in expansion of macro DLL_EXPORT
 1416 | DLL_EXPORT VsaReleaseScan(PPVSA_SCANINFO ppscinfo)
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:1490:1: note: in expansion of macro DLL_EXPORT
 1490 | DLL_EXPORT VsaEnd(PPVSA_INIT pp_init, PPVSA_CONFIG pp_config)
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:1530:1: note: in expansion of macro DLL_EXPORT
 1530 | DLL_EXPORT VsaCleanup( void )
      | ^~~~~~~~~~
make[2]: *** [Makefile:342: libclamsap_la-vsclam.lo] Error 1
make[2]: Leaving directory '/home/admusr/clamsap-0.99.25/src'
make[1]: *** [Makefile:269: all-recursive] Error 1
make[1]: Leaving directory '/home/admusr/clamsap-0.99.25'
make: *** [Makefile:199: all] Error 2
Making install in src
make[1]: Entering directory '/home/admusr/clamsap-0.99.25/src'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I.    -DVSI2_COMPATIBLE -DCLAMSAP_VERSION=\"0.99.25\" -g -O2 -MT libclamsap_la-vsclam.lo -MD -MP -MF .deps/libclamsap_la-vsclam.Tpo -c -o libclamsap_la-vsclam.lo `test -f 'vsclam.c' || echo './'`vsclam.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I. -DVSI2_COMPATIBLE -DCLAMSAP_VERSION=\"0.99.25\" -g -O2 -MT libclamsap_la-vsclam.lo -MD -MP -MF .deps/libclamsap_la-vsclam.Tpo -c vsclam.c  -DDLL_EXPORT -DPIC -o .libs/libclamsap_la-vsclam.o
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:267:1: note: in expansion of macro DLL_EXPORT
  267 | DLL_EXPORT VsaStartup( void )
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:325:1: note: in expansion of macro DLL_EXPORT
  325 | DLL_EXPORT VsaGetConfig(PPVSA_CONFIG pp_config)
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:605:1: note: in expansion of macro DLL_EXPORT
  605 | DLL_EXPORT VsaInit( const PVSA_CALLBACK p_callback,
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:886:1: note: in expansion of macro DLL_EXPORT
  886 | DLL_EXPORT VsaScan(
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:1416:1: note: in expansion of macro DLL_EXPORT
 1416 | DLL_EXPORT VsaReleaseScan(PPVSA_SCANINFO ppscinfo)
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:1490:1: note: in expansion of macro DLL_EXPORT
 1490 | DLL_EXPORT VsaEnd(PPVSA_INIT pp_init, PPVSA_CONFIG pp_config)
      | ^~~~~~~~~~
<command-line>: error: expected identifier or ( before numeric constant
vsclam.c:1530:1: note: in expansion of macro DLL_EXPORT
 1530 | DLL_EXPORT VsaCleanup( void )
      | ^~~~~~~~~~
make[1]: *** [Makefile:342: libclamsap_la-vsclam.lo] Error 1
make[1]: Leaving directory '/home/admusr/clamsap-0.99.25/src'
make: *** [Makefile:269: install-recursive] Error 1

Discussion

  • Markus Strehle

    Markus Strehle - 2020-04-09

    I attach the DLLs which are build with Visual Studio, I never used cgywin, either gcc on Linux or Visual Studio on Windows

     
  • Markus Strehle

    Markus Strehle - 2021-01-26
    • status: open --> closed-works-for-me
     
  • Markus Strehle

    Markus Strehle - 2021-01-26

    close now

     

Log in to post a comment.

MongoDB Logo MongoDB