[ZBX-8223] dummy module does not compile on 64-bit Linux Created: 2014 May 19  Updated: 2017 May 30  Resolved: 2014 May 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.2.3
Fix Version/s: 2.2.4rc1, 2.3.0

Type: Incident report Priority: Minor
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: compilation, loadablemodule
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

$ cd src/modules/dummy/
$ make
gcc -shared -o dummy.so dummy.c -I../../../include
/usr/bin/ld: /tmp/ccTD3e24.o: relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/tmp/ccTD3e24.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [dummy] Error 1



 Comments   
Comment by Aleksandrs Saveljevs [ 2014 May 19 ]

Added -fPIC in development branch svn://svn.zabbix.com/branches/dev/ZBX-8223 .

Comment by Aleksandrs Saveljevs [ 2014 May 19 ]

Fixed in pre-2.2.4 r45625 and pre-2.3.0 (trunk) r45626.

Generated at Fri Mar 29 11:39:49 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.