Opened 3 years ago

Last modified 2 years ago

#63620 closed defect

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

Reported by: randhirbabu Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: catalina bigsur Cc:
Port: rpm

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I am trying to install a rpm file on my mac using big sur
I went through this link and xcode is installed- BigSurProblems

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://packages.macports.org/rpm
--->  Attempting to fetch rpm-4.4.9_22.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/rpm
--->  Attempting to fetch rpm-4.4.9_22.darwin_20.x86_64.tbz2 from https://ema.uk.packages.macports.org/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 if you believe there is a bug.
Error: Processing of port rpm failed

Change History (3)

Changed 3 years ago by randhirbabu

Attachment: main.log added

comment:1 Changed 3 years ago by randhirbabu

Priority: NormalHigh

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: catalina bigsur added
Port: rpm added
Priority: HighNormal
Summary: Unable to use macports on bigsurrpm @4.4.9: error: implicit declaration of function '__dbsrv_timeout' is invalid in C99

The error shown in the log is:

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

This is a typical problem seen with many ports when using Xcode 12 or later and needs the usual fixes.

There is a newer version of the rpm software in the rpm54 port; maybe that will work better for you.

Note: See TracTickets for help on using tickets.