[Nagios-devel] patch for ndoutils, missing -fPIC for io.c/utils.c

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] patch for ndoutils, missing -fPIC for io.c/utils.c

Post by Guest »

This is a multi-part message in MIME format.

------_=_NextPart_001_01C72499.7F843DA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Ndoutils 1.3.1 does not want to build properly on Linux/x86_64, at least =
not on my Sun x4200 AMD64 based system. It looks like io.c and utils.c =
are not being compiled with -fPIC despite being linked into the =
ndomod-?x.o module. Looks like the linkage uses -fPIC, but not the =
compilation of those two source files.

I've attached a patch that basically just adds $(MOD_CFLAGS) for those =
two files. This solves the problem for me since MOD_CFLAGS contains =
-fPIC, at least for linux*. Some tweaks to configure.in may be needed to =
fix other platforms, if this is a problem for other 64-bit platforms.

Ryan

--
Ryan Ordway=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Unix Systems =
Administrator
OSU Libraries=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 E-mail: =
[email protected]
121 The Valley Library=A0=A0=A0=20
Corvallis, OR 97331=A0=A0=A0=A0=A0=A0 Office: VLIB #4657

------_=_NextPart_001_01C72499.7F843DA0
Content-Type: application/octet-stream;
name="ndoutils-Makefile-fPIC.patch"
Content-Transfer-Encoding: base64
Content-Description: ndoutils-Makefile-fPIC.patch
Content-Disposition: attachment;
filename="ndoutils-Makefile-fPIC.patch"

LS0tIG5kb3V0aWxzLTEuMy4xL3NyYy9NYWtlZmlsZS5pbi5vcmlnCisrKyBuZG91dGlscy0xLjMu
MS9zcmMvTWFrZWZpbGUuaW4KQEAgLTY1LDEwICs2NSwxMCBAQAogCSQoQ0MpICQoQ0ZMQUdTKSAt
byAkQCBzb2NrZGVidWcuYyAkKENPTU1PTl9PQkpTKSAkKExERkxBR1MpICQoTElCUykgJChNQVRI
TElCUykgJChTT0NLRVRMSUJTKSAkKE9USEVSTElCUykKIAogaW8ubzogaW8uYyAkKFNSQ19JTkNM
VURFKS9pby5oCi0JJChDQykgJChDRkxBR1MpIC1jIC1vICRAIGlvLmMKKwkkKENDKSAkKENGTEFH
UykgJChNT0RfQ0ZMQUdTKSAgLWMgLW8gJEAgaW8uYwogCiB1dGlscy5vOiB1dGlscy5jICQoU1JD
X0lOQ0xVREUpL3V0aWxzLmgKLQkkKENDKSAkKENGTEFHUykgLWMgLW8gJEAgdXRpbHMuYworCSQo
Q0MpICQoQ0ZMQUdTKSAkKE1PRF9DRkxBR1MpIC1jIC1vICRAIHV0aWxzLmMKIAogZGIubzogZGIu
YyAkKFNSQ19JTkNMVURFKS9kYi5oCiAJJChDQykgJChDRkxBR1MpIC1jIC1vICRAIGRiLmMK

------_=_NextPart_001_01C72499.7F843DA0--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked