<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>23605</bug_id>
          
          <creation_ts>2003-06-27 10:32 0000</creation_ts>
          <short_desc>plotutils-2.4.1 don&apos;t cxompile with  gcc-3.3</short_desc>
          <delta_ts>2003-07-15 08:31:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>bernd@wiloyee.shnet.org</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>bernd@wiloyee.shnet.org</who>
            <bug_when>2003-06-27 10:32:11 0000</bug_when>
            <thetext>Hello ... 

gcc 3.3 aborts with
 
i_rle.cc: In function `void _write_block(rle_out*)&apos;:
i_rle.cc:81: error: non-lvalue in unary `&amp;&apos;
make[2]: *** [i_rle.lo] Error 1


the gcc 3.3 seemed to have a prolem with the gentto patch of the 
 plotutils-2.4.1/libplot/i_rle.c file 

----------------  ORIGNAL PATCH  -----------

--- plotutils-2.4.1/libplot/i_rle.c~    Sun Jun 27 18:58:10 1999
+++ plotutils-2.4.1/libplot/i_rle.c     Sun Jun 16 03:22:30 2002
@@ -78,7 +78,7 @@
   else if (rle-&gt;outstream)
     {
       rle-&gt;outstream-&gt;put ((unsigned char)(rle-&gt;oblen));
-      rle-&gt;outstream-&gt;write (&amp;(rle-&gt;oblock[0]), rle-&gt;oblen);
+      rle-&gt;outstream-&gt;write (&amp;(const char)(rle-&gt;oblock[0]), rle-&gt;oblen);
     }
 #endif  

---------------------  MODIFIED PATCH ------------------------

--- plotutils-2.4.1/libplot/i_rle.c~    Sun Jun 27 18:58:10 1999
+++ plotutils-2.4.1/libplot/i_rle.c     Sun Jun 16 03:22:30 2002
@@ -78,7 +78,7 @@
   else if (rle-&gt;outstream)
     {
       rle-&gt;outstream-&gt;put ((unsigned char)(rle-&gt;oblen));
-      rle-&gt;outstream-&gt;write (&amp;(rle-&gt;oblock[0]), rle-&gt;oblen);
+      rle-&gt;outstream-&gt;write ((const char*)(&amp;rle-&gt;oblock)), rle-&gt;oblen);
     }
 #endif  

------------------------------------------------------------------------ 

Look on the rle_out definantion 
{
....
unsigned char oblock[256]; 
...
}


&amp;rle-&gt;oblock[0] are pointer of char              --  gcc typeid Pc 
&amp;rle-&gt;oblock    are pointer of an arry of chars  --  gcc  typeid PA256_c

both can be converted to  conts char * 
 
I don&apos;t know why &amp;(const char)(rle-&gt;oblock[0]) don&apos;t compile it works on my
small testprogram 

bye
 bernd 

---- ebuild info 
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r2)
=================================================================
System uname: 2.4.20-ck4 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS=&quot;rsync://ftp.belnet.be/gentoo/ 
USE=&quot;x86 oss 3dnow apm avi crypt cups encode gif jpeg kde gnome libg++ mikmod
mmx mpeg ncurses nls pdfl
ib png quicktime spell truetype xml2 xmms xv zlib directfb gtkhtml alsa gdbm
berkdb slang readline arts
 tetex aalib bonobo svga ggi tcltk java guile mysql X sdl gpm tcpd pam libwww
ssl perl python esd imlib
 oggvorbis gtk qt motif opengl mozilla ldap cdr&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-mcpu=athlon-tbird -march=athlon-tbird -O3 -pipe&quot;
CXXFLAGS=&quot;-mcpu=athlon-tbird -march=athlon-tbird -O3 -pipe&quot;
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox ccache notitles&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2003-07-15 08:31:59 0000</bug_when>
            <thetext>thx, fixed :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>