Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125186 - sci-electronics/gerbv-1.0.1-r1 fails (gcc4) (with fix)
Summary: sci-electronics/gerbv-1.0.1-r1 fails (gcc4) (with fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-03-06 00:24 UTC by Patrizio Bassi
Modified: 2006-03-10 11:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2006-03-06 00:24:20 UTC
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/include/libpng12   -Wall -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -c `test -f drill.c || echo './'`drill.c
drill.c: In function ‘parse_drillfile’:
drill.c:220: error: invalid lvalue in assignment
drill.c:221: error: invalid lvalue in assignment
make[2]: *** [drill.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gerbv-1.0.1-r1/work/gerbv-1.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gerbv-1.0.1-r1/work/gerbv-1.0.1'
make: *** [all] Error 2

!!! ERROR: sci-electronics/gerbv-1.0.1-r1 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


fix:

delete the (double) left cast in 220 and 221 lines.
works.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2006-03-06 10:29:15 UTC
So:

            if(state->unit == MM) {
-               (double)curr_net->start_x /= 25.4;
-               (double)curr_net->start_y /= 25.4;
+               curr_net->start_x /= 25.4;
+               curr_net->start_y /= 25.4;
                /* KLUDGE. All images, regardless of input format,

... right?
Comment 2 Patrizio Bassi 2006-03-06 11:21:12 UTC
yes like that :)
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2006-03-10 11:51:28 UTC
InCVS, thanks!