Opened 3 years ago

Closed 3 years ago

#63620 closed defect (fixed)

rpm @4.4.9: error: implicit declaration of function '__dbsrv_timeout' is invalid in C99

Reported by: randhirbabu Owned by: 21stcaveman (Hamid Maadani)
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

Attachments (2)

main.log (1.8 MB) - added by randhirbabu 3 years ago.
main rpm54.log (903.5 KB) - added by randhirbabu 3 years ago.

Change History (7)

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.

comment:3 Changed 3 years ago by randhirbabu

Tried rpm54, resulted in same error, please help asap!

sudo port install rpm54     

--->  Computing dependencies for rpm54
--->  Fetching archive for rpm54
--->  Attempting to fetch rpm54-5.4.15_8+perl5_28.darwin_20.x86_64.tbz2 from https://packages.macports.org/rpm54
--->  Attempting to fetch rpm54-5.4.15_8+perl5_28.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/rpm54
--->  Attempting to fetch rpm54-5.4.15_8+perl5_28.darwin_20.x86_64.tbz2 from https://ema.uk.packages.macports.org/rpm54
--->  Building rpm54
Error: Failed to build rpm54: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rpm54/rpm54/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port rpm54 failed
Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 3 years ago by randhirbabu

Attachment: main rpm54.log added

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

The error messages shown in the rpm54 log are completely different, so they will need a different fix. You should file a separate ticket for that issue.

comment:5 Changed 3 years ago by 21stcaveman (Hamid Maadani)

Owner: set to 21stcaveman
Resolution: fixed
Status: newclosed

In 6824c366003b636f587fd36d16dc63617649717b/macports-ports (master):

rpm: fix implicit function declarations

Closes: #62615
Closes: #63620

Note: See TracTickets for help on using tickets.