NDOUtils on x86_64 Compile Error

Andreas Ericsson ae at op5.se
Thu Nov 9 16:44:00 CET 2006


Giles Coochey wrote:
>> Try:
>>
>> ./configure --build=i386 --host=i386 --libdir=/usr/lib32 
>> CFLAGS="-fPIC"
>>
>> Then "make" and you go.
>>
> 
> Sorry - replying to my own post, I reached those by experimentation, and
> now find that:
> 
> ./configure CFLAGS="-fPIC"
> 
> Works just the same.
> 

I would imagine they should. The other flags will almost certainly be 
autodetected as required.

I would expect nearly all module code to require either -fpic or -fPIC 
to be defined. The option flag is an acronym for Position Independent 
Code, meaning the linker shouldn't try to make assumptions on where 
function pointers inside the resulting module should reside based on 
their relative position to anything else in the object-code. -fPIC 
implies -mlarge-data and should be used to generate pic code where any 
of its segments are above a certain threshold in size (generally 64KiB 
on x86). -fpic generally makes for smaller and faster code, but can't be 
used when any of the structures pulled from the "mother-ship" (the 
program loading the module) is larger than the architecture-specific 
threshold for "one code-page". -fpic implies -msmall-data.

What happens if you use "CFLAGS=-fpic" instead? If it works, it should 
create binaries that run slightly faster and with a smaller memory 
footprint, although with the constraints mentioned above.

On a side-note, being able to write emails on a train isn't necessarily 
a good thing. The amount of junk output one produces when bored is 
nothing short of astonishing.


-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list