Coda File System

Re: coda 6.0.2 compile failure

From: Eric Sandall <eric_at_sandall.us>
Date: Tue, 7 Oct 2003 11:27:23 -0700
Quoting Jan Harkes <jaharkes_at_cs.cmu.edu>:

> On Tue, Oct 07, 2003 at 10:00:57AM -0700, Eric Sandall wrote:
> > When compiling coda 6.0.2 I receive the following error:
> > 
> > g++ -fno-exceptions -fcheck-new -x c++ -Wall -MD -DHAVE_CONFIG_H -I.
> > -I/usr/src/coda-6.0.2/include -I/usr/src/coda-6.0.2 -march=athlon-mp -mmmx
> > -mfpmath=sse -msse -m3dnow  -c resolver_parser.c
> > y.tab.c: In function `int yyparse()':
> > y.tab.c:1331: error: parse error before `goto'
> > y.tab.c:1322: warning: label `yyerrlab1' defined but not used
> > make[3]: *** [resolver_parser.o] Error 1
> > make[3]: Leaving directory `/usr/src/coda-6.0.2/coda-src/asr'
> 
> Broken bison release (or gcc-overoptimization), you need to upgrade to
> the fixed version (1.875a?) or edit the template code in
> /usr/share/bison/yacc.c.

We don't have 1.875a as the GNU FTP server was hacked and they haven't put this
file up, but 1.875 is available.  Will update the package when it's available.

> The fix is something trivial like adding a semicolon right after the
> yyerrlab1: label so that the compiler doesn't optimize it away.
> 
> > For coda 5.3.20, I used the following patch to fix this:
> > --- BEGIN PATCH ---
> > --- coda-src/asr/resolver_parser.c.old       2003-03-10 11:36:57.000000000
> > -0800
> > +++ coda-src/asr/resolver_parser.c   2003-03-10 11:37:20.000000000 -0800
> > @@ -1324,9 +1324,11 @@
> >  
> >    /* Suppress GCC warning that yyerrlab1 is unused when no action
> >       invokes YYERROR.  */
> > +/*
> >  #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 +
> __GNUC_MINOR__)
> >    __attribute__ ((__unused__))
> >  #endif
> > +*/
> 
> That probably works as well, but resolver_parser.c is generated from
> resolver_parser.y and the bison template code (where the actual problem
> is). So this patch would have to be reapplied whenever bison rebuilds
> the .c file.

True.  I'll just include my patch in our package for now.

> > I then receive this error:
> > 
> > gcc -fno-exceptions -Wall -MD -DHAVE_CONFIG_H -I.
> -I/usr/src/coda-6.0.2/...
> > ../util/libutil.a(getsecret.o)(.text+0x10): In function `HashSecret':
> > : undefined reference to `MD5_Init'
> 
> This depends on whether you have the openssl development headers
> installed. If openssl-dev exists it should try to use their
> implementation, otherwise it should use the 'reference C implementation'
> which is built and included in lib-src/base/libbase.a.
> 
> Jan

I just used ./configure && make server-install to get this error, so configure
isn't detecting properly.  I have openssl installed (from source) and other
packages link with it just fine.

-sandalle

-- 
PGP Key Fingerprint:  FCFF 26A1 BE21 08F4 BB91  FAED 1D7B 7D74 A8EF DD61
http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/E/IT$ d-- s++:+>: a-- C++(+++) BL++++VIS>$ P+(++) L+++ E-(---) W++ N+@ o?
K? w++++>-- O M-@ V-- PS+(+++) PE(-) Y++(+) PGP++(+) t+() 5++ X(+) R+(++)
tv(--)b++(+++) DI+@ D++(+++) G>+++ e>+++ h---(++) r++ y+
------END GEEK CODE BLOCK------

Eric Sandall                     |  Source Mage GNU/Linux Developer
eric@sandall.us                  |  http://www.sourcemage.org/
http://eric.sandall.us/          |  SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/  #196285  |  http://www.shock.wsu.edu/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Received on 2003-10-07 14:28:56