[Radiance-general] new evalglare version available

Ery Djunaedy ery.mailinglist at gmail.com
Fri Feb 17 10:14:51 PST 2012


Jan,

Another error report here. I use linux (gcc version 4.5.2 (Ubuntu/Linaro 
4.5.2-8ubuntu4).

I have the following warning when compiling:
*********************
In function ‘strcpy’,
     inlined from ‘main’ at evalglare.c:1194:8:
/usr/include/bits/string3.h:105:3: warning: call to 
__builtin___strcpy_chk will always overflow destination buffer
*********************

evalglare is produced despite the warning. But when I tried to use it, I 
have the following error:
*********************
*** buffer overflow detected ***: evalglare terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x50)[0xb7647df0]
/lib/i386-linux-gnu/libc.so.6(+0xe4cca)[0xb7646cca]
/lib/i386-linux-gnu/libc.so.6(__strcpy_chk+0x3f)[0xb764605f]
evalglare[0x804b9c5]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0xb7578e37]
evalglare[0x80490f1]
*********************

Any idea why?

Thanks,

Ery


On 02/17/2012 09:34 AM, Guglielmetti, Robert wrote:
> Hi Jan,
>
> Exciting news!
>
> I just tried compiling this on MacOS ang I get the following error:
>
> rgugliel-14846s:evalglare rgugliel$ make evalglare
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/color.o common/color.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/resolu.o common/resolu.c -I. -Igeometry
> common/resolu.c: In function Œstr2resolu¹:
> common/resolu.c:98: warning: implicit declaration of function Œatoi¹
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/header.o common/header.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/image.o common/image.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/fvect.o common/fvect.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/badarg.o common/badarg.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/words.o common/words.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/fputword.o common/fputword.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/expandarg.o common/expandarg.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/wordfile.o common/wordfile.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/bmalloc.o common/bmalloc.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o
> common/mat4.o common/mat4.c -I. -Igeometry
> gcc -c -g -DMSDOS  -DPICT_GLARE -DFLOAT=double -O3  -Wall  -o pictool.o
> pictool.c -I. -Igeometry
> pictool.c: In function Œread_exposure¹:
> pictool.c:90: error: nested functions are disabled, use -fnested-functions
> to re-enable
> make: *** [pictool.o] Error 1
>
> Then I tried the following, also with no luck:
>
> rgugliel-14846s:evalglare rgugliel$ make evalglare -fnested-functions
> make: nested-functions: No such file or directory
> make: *** No rule to make target `nested-functions'.  Stop.
> rgugliel-14846s:evalglare rgugliel$ make -fnested-functions evalglare
> make: nested-functions: No such file or directory
> make: *** No rule to make target `nested-functions'.  Stop.
> rgugliel-14846s:evalglare rgugliel$
>
> Ideas? I know you only vouch for Linux with the source and provide a
> pre-compiled Windows version, but it'd be good to get this working on
> MacOS once and for all, now that it's at version 1.0 status.
>
>
>
> Rob Guglielmetti  IESNA, LEED AP
> Commercial Buildings Research Group
> National Renewable Energy Laboratory
> 1617 Cole Blvd MS:RSF202
> Golden, CO 80401
> T. 303.275.4319
> F. 303.630.2055
> E. robert.guglielmetti at nrel.gov
>
>
>
>
>
> On 2/17/12 6:59 AM, "Jan Wienold"<jan.wienold at ise.fraunhofer.de>  wrote:
>
>> Hi All,
>>
>> I want to announce a new evalglare version ready for download. (version
>> 1.0).
>>
>> Following main changes are included (see also the short documentation
>> which is included in the package) :
>>
>> -all current view types will be supported (except parallel view) - that
>> means also -vth !
>> -valid view is checked (many problems occurred, because often users
>> treat the image with programs like pcompos before putting into
>> evalglare. But then, the view got lost and a wrong view leads to totally
>> wrong results! Now this will be handled by the new evalglare )
>> -view options can be provided also per command line option
>> -disability glare is also calculated
>> -cut-out the "Guth" visual field
>> -extension of the DGP equation for low-brightness scenes (Ev<380lux) ,
>> based on new user assessments
>>
>> The main routines for glare source detection and calculation of the
>> glare values are not changed.
>>
>> Anyhow I strongly recommend to use from now on only the new version,
>> because the issue with non valid views can cause many troubles and wrong
>> values.
>> (and I guess many people use it and run into that problem and got wrong
>> values without knowing it!!).
>>
>> You can download the new version here:
>>
>> http://www.ise.fraunhofer.de/radiance
>>
>> good luck and an always glare free environment... ,
>>
>> Jan
>>
>> -- 
>> Dr.-Ing. Jan Wienold
>> Head of Team Passive Systems and Daylighting
>> Fraunhofer-Institut für Solare Energiesysteme
>> Thermal Systems and Buildings
>> Heidenhofstr. 2, 79110 Freiburg, Germany
>> Phone: +49(0)761 4588 5133 Fax:+49(0)761 4588 9133
>> jan.wienold at ise.fraunhofer.de
>> http://www.ise.fraunhofer.de
>>
>> In office:
>> Mo,Tue: 8:30-18:00
>> We,Thu: 8:30-16:00
>> Fr:  8:30-15:30
>>
>>
>> _______________________________________________
>> Radiance-general mailing list
>> Radiance-general at radiance-online.org
>> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general




More information about the Radiance-general mailing list