Lucy
  1. Lucy
  2. LUCY-167

INCREF/DECREF symbol collisions under Windows in FSDirHandle.c

    Details

      Description

      The header file "windows.h" defines INCREF and DECREF, which collide
      the short versions of LUCY_INCREF and LUCY_DECREF. In most places, we
      already use the long form when windows.h has been #included, but
      FSDirHandle.c had been missed, causing compilation failure under Cygwin.

        Activity

        Hide
        Lucas added a comment -

        Hi,

        I don't know if that is the correct place to post that...

        I tried to install Apache Lucy (Perl) from Cpan using the command "install Lucy", but it fails: "Make had returned bad status...".
        So I tried to make it, and: "Could not make: Unknown error".
        Then, I typed "look Lucy" and I tried to do "perl Makefile.PL", but there isn't any Makefile, so I used "perl Build.pl", and following : "Build", but it crashes, with the following errors:

        core\Lucy\Store\FSDirHandle.c: In function `lucy_FSDH_do_open':
        core\Lucy\Store\FSDirHandle.c:198: error: invalid operands to binary >
        +>
        core\Lucy\Store\FSDirHandle.c:198: error: invalid operands to binary &
        core\Lucy\Store\FSDirHandle.c:212: error: invalid operands to binary >
        +>
        core\Lucy\Store\FSDirHandle.c:212: error: invalid operands to binary &
        core\Lucy\Store\FSDirHandle.c: In function `lucy_FSDH_close':
        core\Lucy\Store\FSDirHandle.c:269: error: invalid operands to binary &
        core\Lucy\Store\FSDirHandle.c:269: error: invalid operands to binary &
        error building dll file from 'core/Lucy/Store/FSDirHandle.c' at C:/str
        +awberl/lib/ExtUtils/CBuilder/Platform/Windows.pm line 130.

        I have WXP, perl 5.10.1.

        Is that what are you talking about Marvin? Is there any way to solve that?

        Thanks!

        Show
        Lucas added a comment - Hi, I don't know if that is the correct place to post that... I tried to install Apache Lucy (Perl) from Cpan using the command "install Lucy", but it fails: "Make had returned bad status...". So I tried to make it, and: "Could not make: Unknown error". Then, I typed "look Lucy" and I tried to do "perl Makefile.PL", but there isn't any Makefile, so I used "perl Build.pl", and following : "Build", but it crashes, with the following errors: core\Lucy\Store\FSDirHandle.c: In function `lucy_FSDH_do_open': core\Lucy\Store\FSDirHandle.c:198: error: invalid operands to binary > +> core\Lucy\Store\FSDirHandle.c:198: error: invalid operands to binary & core\Lucy\Store\FSDirHandle.c:212: error: invalid operands to binary > +> core\Lucy\Store\FSDirHandle.c:212: error: invalid operands to binary & core\Lucy\Store\FSDirHandle.c: In function `lucy_FSDH_close': core\Lucy\Store\FSDirHandle.c:269: error: invalid operands to binary & core\Lucy\Store\FSDirHandle.c:269: error: invalid operands to binary & error building dll file from 'core/Lucy/Store/FSDirHandle.c' at C:/str +awberl/lib/ExtUtils/CBuilder/Platform/Windows.pm line 130. I have WXP, perl 5.10.1. Is that what are you talking about Marvin? Is there any way to solve that? Thanks!
        Hide
        Lucas added a comment -

        Now, I change the constants in the file, and the following error appears:

        Parsing Clownfish files...
        Can't locate loadable object for module Clownfish in @INC (@INC contai
        +ns: clownf
        ish/blib/lib clownfish/blib/arch ../clownfish/blib/lib ../clownfish/bl
        +ib/arch cl
        ownfish\blib\lib clownfish\blib\arch ..\clownfish\blib\lib ..\clownfis
        +h\blib\arc
        h buildlib clownfish/blib/lib clownfish/blib/arch ../clownfish/blib/li
        +b ../clown
        fish/blib/arch buildlib C:/strawberry/perl/lib C:/strawberry/perl/site
        +/lib C:\st
        rawberry\perl\vendor\lib .) at clownfish/blib/lib/Clownfish.pm line 33
        BEGIN failed--compilation aborted at clownfish/blib/lib/Clownfish.pm l
        +ine 33.
        Compilation failed in require at clownfish/blib/lib/Clownfish/Util.pm
        +line 20.
        BEGIN failed--compilation aborted at clownfish/blib/lib/Clownfish/Util
        +.pm line 2
        0.
        Compilation failed in require at clownfish/blib/lib/Clownfish/Hierarch
        +y.pm line
        22.
        BEGIN failed--compilation aborted at clownfish/blib/lib/Clownfish/Hier
        +archy.pm l
        ine 22.
        Compilation failed in require at buildlib/Lucy/Build.pm line 237.

        Any idea? Thanks

        Show
        Lucas added a comment - Now, I change the constants in the file, and the following error appears: Parsing Clownfish files... Can't locate loadable object for module Clownfish in @INC (@INC contai +ns: clownf ish/blib/lib clownfish/blib/arch ../clownfish/blib/lib ../clownfish/bl +ib/arch cl ownfish\blib\lib clownfish\blib\arch ..\clownfish\blib\lib ..\clownfis +h\blib\arc h buildlib clownfish/blib/lib clownfish/blib/arch ../clownfish/blib/li +b ../clown fish/blib/arch buildlib C:/strawberry/perl/lib C:/strawberry/perl/site +/lib C:\st rawberry\perl\vendor\lib .) at clownfish/blib/lib/Clownfish.pm line 33 BEGIN failed--compilation aborted at clownfish/blib/lib/Clownfish.pm l +ine 33. Compilation failed in require at clownfish/blib/lib/Clownfish/Util.pm +line 20. BEGIN failed--compilation aborted at clownfish/blib/lib/Clownfish/Util +.pm line 2 0. Compilation failed in require at clownfish/blib/lib/Clownfish/Hierarch +y.pm line 22. BEGIN failed--compilation aborted at clownfish/blib/lib/Clownfish/Hier +archy.pm l ine 22. Compilation failed in require at buildlib/Lucy/Build.pm line 237. Any idea? Thanks
        Hide
        Marvin Humphrey added a comment -

        Hello, Lucas,

        > Is that what are you talking about Marvin?

        Yes, those are the errors addressed by this issue.

        Regarding the Clownfish::Hierarchy problem, please take this up on
        the Lucy users mailing list:

        http://incubator.apache.org/lucy/mailing_lists.html

        The JIRA issue tracker is for following specific issues; general
        discussion is better suited to the users list.

        Show
        Marvin Humphrey added a comment - Hello, Lucas, > Is that what are you talking about Marvin? Yes, those are the errors addressed by this issue. Regarding the Clownfish::Hierarchy problem, please take this up on the Lucy users mailing list: http://incubator.apache.org/lucy/mailing_lists.html The JIRA issue tracker is for following specific issues; general discussion is better suited to the users list.

          People

          • Assignee:
            Marvin Humphrey
            Reporter:
            Marvin Humphrey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development