Opened 2 weeks ago

Last modified 16 hours ago

#62615 new defect

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

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

Changed 2 weeks ago by bushrachet (Büşra Çetin)

Attachment: main.log added

comment:1 Changed 2 weeks ago by bushrachet (Büşra Çetin)

Description: modified (diff)

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

comment:3 Changed 13 days 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 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 16 hours ago by bushra-ch (previous) (diff)
Note: See TracTickets for help on using tickets.