Opened 3 years ago

Closed 2 years ago

#62615 closed defect (fixed)

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

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

Description (last modified by ryandesign (Ryan Carsten 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.

Attachments (1)

main.log (864.0 KB) - added by bushrachet (Büşra Çetin) 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by bushrachet (Büşra Çetin)

Attachment: main.log added

comment:1 Changed 3 years ago by bushrachet (Büşra Çetin)

Description: modified (diff)

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten 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.

comment:3 Changed 3 years ago by bushra-ch

So what is the expected solution to this?

I downgraded Xcode and CLT to 11.7 version, since error of implicit declaration of function was solved in other tickets by this way. But when i did it, it produced an error about xcode version: it must be 12.2 or greater.

Now I'm back on Xcode and its CLT 12.2, and my new error:

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

My new main.log is attached. What is my fault?

:info:build 5 warnings and 1 error generated.
:info:build gnumake[2]: *** [db_server_svc.lo] Error 1
:info:build gnumake[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rpm/rpm/work/rpm-4.4.9/db3'
:info:build gnumake[1]: *** [all-recursive] Error 1
:info:build gnumake[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rpm/rpm/work/rpm-4.4.9'
:info:build gnumake: *** [all] Error 2
:info:build gnumake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rpm/rpm/work/rpm-4.4.9'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_rpm/rpm/work/rpm-4.4.9" && /usr/bin/gnumake -w all 
:info:build Exit code: 2
:error:build Failed to build rpm: command execution failed
:debug:build Error code: CHILDSTATUS 17571 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
Last edited 3 years ago by bushra-ch (previous) (diff)

comment:4 Changed 3 years ago by jasef (Jason Frost)

Is there any progress on this? This error still exists with a fresh install of MacPorts on macOS 11.5.1.

comment:5 Changed 3 years ago by pduclosgogo (Philip Duclos)

Any progress on this ticket??

comment:6 Changed 2 years ago by hadrabap (Petr Hadraba)

Cc: hadrabap added

comment:7 Changed 2 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.