Opened 11 years ago

Closed 11 years ago

#42096 closed defect (fixed)

ufraw fails to compile using clang-3.4 and newer

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: ufraw

Description

New C++ diagnostics cause recent clang to report errors in ufraw

Fails: sudo port -v -s destroot ufraw configure.compiler=macports-clang-3.4

Works: sudo port -v -s destroot ufraw configure.compiler=macports-clang-3.3

  CXX    ufobject.o
  CXX    ufraw_settings.o
  CXX    ufraw_lensfun.o
ufraw_settings.cc:54:12: error: declaration of 'ufRawImage' with C language linkage conflicts with declaration in global scope
    UFName ufRawImage = "Image";
           ^
./ufraw.h:77:15: note: declared in global scope here
extern UFName ufRawImage;
              ^
ufraw_settings.cc:100:12: error: declaration of 'ufWB' with C language linkage conflicts with declaration in global scope
    UFName ufWB = "WB";
           ^
./ufraw.h:58:15: note: declared in global scope here
extern UFName ufWB;
              ^
ufraw_settings.cc:103:12: error: declaration of 'ufPreset' with C language linkage conflicts with declaration in global scope
    UFName ufPreset = "Preset";
           ^
./ufraw.h:59:15: note: declared in global scope here
extern UFName ufPreset;
              ^
ufraw_settings.cc:169:12: error: declaration of 'ufWBFineTuning' with C language linkage conflicts with declaration in global scope
    UFName ufWBFineTuning = "WBFineTuning";
           ^
./ufraw.h:60:15: note: declared in global scope here
extern UFName ufWBFineTuning;
              ^
ufraw_settings.cc:196:12: error: declaration of 'ufTemperature' with C language linkage conflicts with declaration in global scope
    UFName ufTemperature = "Temperature";
           ^
./ufraw.h:61:15: note: declared in global scope here
extern UFName ufTemperature;
              ^
ufraw_lensfun.cc:126:12: error: declaration of 'ufCameraModel' with C language linkage conflicts with declaration in global scope
    UFName ufCameraModel = "CameraModel";
           ^
./ufraw.h:66:15: note: declared in global scope here
extern UFName ufCameraModel;
              ^
ufraw_settings.cc:209:12: errorufraw_lensfun.cc:135:: declaration of 'ufGreen' with C language linkage conflicts with declaration in global scope
12: error: declaration of 'ufLensModel' with C language linkage conflicts with declaration in global scope
    UFName ufGreen = "Green";
           ^
./ufraw.h:62:15: note: declared in global scope here
    UFName ufLensModel = "LensModel";
           ^
extern UFName ufGreen;
              ^
./ufraw.h:67:15: note: declared in global scope here
extern UFName ufLensModel;
              ^
ufraw_settings.cc:222:12: error: declaration of 'ufChannelMultipliers' with C language linkage conflicts with declaration in global scope
    UFName ufChannelMultipliers = "ChannelMultipliers";
           ^
./ufraw.h:63:15: note: declared in global scope here
extern UFName ufChannelMultipliers;
              ^
ufraw_lensfun.cc:184:12: error: declaration of 'ufFocalLength' with C language linkage conflicts with declaration in global scope
    UFName ufFocalLength = "FocalLength";
           ^
./ufraw.h:68:15: note: declared in global scope here
extern UFName ufFocalLength;
              ^
ufraw_settings.cc:279:12: error: declaration of 'ufLensfunAuto' with C language linkage conflicts with declaration in global scope
    UFName ufLensfunAuto = "LensfunAuto";
           ^
./ufraw.h:64:15: note: declared in global scope here
extern UFName ufLensfunAuto;
              ^
ufraw_lensfun.cc:240:12: error: declaration of 'ufAperture' with C language linkage conflicts with declaration in global scope
    UFName ufAperture = "Aperture";
           ^
./ufraw.h:69:15: note: declared in global scope here
extern UFName ufAperture;
              ^
ufraw_settings.cc:412:12: error: declaration of 'ufRawResources' with C language linkage conflicts with declaration in global scope
    UFName ufRawResources = "Resources";
           ^
./ufraw.h:78:15: note: declared in global scope here
extern UFName ufRawResources;
              ^
ufraw_lensfun.cc:294:12: error: declaration of 'ufDistance' with C language linkage conflicts with declaration in global scope
    UFName ufDistance = "Distance";
           ^
./ufraw.h:70:15: note: declared in global scope here
extern UFName ufDistance;
              ^
ufraw_settings.cc:461:12: error: declaration of 'ufCommandLine' with C language linkage conflicts with declaration in global scope
    UFName ufCommandLine = "CommandLine";
           ^
./ufraw.h:79:15: note: declared in global scope here
extern UFName ufCommandLine;
              ^
ufraw_lensfun.cc:333:12: error: declaration of 'ufModel' with C language linkage conflicts with declaration in global scope
    UFName ufModel = "Model";
           ^
./ufraw.h:74:15: note: declared in global scope here
extern UFName ufModel;
              ^
ufraw_lensfun.cc:359:12: error: declaration of 'ufTCA' with C language linkage conflicts with declaration in global scope
    UFName ufTCA = "TCA";
           ^
./ufraw.h:71:15: note: declared in global scope here
extern UFName ufTCA;
              ^
ufraw_lensfun.cc:430:12: error: declaration of 'ufVignetting' with C language linkage conflicts with declaration in global scope
    UFName ufVignetting = "Vignetting";
           ^
./ufraw.h:72:15: note: declared in global scope here
extern UFName ufVignetting;
              ^
ufraw_lensfun.cc:506:12: error: declaration of 'ufDistortion' with C language linkage conflicts with declaration in global scope
    UFName ufDistortion = "Distortion";
           ^
./ufraw.h:73:15: note: declared in global scope here
extern UFName ufDistortion;
              ^
ufraw_lensfun.cc:592:12: error: declaration of 'ufLensGeometry' with C language linkage conflicts with declaration in global scope
    UFName ufLensGeometry = "LensGeometry";
           ^
./ufraw.h:75:15: note: declared in global scope here
extern UFName ufLensGeometry;
              ^
10 errors generated.
ufraw_lensfun.cc:628:12: error: declaration of 'ufTargetLensGeometry' with C language linkage conflicts with declaration in global scope
    UFName ufTargetLensGeometry = "TargetLensGeometry";
           ^
./ufraw.h:76:15: note: declared in global scope here
extern UFName ufTargetLensGeometry;
              ^
ufraw_lensfun.cc:651:12: error: declaration of 'ufLensfun' with C language linkage conflicts with declaration in global scope
    UFName ufLensfun = "Lensfun";
           ^
./ufraw.h:65:15: note: declared in global scope here
extern UFName ufLensfun;
              ^
make[2]: *** [ufraw_settings.o] Error 1
make[2]: *** Waiting for unfinished jobs....
12 errors generated.
make[2]: *** [ufraw_lensfun.o] Error 1
17 warnings generated.
make[2]: Leaving directory `/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_graphics_ufraw/ufraw/work/ufraw-0.19.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_graphics_ufraw/ufraw/work/ufraw-0.19.2'
make: *** [all] Error 2

Change History (1)

comment:1 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.