Bug 260184 - devel/libowfat: Fails to link: ld: error: duplicate symbol: first_deferred
Summary: devel/libowfat: Fails to link: ld: error: duplicate symbol: first_deferred
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: David Thiel
URL:
Keywords:
Depends on:
Blocks: 253763
  Show dependency treegraph
 
Reported: 2021-12-03 04:00 UTC by Marco Steinbach
Modified: 2021-12-08 18:52 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (lx)
koobs: merge-quarterly?


Attachments
git diff (850 bytes, patch)
2021-12-03 04:00 UTC, Marco Steinbach
no flags Details | Diff
poudriere and portlint output (112.47 KB, text/plain)
2021-12-03 04:01 UTC, Marco Steinbach
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Steinbach 2021-12-03 04:00:33 UTC
Created attachment 229854 [details]
git diff

Hi there.

It would seem, that as a result of defaulting to -fno_common instead of -fcommon, ports depending on devel/libowfat break.

One example is www/gatling:

ld: error: duplicate symbol: first_deferred
>>> defined at io_close.c
>>>            io_close.o:(first_deferred) in archive /usr/local/lib/libowfat.a
>>> defined at io_fd.c
>>>            io_fd.o:(.bss+0xD8) in archive /usr/local/lib/libowfat.a

This small patch, the idea for which I have blatantly stolen from https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/libowfat/files/libowfat-0.32-gcc10.patch tries to fix that.

- Bump PORTREVISION
- Add new patchfile for io_internal.h
Comment 1 Marco Steinbach 2021-12-03 04:01:41 UTC
Created attachment 229855 [details]
poudriere and portlint output