[rrd-users] Re: Still can't compile RRD

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sat Oct 20 13:33:29 MEST 2001

Let me start by saying I don't know for sure what
I'm going to write below.  It may or may not be true.

EddyConway at att.net wrote:

> I have a Solaris 2.6 server with Perl 5.6.1
> and gcc 3.0.1, and I can't compile RRD. This has
> failed twice now, and I can't deploy Cricket
> because of it.

It seems to me you have, apart from gcc, another compiler

Programs included with this other compiler are used
where the gcc variants need to be used.

> The first time it failed because I did not include
> /usr/ccs/bin in my path. 

Perhaps this is not needed nor wanted.  If you indeed do
need it, include this directory *after* the one where gcc
is to be found.

> Now 'sh configure' appears to succeed, and 
> 'sh configure --enable-shared' seems to do even better,
> but the make fails when it gets to the zlib piece.
> After several runs, make output looks like this:
> /usr/ccs/bin/as: "/var/tmp/ccifYna6.s", line 1655: error:
> unknown opcode ".previous"
> /usr/ccs/bin/as: "/var/tmp/ccifYna6.s", line 1655: error:
> statement syntax

> The part that is suspicious is the call to
> /usr/ccs/bin/as on the file /var/tmp/cc ...
> There is no /var/tmp/cc.. file when I go look for it.
> Has the compiler already done cleanup? Why is an
> assembler being called at all?

When I do "man gcc" I read:
"    Suffixes of source file names indicate  the  language  and
     kind of processing to be done:

     .c    C source; preprocess, compile, assemble
Assembly is a stage of the build process.  It probably fails because an
older assembler is being called (the one in ccs).  The file is indeed
cleaned up by the compiler.

Search your file system for programs called "as".  You probably
find one in both the ccs directory and in the directory
where gcc is found.  If so, the path inclusion order is wrong on
your system, either remove ccs entirely or place it
at the end of your path (whatever works for you).
If there is no program called "as" where gcc is,  but there is a
program names "gas", just create a softlink in that directory:
"ln -s gas as"

 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
| Technical questions sent directly to me will be nuked. Use the list. | 
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list