Bug ID 1221715
Summary GCC 14: liblogging package fails
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Development
Assignee screening-team-bugs@suse.de
Reporter michal.jires@suse.com
QA Contact qa-bugs@suse.de
CC thomas.blume@suse.com
Blocks 1220571
Target Milestone ---
Found By ---
Blocker ---

Building liblogging with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/liblogging/standard/x86_64

Due to:

beepframe.c:170:1: error: return type defaults to ‘int’ [-Wimplicit-int]
  170 | sbFramActualRecvFramCommonBody(sbFramObj* pThis,sbChanObj *pChan)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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)
      |                            ^~~~~~~~~~~~~~~~~~~~




Builds with:

Index: liblogging-1.0.6/rfc3195/src/beepframe.c
===================================================================
--- liblogging-1.0.6.orig/rfc3195/src/beepframe.c
+++ liblogging-1.0.6/rfc3195/src/beepframe.c
@@ -167,6 +167,7 @@ srRetVal sbFramActualRecvFramCommonHdr(s
  *                       The channel object is updated, e.g. with a
  *                       new seqno.
  */
+int
 sbFramActualRecvFramCommonBody(sbFramObj* pThis,sbChanObj *pChan)
 {
        unsigned iToRcv;
Index: liblogging-1.0.6/rfc3195/src/sockets.h
===================================================================
--- liblogging-1.0.6.orig/rfc3195/src/sockets.h
+++ liblogging-1.0.6/rfc3195/src/sockets.h
@@ -340,4 +340,8 @@ srRetVal sbSockRecvFrom(sbSockObj *pThis
 #      define SOCKET_ERROR -1
 #endif

+#if FEATURE_UNIX_DOMAIN_SOCKETS == 1
+srRetVal sbSock_InitUXDOMSOCK(sbSockObj **ppThis, char *pszSockName, int
iSockType);
+#endif
+
 #endif

See the meta bug#1220571 for more info.


You are receiving this mail because: