Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926515 - dev-libs/liblogging-1.0.6-r1 - beeplisten.c: error: implicit declaration of function sbSock_InitUXDOMSOCK [-Wimplicit-function-declaration]
Summary: dev-libs/liblogging-1.0.6-r1 - beeplisten.c: error: implicit declaration of f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PATCH
: 926516 (view as bug list)
Depends on: 940658
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-03-08 16:16 UTC by Toralf Förster
Modified: 2024-11-24 21:07 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.91 KB, text/plain)
2024-03-08 16:16 UTC, Toralf Förster
Details
dev-libs:liblogging-1.0.6-r1:20240307-175604.log (dev-libs:liblogging-1.0.6-r1:20240307-175604.log,19.19 KB, text/plain)
2024-03-08 16:16 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,71.63 KB, application/x-xz)
2024-03-08 16:16 UTC, Toralf Förster
Details
environment (environment,76.92 KB, text/plain)
2024-03-08 16:16 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-03-08 16:16 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,41.52 KB, application/x-xz)
2024-03-08 16:16 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,7.91 KB, application/x-xz)
2024-03-08 16:16 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,76.69 KB, application/x-xz)
2024-03-08 16:16 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.93 KB, application/x-xz)
2024-03-08 16:17 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 2024-03-08 16:16:48 UTC
  170 | sbFramActualRecvFramCommonBody(sbFramObj* pThis,sbChanObj *pChan)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:604: liblogging_rfc3195_la-beepframe.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -pipe -march=native -fno-diagnostics-color -c beepmessage.c  -fPIC -DPIC -o .libs/liblogging_rfc3195_la-beepmessage.o
beeplisten.c: In function 'sbLstnInit':
beeplisten.c:1055:28: error: implicit declaration of function 'sbSock_InitUXDOMSOCK' [-Wimplicit-function-declaration]
 1055 |                 if((iRet = sbSock_InitUXDOMSOCK(&(pThis->pSockUXDOMSOCKListening), pActualSockName, /*SOCK_DGRAM*/ SOCK_STREAM)) != SR_RET_OK)
      |                            ^~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd_merged_usr-20240301-035009

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.0
Python 3.11.8
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.75.0
  [2]   rust-1.75.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 8.402_p06 [openjdk-8]
3)	Eclipse Temurin JDK 11.0.22_p7 [openjdk-bin-11]
4)	Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
6)	Eclipse Temurin JDK 8.402_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-8 
  [3]   openjdk-bin-8 
  [4]   openjdk-bin-11 
  [5]   openjdk-bin-17 
  [6]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  [1]   php8.1
  [2]   php8.3 *
go version go1.22.1 linux/amd64

  HEAD of ::gentoo
commit 4d97e40124aef7188a6faa8153fe9a48c3838d3e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Mar 7 16:49:23 2024 +0000

    2024-03-07 16:49:23 UTC

emerge -qpvO dev-libs/liblogging
[ebuild  N    ] dev-libs/liblogging-1.0.6-r1  USE="rfc3195 stdlog systemd"
Comment 1 Toralf Förster gentoo-dev 2024-03-08 16:16:49 UTC
Created attachment 887049 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-03-08 16:16:50 UTC
Created attachment 887050 [details]
dev-libs:liblogging-1.0.6-r1:20240307-175604.log
Comment 3 Toralf Förster gentoo-dev 2024-03-08 16:16:52 UTC
Created attachment 887051 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-03-08 16:16:53 UTC
Created attachment 887052 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-03-08 16:16:54 UTC
Created attachment 887053 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-03-08 16:16:55 UTC
Created attachment 887054 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-03-08 16:16:56 UTC
Created attachment 887055 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-03-08 16:16:58 UTC
Created attachment 887056 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-03-08 16:17:00 UTC
Created attachment 887057 [details]
temp.tar.xz
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-06 06:21:47 UTC
*** Bug 926516 has been marked as a duplicate of this bug. ***
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-24 11:08:18 UTC
Bumping to 1.0.7 will likely help (https://github.com/rsyslog/liblogging/commit/11f0fb1de855b7047c7b7f1977c8e5a910afdcc5).
Comment 12 b2c 2024-11-23 13:37:27 UTC
Now that gcc-14 (14.2.1_p20241116) is stable, this prevents building dev-libs/liblogging and dependet packages. 

On gcc-14, I now get an error while compiling, when with gcc-13 this only triggered a warning:

--------------------------------------------------
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..     -O2 -march=znver2 -c -o liblogging_rfc3195_la-stringbuf.lo `test -f 'stringbuf.c' || echo './'`stringbuf.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -O2 -march=znver2 -c stringbuf.c  -fPIC -DPIC -o .libs/liblogging_rfc3195_la-stringbuf.o
beepframe.c:170:1: error: return type defaults to 'int' [-Wimplicit-int]
  170 | sbFramActualRecvFramCommonBody(sbFramObj* pThis,sbChanObj *pChan)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..     -O2 -march=znver2 -c -o liblogging_rfc3195_la-syslogmessage.lo `test -f 'syslogmessage.c' || echo './'`syslogmessage.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..     -O2 -march=znver2 -c -o testdrvr.o testdrvr.c
beeplisten.c: In function 'sbLstnInit':
beeplisten.c:1055:28: error: implicit declaration of function 'sbSock_InitUXDOMSOCK' [-Wimplicit-function-declaration]
 1055 |                 if((iRet = sbSock_InitUXDOMSOCK(&(pThis->pSockUXDOMSOCKListening), pActualSockName, /*SOCK_DGRAM*/ SOCK_STREAM)) != SR_RET_OK)
      |                            ^~~~~~~~~~~~~~~~~~~~
--------------------------------------------------


Could you bump liblogging to 1.0.7 as suggested in https://bugs.gentoo.org/926515#c11 or is something else prventing this at the moment?

Thanks and all the best!
Comment 13 Larry the Git Cow gentoo-dev 2024-11-23 13:56:10 UTC
The bug has been closed via the following commit(s):

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

commit b650b7bfce54af7376575cec303cd2898ee90f4a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-23 13:54:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-23 13:55:27 +0000

    dev-libs/liblogging: add 1.0.7
    
    Always enable rfc3195 and stdlog, as otherwise, 1.0.7 at least doesn't
    install anything. They have no extra dependencies and I can't see why not.
    
    Closes: https://bugs.gentoo.org/926515
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/liblogging/Manifest                |  1 +
 dev-libs/liblogging/liblogging-1.0.7.ebuild | 46 +++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-23 13:57:17 UTC
Thanks for the nudge. Let me update the stablereq too.
Comment 15 Leonid Kopylov 2024-11-24 16:41:57 UTC
dev-libs/liblogging-1.0.6-r1 (required by app-admin/rsyslog-8.2410.0-r2) still fails building with gcc-14
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-24 18:33:54 UTC
(In reply to Leonid Kopylov from comment #15)
> dev-libs/liblogging-1.0.6-r1 (required by app-admin/rsyslog-8.2410.0-r2)
> still fails building with gcc-14

Yeah, I noticed the issue last night (but admittedly forgot today). Will look when home.
Comment 17 Larry the Git Cow gentoo-dev 2024-11-24 21:07:28 UTC
The bug has been referenced in the following commit(s):

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

commit d546b2b593811ba5e449815b4e191a4a34c3ce65
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-24 21:06:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-24 21:06:43 +0000

    app-admin/rsyslog: adapt to liblogging losing USE=rfc3195
    
    Since b650b7bfce54af7376575cec303cd2898ee90f4a, it is always available.
    
    Bug: https://bugs.gentoo.org/926515
    Signed-off-by: Sam James <sam@gentoo.org>

 .../rsyslog/{rsyslog-8.2404.0.ebuild => rsyslog-8.2404.0-r2.ebuild}     | 2 +-
 .../rsyslog/{rsyslog-8.2404.0-r1.ebuild => rsyslog-8.2404.0-r3.ebuild}  | 2 +-
 .../rsyslog/{rsyslog-8.2406.0.ebuild => rsyslog-8.2406.0-r1.ebuild}     | 2 +-
 .../rsyslog/{rsyslog-8.2408.0.ebuild => rsyslog-8.2408.0-r1.ebuild}     | 2 +-
 .../rsyslog/{rsyslog-8.2410.0-r2.ebuild => rsyslog-8.2410.0-r3.ebuild}  | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)