Compiling under Cygwin

Help
2007-07-02
2013-04-23
  • Jett Gamboa

    Jett Gamboa - 2007-07-02

    Has anyone been able to compile this using cygwin? The steps that I did are the following:

    1. built the ICU (unicode) library
    2.executed the following commands:

    ./autogen.sh
    ./configure

    When doing a make under the C++ directory (I am only interested in building the java.* C++ libraries), I get the following:

    $ make
    Making all in lang
    make[1]: Entering directory `/usr/src/beecrypt/c++/lang'
    /bin/sh ../../libtool --tag=CXX   --mode=compile g++ -m32 -DHAVE_CONFIG_H -I. -I
    ../.. -I../../include  -I/usr/include -DOPTIMIZE_I386  -O2 -DNDEBUG -mcpu=pentiu
    mpro -MT Character.lo -MD -MP -MF .deps/Character.Tpo -c -o Character.lo Charact
    er.cxx
    mkdir .libs
    g++ -m32 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include -DOPTIMIZE_
    I386 -O2 -DNDEBUG -mcpu=pentiumpro -MT Character.lo -MD -MP -MF .deps/Character.
    Tpo -c Character.cxx  -DDLL_EXPORT -DPIC -o .libs/Character.o
    `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
    In file included from ../../include/beecrypt/c++/lang/String.h:34,
                     from ../../include/beecrypt/c++/lang/Character.h:28,
                     from Character.cxx:25:
    ../../include/beecrypt/c++/lang/Object.h:136: error: `HANDLE' does not name a ty
    pe
    ../../include/beecrypt/c++/lang/Object.h:138: error: `HANDLE' does not name a ty
    pe
    ../../include/beecrypt/c++/lang/Object.h:140: error: `HANDLE' does not name a ty
    pe
    ../../include/beecrypt/c++/lang/Object.h:142: error: `HANDLE' does not name a ty
    pe
    ../../include/beecrypt/c++/lang/Object.h: In member function `void beecrypt::lan
    g::Object::Monitor::internal_state_lock()':
    ../../include/beecrypt/c++/lang/Object.h:80: error: `INFINITE' undeclared (first
    use this function)
    ../../include/beecrypt/c++/lang/Object.h:80: error: (Each undeclared identifier
    is reported only once for each function it appears in.)
    ../../include/beecrypt/c++/lang/Object.h:80: error: `WaitForSingleObject' undecl
    ared (first use this function)
    ../../include/beecrypt/c++/lang/Object.h:80: error: `WAIT_OBJECT_0' undeclared (
    first use this function)
    ../../include/beecrypt/c++/lang/Object.h: In member function `void beecrypt::lan
    g::Object::Monitor::internal_state_unlock()':
    ../../include/beecrypt/c++/lang/Object.h:96: error: `ReleaseMutex' undeclared (f
    irst use this function)
    make[1]: *** [Character.lo] Error 1
    make[1]: Leaving directory `/usr/src/beecrypt/c++/lang'
    make: *** [all-recursive] Error 1

    It does say in the README that this was tested under Cygwin. not sure what I'm doing wrong.

     
    • Bob Deblier

      Bob Deblier - 2007-07-03

      The compilation and testing under cygwin was done about two years ago. If you can wait a few days I'll see if I can reproduce (and hopefully fix) your problem.

      At first glance it seems as though the proper WIN32 header files aren't getting included.

       
    • Jett Gamboa

      Jett Gamboa - 2007-07-03

      Thanks Bob. I've been exploring that path looking at the #ifdef WIN32 precompiler directives. It looks like it is using gnu.h is being used but HANDLE appears to be a Win32 declaration. I am not sure what the appropriate declarations are needed under cygwin. Commented out certain sections to force it to use gnu but to no avail.

       

Log in to post a comment.