[oi-dev] [developer] recompile oi-userland > gcc-7

Aurélien Larcher aurelien.larcher at gmail.com
Mon Feb 28 15:51:03 UTC 2022


On Mon, Feb 28, 2022 at 4:14 PM Klaus Ziegler <klausz at haus-gisela.de> wrote:

>
>
> On 2/28/22 16:09, Toomas Soome via oi-dev wrote
> > Multiply defined symbol means there are many object modules providing
> the same symbol. This often happens because variable is declared in header
> without ‘extern’. gcc 10 did switch on that warning - it was off in
> previous versions. Many third party packages already have this fixed, so
> you may want to check for updates….
> >
> > rgds,
> > toomas
> >
> Hi Toomas,
> I allready did, the latest release of trousers has the same problem, so
> I need to fix it myself looking for the symbol in header files and add
> extern for the affected symbol (s) ?
>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678

You can add -fcommon to CFLAGS as a workaround.

>
> Rgds
> Klaus
>
> _______________________________________________
> oi-dev mailing list
> oi-dev at openindiana.org
> https://openindiana.org/mailman/listinfo/oi-dev
>


-- 
---
Praise the Caffeine embeddings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20220228/8f52d78d/attachment.html>


More information about the oi-dev mailing list