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

Ron Hickson <ron-H+SwEB6EEwZWk0Htik3J/[email protected]> Sat, 29 Nov 2008 19:45:07 +0000
Newsgroups gmane.comp.video.cinepaint.user
Message-ID <1227987907.7471.23.camel@localhost>
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