Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870478 - net-libs/c-client-2007f-r7:0 - osdep.h: error: implicit declaration of function safe_flock [-Werror=implicit-function-declaration]
Summary: net-libs/c-client-2007f-r7:0 - osdep.h: error: implicit declaration of functi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-16 19:30 UTC by Toralf Förster
Modified: 2022-10-07 11:28 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.61 KB, text/plain)
2022-09-16 19:30 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,221.33 KB, text/plain)
2022-09-16 19:30 UTC, Toralf Förster
Details
environment (environment,105.89 KB, text/plain)
2022-09-16 19:30 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.90 KB, application/x-bzip)
2022-09-16 19:30 UTC, Toralf Förster
Details
net-libs:c-client-2007f-r7:20220916-181828.log (net-libs:c-client-2007f-r7:20220916-181828.log,11.32 KB, text/plain)
2022-09-16 19:30 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.29 KB, application/x-bzip)
2022-09-16 19:30 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 2022-09-16 19:30:35 UTC
/usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
env_unix.c: In function lock_work:
osdep.h:60:15: error: implicit declaration of function safe_flock [-Werror=implicit-function-declaration]
   60 | #define flock safe_flock
      |               ^~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-j4-20220913-150005

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
*)	OpenJDK 17.0.5_p5 [openjdk-17]
2)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
4)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-17  system-vm
  [2]   openjdk-bin-8 
  [3]   openjdk-bin-17 
  [4]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3.90

  HEAD of ::gentoo
commit 0d22bb6c1d6dd9122872e6479a56f3fee85ea69a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Sep 16 18:02:06 2022 +0000

    2022-09-16 18:02:06 UTC

emerge -qpvO net-libs/c-client
[ebuild  N    ] net-libs/c-client-2007f-r7  USE="ipv6 pam ssl -chappa -doc -kerberos -static-libs -topal"
Comment 1 Toralf Förster gentoo-dev 2022-09-16 19:30:36 UTC
Created attachment 806095 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-16 19:30:37 UTC
Created attachment 806098 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-16 19:30:39 UTC
Created attachment 806101 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-16 19:30:40 UTC
Created attachment 806104 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-16 19:30:40 UTC
Created attachment 806107 [details]
net-libs:c-client-2007f-r7:20220916-181828.log
Comment 6 Toralf Förster gentoo-dev 2022-09-16 19:30:42 UTC
Created attachment 806110 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-10-07 11:28:49 UTC
The bug has been closed via the following commit(s):

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

commit 324b4dc522e9fed3f843e43c1c9c1f1256d14f96
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-10-05 11:19:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-07 11:28:00 +0000

    net-libs/c-client: fix clang-16 build issues
    
    This fixes bug 870478 by applying two patches. First patch resolves
    implicit function declaration issues by defining safe_lock function
    prototype and adding utime.h missing include. The second patch corrects
    function pointer types for callbacks used in scandir function.
    
    Additionally:
    - EAPI bumped to 8
    - remove 3 years dead blocker net-mail/uw-imap, removed in commit
      6b4c9212b3da ("net-mail/uw-imap: Remove last-rited pkg")
    
    Closes: https://bugs.gentoo.org/870478
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/c-client/c-client-2007f-r8.ebuild         | 161 ++++++++++++++++++++
 .../c-client-2007f-implicit-declaration-fix.patch  |  34 +++++
 .../c-client-2007f-scandir-callback-types.patch    | 167 +++++++++++++++++++++
 3 files changed, 362 insertions(+)