Opened 12 years ago

Closed 12 years ago

#35355 closed defect (fixed)

xbase @3.1.2 build failure

Reported by: gregori.emiliano@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: haspatch Cc:
Port: xbase

Description

The xbase @3.1.2 port will not build in Mac OS X Lion with XCode 4.3.1.

Mac OS X version: 10.7.4
Xcode version: 4.3.1 (4E1019)
compiler version: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

This is the log of the error:

dumprecs.cpp:87:9: error: redefinition of 'i'
    int i = 0;
        ^
dumprecs.cpp:73:11: note: previous definition is here
  for(int i=1; i<ac; ++i){
          ^
40 warnings and 1 error generated.
make[1]: *** [dumprecs.o] Error 1

The failure is due to a detection of a redeclared variable name in a nested scope. I attach a patch file to correct the failure.

Attachments (1)

patch-bin-dumprecs-cpp.diff (472 bytes) - added by gregori.emiliano@… 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by gregori.emiliano@…

Attachment: patch-bin-dumprecs-cpp.diff added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Thanks. r95985.

Note: See TracTickets for help on using tickets.