Problem compiling rrdtool 1.2.11

Problem compiling rrdtool 1.2.11

Post by mark.greenb.. » Sat, 03 Dec 2005 06:02:50



Hi,

I'm trying to build rrdtool under Solaris 10 x86. When I run configure
I get a failure, and, looking in the log file I see:

configure:20342: gcc -o conftest -g -O2  -Llb/lib conftest.c  >&5
conftest.c:66: warning: conflicting types for built-in function 'acos'
Undefined                       first referenced
 symbol                             in file
acos                                /var/tmp//ccAbKrlg.o
ld: fatal: Symbol referencing errors. No output written to conftest

Does anyone have any ideas as to what I can try to prevent this
problem?

Thanks,
Mark

 
 
 

Problem compiling rrdtool 1.2.11

Post by Dave » Sat, 03 Dec 2005 12:33:09



> Hi,

> I'm trying to build rrdtool under Solaris 10 x86. When I run configure
> I get a failure, and, looking in the log file I see:

> configure:20342: gcc -o conftest -g -O2  -Llb/lib conftest.c  >&5
> conftest.c:66: warning: conflicting types for built-in function 'acos'
> Undefined                       first referenced
>  symbol                             in file
> acos                                /var/tmp//ccAbKrlg.o
> ld: fatal: Symbol referencing errors. No output written to conftest

> Does anyone have any ideas as to what I can try to prevent this
> problem?

> Thanks,
> Mark

That looks like the arc cosine function (acos) is not being found. You
need to link with the flag -lm to link in the maths library.

cc numerical-prog.c -lm -o numerical-prog

You also want to have

#include <math.h>

but I think it will usually give an error during comile if that is not
present.
--
Dave K

http://www.southminster-branch-line.org.uk/

Please note my email address changes periodically to avoid spam.

for a couple of months only. Later set it manually. The month is
always written in 3 letters (e.g. Jan, not January etc)

 
 
 

Problem compiling rrdtool 1.2.11

Post by mark.greenb.. » Thu, 08 Dec 2005 08:20:13


Hi Dave,

Actually, I think that the fact that it _is_ being found is causing the
problem. The key phrase that caught my eye is "warning: conflicting
types for built-in function 'acos'" which must mean that the compiler
found more than one choice for this declaration.

But, perhaps I'm off base.

Mark

 
 
 

1. Compiling problems with 1.2.11

   Has anyone else had problems compiling the 1.2.11 kernel
with Sound Blaster support? I've gotten errors the 3 times
I've tried to compile it with 2 different archives. I had no
problems compiling the sound support in under 1.2.9 so I'm assuming
something that was added in the new release is the cause of the
problem.. Any ideas?

Mark

2. (none)

3. Problems compiling new kernel 1.2.11

4. Still Framebuffer & Voodoo2 Glide problems on 2.2.1

5. pppd 2.2.0e on 1.2.11 compile problems

6. How do I display size of RAW partitions

7. quota and accounting patches?

8. Can't compile qpopper on Linux 1.2.11

9. Compiling kernel 1.2.11 with gcc 2.7.0 ELF

10. errors with xterm.c when compile emacs 19.29 under Linux 1.2.11

11. Can't compile ppp-2.2.0c in 1.2.11 & 1.2.13

12. Help! Compile libsvga.1.2.11