Opened 20 months ago

Last modified 11 months ago

#62615 closed defect

rpm: error: implicit declaration of function '__dbsrv_timeout' is invalid in C99 — at Version 2

Reported by: bushrachet (Büşra Çetin) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: catalina bigsur Cc:
Port: rpm, rpm54

Description (last modified by ryandesign (Ryan Schmidt))

Before installing the rpm, i installed manually Command Line Tool for XCode 12.2 and neon as a dependency of rpm. When i do port install rpm, it is not able to built.

sudo port install rpm
--->  Computing dependencies for rpm
--->  Fetching archive for rpm
--->  Attempting to fetch rpm-4.4.9_22.darwin_20.x86_64.tbz2 from https://cph.dk.packages.macports.org/rpm
--->  Attempting to fetch rpm-4.4.9_22.darwin_20.x86_64.tbz2 from https://mse.uk.packages.macports.org/rpm
--->  Attempting to fetch rpm-4.4.9_22.darwin_20.x86_64.tbz2 from https://packages.macports.org/rpm
--->  Configuring rpm
--->  Building rpm
Error: Failed to build rpm: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rpm/rpm/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port rpm failed

I tried also rpm54, but it's same.

Change History (3)

Changed 20 months ago by bushrachet (Büşra Çetin)

Attachment: main.log added

comment:1 Changed 20 months ago by bushrachet (Büşra Çetin)

Description: modified (diff)

comment:2 Changed 20 months ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Keywords: catalina bigsur added; rpm rpm54 BigSur removed
Port: rpm54 added
Summary: failed to build rpmrpm: error: implicit declaration of function '__dbsrv_timeout' is invalid in C99

Interesting. The first error shown in the log is:

:info:configure cat: stdout: Broken pipe
:info:configure cat: stdout: Broken pipe
:info:configure cat: stdout: Broken pipe
:info:configure cat: stdout: Broken pipe
:info:configure ./configure[38578]: eval: line 1: 8393: Abort
:info:configure configure: error: ./configure failed for zlib

I don't know what's going on there. But the log also contains a second build attempt which failed in a different way:

:info:build db_server_svc.c:591:1: error: implicit declaration of function '__dbsrv_timeout' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build __dbsrv_timeout(0);}
:info:build ^

This is a more expected type of problem that we are more familiar with fixing.

Note: See TracTickets for help on using tickets.