Bug 1793403

Summary: opensips-3.0.1-1.fc32 FTBFS: /usr/bin/ld: con.o:/.../opensips-3.0.1/modules/db_unixodbc/../../ut.h:1088: multiple definition of `tcp_timeout_send'; db_unixodbc.o:/.../opensips-3.0.1/modules/db_unixodbc/../../db/../ut.h:1088: first defined
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: opensipsAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ivaxer, lemenkov
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/opensips?collection=f32
Whiteboard:
Fixed In Version: opensips-3.0.2-2.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-07 15:22:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1750908, 1792464    

Description Petr Pisar 2020-01-21 09:41:26 UTC
opensips-3.0.1-1.fc32 fails to build in F32:

Linking db_unixodbc.so
gcc -shared -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld  -Wl,-E   db_unixodbc.o con.o row.o res.o dbase.o val.o  -lodbc  -o db_unixodbc.so
/usr/bin/ld: con.o:/builddir/build/BUILD/opensips-3.0.1/modules/db_unixodbc/../../ut.h:1088: multiple definition of `tcp_timeout_send'; db_unixodbc.o:/builddir/build/BUILD/opensips-3.0.1/modules/db_unixodbc/../../db/../ut.h:1088: first defined here
[...]
collect2: error: ld returned 1 exit status
make[1]: *** [../../Makefile.rules:39: db_unixodbc.so] Error 1

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/7740898>. This is probably triggered by upgrading gcc from 9.2.1-1.fc32.3 to 10.0.1-0.3.fc32.