[MacPorts] #63620: rpm @4.4.9: error: implicit declaration of function '__dbsrv_timeout' is invalid in C99 (was: Unable to use macports on bigsur)

MacPorts noreply at macports.org
Wed Oct 13 18:47:40 UTC 2021


#63620: rpm @4.4.9: error: implicit declaration of function '__dbsrv_timeout' is
invalid in C99
--------------------------+-----------------------------
  Reporter:  randhirbabu  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  catalina bigsur
      Port:  rpm          |
--------------------------+-----------------------------
Changes (by ryandesign):

 * keywords:   => catalina bigsur
 * priority:  High => Normal
 * port:   => rpm


Old description:

> I am trying to install a rpm file on my mac using big sure
> I went through this link and xcode is installed-
> https://trac.macports.org/wiki/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

New description:

 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
 }}}

--

Comment:

 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/63620#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list