Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713636 - net-analyzer/nsat-1.5-r6 : ./ADMsmb.c: error: F_SETFL undeclared (first use in this function)
Summary: net-analyzer/nsat-1.5-r6 : ./ADMsmb.c: error: F_SETFL undeclared (first use i...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-20 14:55 UTC by Toralf Förster
Modified: 2024-11-07 09:10 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.52 KB, text/plain)
2020-03-20 14:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,188.70 KB, text/plain)
2020-03-20 14:56 UTC, Toralf Förster
Details
environment (environment,60.00 KB, text/plain)
2020-03-20 14:56 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.86 KB, application/x-bzip)
2020-03-20 14:56 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.34 KB, application/x-bzip)
2020-03-20 14:56 UTC, Toralf Förster
Details
net-analyzer:nsat-1.5-r5:20200320-082606.log (net-analyzer:nsat-1.5-r5:20200320-082606.log,11.88 KB, text/plain)
2020-03-20 14:56 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,18.78 KB, application/x-bzip)
2020-03-20 14:56 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 2020-03-20 14:55:55 UTC
  117 |   if ((fcntl (socket_client, F_SETFL, O_NONBLOCK)) == -1)
      |        ^~~~~
./ADMsmb.c:117:30: error: F_SETFL undeclared (first use in this function)
  117 |   if ((fcntl (socket_client, F_SETFL, O_NONBLOCK)) == -1)
      |                              ^~~~~~~
./ADMsmb.c:117:30: note: each undeclared identifier is reported only once for each function it appears in

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO net-analyzer/nsat
[ebuild  N    ] net-analyzer/nsat-1.5-r5  USE="-X"
Comment 1 Toralf Förster gentoo-dev 2020-03-20 14:55:58 UTC
Created attachment 623200 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-20 14:56:01 UTC
Created attachment 623202 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-20 14:56:04 UTC
Created attachment 623204 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-20 14:56:07 UTC
Created attachment 623206 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-20 14:56:10 UTC
Created attachment 623208 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-20 14:56:13 UTC
Created attachment 623210 [details]
net-analyzer:nsat-1.5-r5:20200320-082606.log
Comment 7 Toralf Förster gentoo-dev 2020-03-20 14:56:16 UTC
Created attachment 623212 [details]
temp.tbz2
Comment 8 Agostino Sarubbo gentoo-dev 2022-01-31 09:44:27 UTC
tinderbox_musl has reproduced this issue with version 1.5-r6 - Updating summary.
Comment 9 Larry the Git Cow gentoo-dev 2024-11-07 09:10:50 UTC
The bug has been referenced in the following commit(s):

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

commit ad1f5d0a2eef8f1d1e9684a902f9cdff2174220b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-07 09:09:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-07 09:10:28 +0000

    net-analyzer/nsat: don't pass -ansi
    
    The configure check for setpgrp was getting confused by the configure
    script always passing -ansi (!). This may or may not fix the build
    on musl (given -ansi will disable any extensions).
    
    Bug: https://bugs.gentoo.org/713636
    Closes: https://bugs.gentoo.org/897836
    Closes: https://bugs.gentoo.org/900030
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/nsat/files/nsat-1.5-no-ansi.patch     | 53 ++++++++++++++++++++++
 .../{nsat-1.5-r6.ebuild => nsat-1.5-r7.ebuild}     |  1 +
 2 files changed, 54 insertions(+)