Login  Register

Re: LibreCAD on FreeBSD

Posted by jhale on Oct 25, 2022; 8:51pm
URL: https://forum.librecad.org/LibreCAD-on-FreeBSD-tp5722126p5722132.html

Hi, I'm the package maintainer for LibreCAD on FreeBSD (jhale@freebsd.org).

I bisected the source code and traced the problem to d0a0ef2.

FreeBSD uses Clang to build packages on mainstream platforms (amd64/i386). The code compiles without local patches, but looking at the build logs, I'm seeing warnings like this:

In file included from actions/rs_actiondrawcircletan2.cpp:26:
actions/rs_actiondrawcircletan2.h:82:53: warning: array backing local initializer list 'enTypeList' will be destroyed at the end of the full-expression [-Wdangling]
    const EntityTypeList enTypeList = EntityTypeList{RS2::EntityLine, RS2::EntityArc, RS2::EntityCircle};

Reverting eb2e146 and d0a0ef2 fixes the problem.