Re: [CinePaint] PROBLEMS RE-INSTALLING CINEPAINT-0.22-1 ON MANDRIVA

Ron Hickson <ron-H+SwEB6EEwZWk0Htik3J/[email protected]> Sun, 30 Nov 2008 11:58:27 +0000
Newsgroups gmane.comp.video.cinepaint.user
Message-ID <1228046307.5067.14.camel@localhost>
Robin / Frank

This is becoming a bit of a saga - and I don't know why it's changed
from when I last updated Mandriva (unless there's something missing in
the 2009.0 version).   Inserting "# include <string.h." (or <cstring> -
it doesn't seem to matter) works with the br_Image.cpp and
ResponseSolver.hpp files, but then the next error is as follows:


> icc_oyranos.h: At global scope:
> icc_oyranos.h:153: error: multiple parameters named ‘byte’
> icc_oyranos.h:153: error: multiple parameters named ‘kanaele’
> icc_oyranos.h:164: error: multiple parameters named ‘byte’
> icc_oyranos.h:164: error: multiple parameters named ‘kanaele’
> icc_oyranos.h:176: error: multiple parameters named ‘byte’
> icc_oyranos.h:176: error: multiple parameters named ‘kanaele’
> icc_oyranos.h:194: error: multiple parameters named ‘byte’
> icc_oyranos.h:194: error: multiple parameters named ‘kanaele’
> In file included from agviewer.cpp:17:
> icc_examin.h:50: warning: declaration ‘class icc_examin_ns::EinModell’ does not declare anything
> agviewer.cpp: In member function ‘void Agviewer::PolarLookFrom(GLfloat, GLfloat, GLfloat)’:
> agviewer.cpp:77: warning: suggest parentheses around && within ||
> agviewer.cpp: In member function ‘void Agviewer::agvMove_()’:
> agviewer.cpp:146: warning: suggest parentheses around && within ||
> agviewer.cpp:171: warning: suggest parentheses around && within ||
> agviewer.cpp: In member function ‘void Agviewer::MoveOn(int)’:
> agviewer.cpp:199: warning: suggest parentheses around && within ||
> agviewer.cpp:205: warning: suggest parentheses around && within ||
> agviewer.cpp: In member function ‘void Agviewer::agvHandleButton(int, int, int, int)’:
> agviewer.cpp:295: warning: suggest parentheses around && within ||
> agviewer.cpp:330: warning: suggest parentheses around && within ||
> agviewer.cpp:333: warning: suggest parentheses around && within ||
> agviewer.cpp:342: warning: suggest parentheses around && within ||
> agviewer.cpp:344: warning: suggest parentheses around && within ||
> agviewer.cpp: In member function ‘void Agviewer::agvHandleMotion(int, int)’:
> agviewer.cpp:382: warning: suggest parentheses around && within ||
> agviewer.cpp:393: warning: suggest parentheses around && within ||
> agviewer.cpp: In member function ‘void Agviewer::agvMakeAxesList(int)’:
> agviewer.cpp:487: warning: suggest parentheses around && within ||
> make[3]: *** [agviewer.o] Error 1
> make[3]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins/icc_examin/icc_examin'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins/icc_examin'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins'
> make: *** [all-recursive] Error 1
> 
Putting in "<string.h> (or <cstring>) into any of the mentioned files has no effect.

My configure was "--enable-gtk2 --with-python=/usr/bin/python --enable-debug --enable-profile --enable-pygimp.

I've tried omitting "--enable-profile", but it makes no difference

Ron

On Sat, 2008-11-29 at 12:34 -0800, Robin Rowe wrote:
> Ron,
> 
>  > Your tip worked in so far as it got me past that particular hiccup,
>  > but then I ran into the following:
>  >
>  >
>  >> ResponseSolver.hpp:677: error: there are no arguments to ‘strlen’ 
> that depend on a template parameter, so a declaration of ‘strlen’ must 
> be available
>  >> ResponseSolver.hpp:677: error: (if you use ‘-fpermissive’, G++ will 
> accept your code, but allowing the use of an undeclared name is deprecated)
> 
> Any file where you get a "strlen" error, the fix I gave you of including 
> the header should work. The cause is that how gcc handles warnings has 
> changed, making them into errors. As compilers evolve, the code is 
> forced to evolve with them.
> 
> Robin
> 
> Ron Hickson wrote:
> > Robin
> > 
> > Thanks - and thanks too to Bob Friesenhahn for putting me right on the
> > redundant negatives in the config output.
> > 
> > Your tip worked in so far as it got me past that particular hiccup, but
> > then I ran into the following:
> > 
> > 
> >> ResponseSolver.hpp:677: error: there are no arguments to ‘strlen’ that depend on a template parameter, so a declaration of ‘strlen’ must be available
> >> ResponseSolver.hpp:677: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
> >> ../TNT/tnt_array1d.hpp: In member function ‘TNT::Array1D<T> TNT::Array1D<T>::subarray(int, int) [with T = double]’:
> >> ResponseSolver.hpp:435:   instantiated from ‘void br::ResponseSolver<Unsign, Real>::compute(double, const TNT::Array1D<double>&, bool) [with Unsign = unsigned char, Real = double]’
> >> HdrCalctor_RGB_U8.cpp:135:   instantiated from here
> >> ../TNT/tnt_array1d.hpp:272: warning: suggest parentheses around && within ||
> >> ../TNT/tnt_array1d.hpp: In member function ‘TNT::Array1D<T> TNT::Array1D<T>::subarray(int, int) [with T = unsigned char]’:
> >> br_ImgScheme2D.hpp:241:   instantiated from ‘br::ImgScheme2D<T> br::ImgScheme2D<T>::subscheme(int, int, int, int) [with T = Rgb<unsigned char>]’
> >> br_PackImgScheme2D.hpp:198:   instantiated from ‘br::PackImgScheme2D<T>::PackImgScheme2D(br::BrImgVector&) [with T = Rgb<unsigned char>]’
> >> br_PackImgScheme2D.hpp:301:   instantiated from here
> >> ../TNT/tnt_array1d.hpp:272: warning: suggest parentheses around && within ||
> >> make[3]: *** [HdrCalctor_RGB_U8.lo] Error 1
> >> make[3]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core'
> >> make[2]: *** [all-recursive] Error 1
> >> make[2]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins/bracketing_to_hdr'
> >> make[1]: *** [all-recursive] Error 1
> >> make[1]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins'
> >> make: *** [all-recursive] Error 1
> > 
> > I tried putting parentheses around && in the tnt_array1d.hpp but that just generated a new message:
> > 
> >> ../TNT/tnt_array1d.hpp:272: error: expected identifier before ‘)’ token                                                      
> >> ../TNT/tnt_array1d.hpp:272: error: taking the address of a label is non-standard                                             
> >> ../TNT/tnt_array1d.hpp:272: error: ‘(i0 > 0)’ cannot be used as a function                                                   
> >> br_Image.cpp: In member function ‘void br::BrImgVector::report_offsets() const’:                                             
> >> br_Image.cpp:732: warning: deprecated conversion from string constant to ‘char*’                                             
> >> br_Image.cpp:732: warning: deprecated conversion from string constant to ‘char*’                                             
> >> make[3]: *** [br_Image.lo] Error 1                                                                                           
> >> make[3]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins/bracketing_to_hdr/br_core'                              
> >> make[2]: *** [all-recursive] Error 1                                                                                         
> >> make[2]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins/bracketing_to_hdr'                                      
> >> make[1]: *** [all-recursive] Error 1                                                                                         
> >> make[1]: Leaving directory `/opt/blackhole/cinepaint-0.22-1/plug-ins'                                                        
> >> make: *** [all-recursive] Error 1
> >>
> > 
> > So I removed the parentheses and put the file back as it was.  
> > 
> > What is difficult to understand is why this is happening now after, possibly, four or five successful
> > installations from the same tar (I always delete the directory and re-open the tar afresh)
> > 
> > Ron                                                                                
> > 
> > 
> > On Sat, 2008-11-29 at 08:40 -0800, Robin Rowe wrote:
> >> Ron,
> >>
> >>  > 0.22-1 on Mandriva 2009.0.
> >>
> >> Sorry, I should have noticed from the subject you're working in 0.22-1. 
> >> I sometimes look past things written in ALL CAPS.
> >>
> >>  > .. -I/usr/local/include -I.. -DDEBUG -g -Wall --pedantic -p -DDEBUG -g
> >>  > -Wall --pedantic -g -MT br_Image.lo -MD -MP -MF .deps/br_Image.Tpo -c
> >>  > br_Image.cpp  -fPIC -DPIC -o .libs/br_Image.o
> >>  > br_Image.cpp: In member function ‘void br::Image::_Image(int, int,int,
> >>  > br::DataType, br::StoringScheme, const char*)’:
> >>  > br_Image.cpp:150: error: ‘strlen’ was not declared in this scope
> >>  > br_Image.cpp:151: error: ‘strcpy’ was not declared in this scope
> >>
> >> If I understand what the error message is trying to tell me, it's 
> >> objecting to being compiled with the --pedantic flag on without the 
> >> strlen string.h header explicitly included.
> >>
> >> Add this line:
> >>
> >> #include <string.h>
> >>
> >> Placing that with the other includes near the top of br_Image.cpp should 
> >> fix.
> >>
> >> Robin
> > 
> > 
> > 
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> > Build the coolest Linux based applications with Moblin SDK & win great prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Cinepaint-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/cinepaint-users
> 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cinepaint-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cinepaint-users