POV-Ray : Newsgroups : povray.beta-test : master branch issue 29 linux compilation errors : Re: master branch issue 29 linux compilation errors Server Time
14 May 2024 11:03:20 EDT (-0400)
  Re: master branch issue 29 linux compilation errors  
From: Le Forgeron
Date: 1 Jul 2014 16:17:46
Message: <53b3176a$1@news.povray.org>
Le 01/07/2014 21:19, clipka nous fit lire :
> Am 01.07.2014 18:31, schrieb Le_Forgeron:
> 
>> Seems the only error that remains (in many place) for gcc is about
>> shared_ptr with NULL. (it might be enough, if you want to keep NULL, to
>> have a C-old cast in void*, such as
>>
>> return GenericNormalBlendMapPtr((void*)NULL);
>>
>> ) (as long as to be ugly with C NULL, a C-cast seems not that more to
>> the vessel; Of course, a default empty constructor is fine.. but we know
>> theses lines are not to be executed)
> 
> I've decided to go for a parameterless shared_ptr constructor with a
> comment.
> 
> Let me know what ca65fc523763201fde29dffd89c63788d81bdd16 does.
> 
You're close, only express.cpp still has errors, at 5 locations (3133,
3139, 3153, 3157 and 3170), or just 3107 (as it's a template).

backend/parser/express.cpp(3107): error: no instance of constructor
"boost::shared_ptr<T>::shared_ptr [with T=pov::TextureBlendMap]" matches
the argument list
            argument types are: (long)
          return shared_ptr<MAP_T>(NULL);
                 ^
          detected during instantiation of "boost::shared_ptr<MAP_T>
pov::Parser::Parse_Blend_List<MAP_T>(int, pov::ColourBlendMapConstPtr,
int) [with MAP_T=pov::TextureBlendMap]" at line 3170



The 3 compilers agree. Just that one and we can try the link :-)
(Well, I cheated, replacing the NULL with nothing to test... )
it linked... but "make check" ends with a core dump.
Reconfiguring with --enable-debug ...


#0  0x0000000000579557 in pov::IsoSurface::Compute_BBox
(this=0x2b634c0dc8e0) at backend/shape/isosurf.cpp:746
#1  0x000000000051d684 in pov::Parser::Parse_Object_Mods
(this=this@entry=0x2b6344004cc0, Object=0x2b634c0dc8e0) at
backend/parser/parse.cpp:7390
#2  0x0000000000525921 in pov::Parser::Parse_Object
(this=this@entry=0x2b6344004cc0) at backend/parser/parse.cpp:6410
#3  0x000000000052b15d in pov::Parser::Parse_Frame (this=0x2b6344004cc0)
at backend/parser/parse.cpp:6720
#4  0x000000000052b9b4 in pov::Parser::Run (this=0x2b6344004cc0) at
backend/parser/parse.cpp:203
#5  0x0000000000599da7 in pov::Task::TaskThread (this=0x2b6344004cc0,
completion=...) at backend/support/task.cpp:171
#6  0x00002b63370faa4a in ?? () from
/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#7  0x00002b6337b2d182 in start_thread (arg=0x2b633cd48700) at
pthread_create.c:312
#8  0x00002b6337e3e30d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111


> 0  0x0000000000579557 in pov::IsoSurface::Compute_BBox (this=0x2b634c0dc8e0) at
backend/shape/isosurf.cpp:746
> #1  0x000000000051d684 in pov::Parser::Parse_Object_Mods
(this=this@entry=0x2b6344004cc0, Object=0x2b634c0dc8e0) at
backend/parser/parse.cpp:7390
> #2  0x0000000000525921 in pov::Parser::Parse_Object (this=this@entry=0x2b6344004cc0)
at backend/parser/parse.cpp:6410
> #3  0x000000000052b15d in pov::Parser::Parse_Frame (this=0x2b6344004cc0) at
backend/parser/parse.cpp:6720
> #4  0x000000000052b9b4 in pov::Parser::Run (this=0x2b6344004cc0) at
backend/parser/parse.cpp:203
> #5  0x0000000000599da7 in pov::Task::TaskThread (this=0x2b6344004cc0,
completion=...) at backend/support/task.cpp:171
> #6  0x00002b63370faa4a in ?? () from
/usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
> #7  0x00002b6337b2d182 in start_thread (arg=0x2b633cd48700) at pthread_create.c:312
> #8  0x00002b6337e3e30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

container is null.

void IsoSurface::Compute_BBox()
{
    container->ComputeBBox(BBox);
    if(Trans != NULL)
    {
        Recompute_BBox(&BBox, Trans);
    }
}



-- 
IQ of crossposters with FU: 100 / (number of groups)
IQ of crossposters without FU: 100 / (1 + number of groups)
IQ of multiposters: 100 / ( (number of groups) * (number of groups))


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.