Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828671 - www-servers/moonbridge-1.0.1 - moonbridge.c: note: each undeclared identifier is reported only once for each function it appears i
Summary: www-servers/moonbridge-1.0.1 - moonbridge.c: note: each undeclared identifier...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-10 08:44 UTC by Toralf Förster
Modified: 2022-07-11 19:27 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.33 KB, text/plain)
2021-12-10 08:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,50.34 KB, text/plain)
2021-12-10 08:44 UTC, Toralf Förster
Details
environment (environment,67.90 KB, text/plain)
2021-12-10 08:44 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,40.47 KB, application/x-bzip)
2021-12-10 08:44 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,155.69 KB, application/x-bzip)
2021-12-10 08:44 UTC, Toralf Förster
Details
www-servers:moonbridge-1.0.1:20211210-033711.log (www-servers:moonbridge-1.0.1:20211210-033711.log,6.44 KB, text/plain)
2021-12-10 08:44 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-10 08:44:22 UTC
      |             ^~~~~
moonbridge.c:1444:27: error: 'F_SETFD' undeclared (first use in this function)
 1444 |         if (fcntl(peerfd, F_SETFD, FD_CLOEXEC) == -1) {
      |                           ^~~~~~~
moonbridge.c:1444:27: note: each undeclared identifier is reported only once for each function it appears in
moonbridge.c:1444:36: error: 'FD_CLOEXEC' undeclared (first use in this function); did you mean 'SOCK_CLOEXEC'?
 1444 |         if (fcntl(peerfd, F_SETFD, FD_CLOEXEC) == -1) {
      |                                    ^~~~~~~~~~
      |                                    SOCK_CLOEXEC

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20211209-163207

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 30a6680e46f970f64c96d1f26503f2dbbf7e4954
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 10 02:36:41 2021 +0000

    2021-12-10 02:36:40 UTC

emerge -qpvO www-servers/moonbridge
[ebuild  N    ] www-servers/moonbridge-1.0.1  LUA_SINGLE_TARGET="lua5-3"
Comment 1 Toralf Förster gentoo-dev 2021-12-10 08:44:23 UTC
Created attachment 757910 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-10 08:44:24 UTC
Created attachment 757911 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-10 08:44:25 UTC
Created attachment 757912 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-10 08:44:26 UTC
Created attachment 757913 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-10 08:44:28 UTC
Created attachment 757914 [details]
temp.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-10 08:44:28 UTC
Created attachment 757915 [details]
www-servers:moonbridge-1.0.1:20211210-033711.log
Comment 7 Larry the Git Cow gentoo-dev 2022-07-11 19:27:56 UTC
The bug has been closed via the following commit(s):

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

commit 9b810c67bdeed3a2ea8ddea55034dbf7f3f33de7
Author:     brahmajit das <brahmajit.xyz@gmail.com>
AuthorDate: 2022-07-11 19:24:41 +0000
Commit:     Alfredo Tupone <tupone@gentoo.org>
CommitDate: 2022-07-11 19:27:27 +0000

    www-servers/moonbridge: Fix building on musl. Include fcntl
    
    It is explicitely required to include fcntl.h in musl.
    Else we get F_SETFD, FD_CLOEXEC undefined errors.
    
    Closes: https://bugs.gentoo.org/828671
    
    Signed-off-by: brahmajit das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26352
    Signed-off-by: Alfredo Tupone <tupone@gentoo.org>

 www-servers/moonbridge/files/moonbridge-1.0.1-fcntl.patch | 14 ++++++++++++++
 www-servers/moonbridge/moonbridge-1.0.1.ebuild            |  5 ++++-
 2 files changed, 18 insertions(+), 1 deletion(-)