Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854579 - app-i18n/freewnn-1.1.1_alpha23-r1 fails to compile (lto): undefined reference to closesocket
Summary: app-i18n/freewnn-1.1.1_alpha23-r1 fails to compile (lto): undefined reference...
Status: RESOLVED PKGREMOVED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-06-27 10:18 UTC by Agostino Sarubbo
Modified: 2024-08-16 07:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,150.74 KB, text/plain)
2022-06-27 10:19 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-06-27 10:18:59 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-i18n/freewnn-1.1.1_alpha23-r1 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-06-27 10:19:01 UTC
Created attachment 788006 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-06-27 10:19:03 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x1275): undefined reference to `closesocket'
<artificial>:(.text+0x120a): undefined reference to `closesocket'
<artificial>:(.text+0x39e5): undefined reference to `closesocket'
<artificial>:(.text+0x7458): undefined reference to `closesocket'
collect2: error: ld returned 1 exit status
Comment 3 Eli Schwartz gentoo-dev 2024-03-03 04:12:56 UTC
I tried to reproduce this but could not get that far, since there were ***too many to count*** instances of -Werror=implicit-function-declaration. As far as I can tell, the source code simply does not believe in the idea of including system headers like, at all?

Basically every instance had a

note: include ‘<stdlib.h>’ or provide a declaration of XXX
note: include ‘<string.h>’ or provide a declaration of XXX

There's a small handful of int-conversion issues stemming from the missing function declarations, but it's difficult to tell anything at all from the torrents of noise.

The software uses OSDN and is as slow as molasses to load anything, but from what I can make out:

- last released in 2015
- they use CVS for development
- the one commit since 2015 was a fix for https://reproducible-builds.org


"""
FreeWnn's dictionary files (*.dic, *.fzk, *.con and *.conR) have
the current time, build host name and inode numbers
in their headers.
So binaries were not "Reproducible Buids"!
I changed the atod and atof commands.
Now, both commands can ignore
the current time, build host name and inode numbers
by "-d" option.

But FreeWnn identifies files by header information.
So "-d" option needs the "dummy device number" option argument.
I manage "dummy device number"  by "devnum.conf" files.
"""

Intriguing. Also seems a bit hopeless tbh. The software is too scary to consider where to start fixing it.
Comment 4 Eli Schwartz gentoo-dev 2024-03-03 04:30:26 UTC
hattya, do you have any idea what we can do here? Note the code will horribly miscompile with current compilers and very shortly fail to compile at all with gcc 14, so I think we desperately need someone to check if upstream can be woken up and fix these issues.

See https://wiki.gentoo.org/wiki/Modern_C_porting#How_do_I_reproduce_these_bugs.3F for more details.
Comment 5 Larry the Git Cow gentoo-dev 2024-07-15 22:59:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=949c5f35236e1a69660b862287df15672bb81f96

commit 949c5f35236e1a69660b862287df15672bb81f96
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-07-15 15:55:14 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-07-15 22:58:22 +0000

    package.mask: Last rite app-i18n/freewnn and friends
    
    Bug: https://bugs.gentoo.org/936129
    Bug: https://bugs.gentoo.org/829613
    Bug: https://bugs.gentoo.org/854579
    Bug: https://bugs.gentoo.org/871603
    Bug: https://bugs.gentoo.org/874114
    Bug: https://bugs.gentoo.org/934595
    Bug: https://bugs.gentoo.org/934652
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 profiles/package.mask | 11 +++++++++++
 1 file changed, 11 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2024-08-16 07:12:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c287f16a2fa6e11c48b689274ee7a26e97c29c2

commit 9c287f16a2fa6e11c48b689274ee7a26e97c29c2
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-08-16 07:11:52 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-16 07:12:13 +0000

    app-i18n/freewnn: treeclean
    
    Closes: https://bugs.gentoo.org/854579 (pkgremoved)
    Closes: https://bugs.gentoo.org/871603 (pkgremoved)
    Closes: https://bugs.gentoo.org/874114 (pkgremoved)
    Closes: https://bugs.gentoo.org/934595 (pkgremoved)
    Closes: https://bugs.gentoo.org/934652 (pkgremoved)
    Closes: https://bugs.gentoo.org/936129 (pkgremoved)
    Closes: https://bugs.gentoo.org/829613 (pkgremoved)
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 app-i18n/freewnn/Manifest                          |   1 -
 .../files/freewnn-1.1.1-implicit-configure.patch   |  19 ---
 .../freewnn/files/freewnn-Wformat-security.patch   | 143 ---------------------
 app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch    |  13 --
 app-i18n/freewnn/files/freewnn.confd-r1            |   1 -
 app-i18n/freewnn/files/freewnn.initd               |  16 ---
 app-i18n/freewnn/files/freewnn.initd-r1            |  17 ---
 app-i18n/freewnn/freewnn-1.1.1_alpha23-r2.ebuild   |  89 -------------
 app-i18n/freewnn/metadata.xml                      |  14 --
 profiles/package.mask                              |   9 --
 10 files changed, 322 deletions(-)