NDOUtils on x86_64 Compile Error

Cx Cx iamcxcx at gmail.com
Thu Nov 9 15:01:07 CET 2006


*Emails a bottle of champaign to Giles*

Thx man,

I checked your configure command and used the following and it worked.

./configure --enable-mysql --with-mysql-lib=/usr/lib64/mysql --disable-pgsql
CFLAGS="-fPIC"

I am compiling for MySQL support only with this command.

Thx again!!!!

Craig


On 11/9/06, Giles Coochey <GilesC at carmenmedia.com> wrote:
>
>
>
>         Hi List,
>
>         Sorry if this is a report, I have searched the lists and cant
> fond an answer to the following:
>
>         I am trying to compile the NDOutils 1.3.1 on and x86_64 platform
> and get the following error:
>
>         make[2]: Entering directory `/tmp/nagios/ndoutils- 1.3.1/src'
>         gcc -fPIC -g -O2 -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -o
> ndomod-2x.o ndomod.c io.o utils.o -shared   -lnsl
>         /usr/bin/ld: io.o: relocation R_X86_64_32 against `a local
> symbol' can not be used when making a shared object; recompile with
> -fPIC
>         io.o: could not read symbols: Bad value
>         collect2: ld returned 1 exit status
>         make[2]: *** [ndomod-2x.o] Error 1
>         make[2]: Leaving directory `/tmp/nagios/ndoutils-1.3.1/src'
>         make[1]: *** [ndomod] Error 2
>         make[1]: Leaving directory `/tmp/nagios/ndoutils- 1.3.1/src'
>
>
>         Has any1 got any ideas what might be causing this error and how
> to correct it?
>
>         Thanks
>
>         Craig
>
>
> I have not compiled or used ndoutils in the past, but I do have a x64
> platform and I tried to compile it just now.
>
> I get the exact same error on a Gentoo x64 system.
>
> Try:
>
> ./configure --build=i386 --host=i386 --libdir=/usr/lib32 CFLAGS="-fPIC"
>
> Then "make" and you go.
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061109/1f9930ed/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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