[prev in list] [next in list] [prev in thread] [next in thread] 

List:       evms-devel
Subject:    Re: [Evms-devel] evms 2.4.0 and gcc 2.95 compile problem
From:       Kevin Corry <kevcorry () us ! ibm ! com>
Date:       2004-10-26 13:43:00
Message-ID: 200410260843.00488.kevcorry () us ! ibm ! com
[Download RAW message or body]

On Monday 25 October 2004 5:06 pm, Jeremy Jackson wrote:
> In a previous post I tried gcc-3.0 as a workaround, and had a different
> problem, but this is the original issue:
>
> gcc -I../../include -I../../intl   -DENABLE_NLS -DPACKAGE=\"evms\"
> -DLOCALEDIR=\"/usr/share/locale\" -DMAJOR_VERSION=1 -DMINOR_VERSION=0
> -DPATCH_LEVEL=0 -DVERSION=\"1.0.0\" -DDATE=\"09/27/04\" -Wall -fPIC
> -fno-strict-aliasing -g -O2 -c lvm2.c -o lvm2.o
> lvm2.c: In function `lvm2_setup_evms_plugin':
> lvm2.c:42: parse error before `int'
> lvm2.c:46: `rc' undeclared (first use in this function)
> lvm2.c:46: (Each undeclared identifier is reported only once
> lvm2.c:46: for each function it appears in.)
> lvm2.c:65: warning: control reaches end of non-void function
> make[3]: *** [lvm2.o] Error 1
> make[3]: Leaving directory `/data/build/evms/evms-2.4.0/plugins/lvm2'

This one was a simple code-reordering bug, where a variable was declared in a 
function after the code had already started. Later versions of gcc don't mind 
that construct, so we never noticed the problem. It's already been fixed in 
CVS, and will be in the 2.4.1 release (sometime this week).

-- 
Kevin Corry
kevcorry@us.ibm.com
http://evms.sourceforge.net/


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Evms-devel mailing list
Evms-devel@lists.sourceforge.net
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic