Bug 2008777 - opensips-3.1.5-1.fc36 FTBFS: snmpstats.so: relocation R_X86_64_PC32 against undefined symbol `ctime_buf' can not be used when making a shared object; recompile with -fPIC
Summary: opensips-3.1.5-1.fc36 FTBFS: snmpstats.so: relocation R_X86_64_PC32 against u...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: opensips
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F36FTBFS
TreeView+ depends on / blocked
 
Reported: 2021-09-29 07:20 UTC by Petr Pisar
Modified: 2022-01-31 19:58 UTC (History)
2 users (show)

Fixed In Version: opensips-3.1.7-2.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-31 19:58:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2021-09-29 07:20:28 UTC
opensips-3.1.5-1.fc36 fails to build in Fedora 36 on x86_64:

Linking snmpstats.so
gcc -shared -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobi
n-cc1  -Wl,-O2 -Wl,-E   alarm_checks.o hashTable.o interprocess_buffer.o openserMIBNotifications.o openserObjects.o openserSIPCommonObjects
.o openserSIPContactTable.o openserSIPMethodSupportedTable.o openserSIPPortTable.o openserSIPRegUserLookupTable.o openserSIPRegUserTable.o 
openserSIPServerObjects.o openserSIPStatusCodesTable.o snmpstats.o sub_agent.o utilities.o  -L/usr/lib64 -lnetsnmpmibs -lnetsnmpagent -lnet
snmp -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -l
m -lsensors -lm -lrpm -lrpmio -Wl,--enable-new-dtags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld 
-lm -lssl -lssl -lcrypto  -o snmpstats.so
/usr/bin/ld: /tmp/ccaXqEIx.ltrans0.ltrans.o: warning: relocation against `event_shm_threshold' in read-only section `.text'
/usr/bin/ld: /tmp/ccaXqEIx.ltrans0.ltrans.o: relocation R_X86_64_PC32 against undefined symbol `ctime_buf' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[1]: *** [../../Makefile.rules:39: snmpstats.so] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/opensips-3.1.5/modules/snmpstats'

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/10790412>. An upgrade of glibc-devel from 2.33.9000-52.fc35 to 2.34-1.fc35 looks suspicious.

Comment 1 Peter Lemenkov 2022-01-31 19:58:50 UTC
Fixed in opensips-3.1.7-2.fc36


Note You need to log in before you can comment on or make changes to this bug.