AMBER Archive (2009)Subject: Re: [AMBER] problems compiling ambertool
From: Per Jr. Greisen (pgreisen_at_gmail.com)
Date: Mon Mar 16 2009 - 08:29:37 CDT
Hi,
I have attached the lex.dg_options.c - my file on the sun is quite different
from my linux version...
Thanks in advance
Best
Per
On Mon, Mar 16, 2009 at 1:13 PM, David A. Case <case_at_biomaps.rutgers.edu>wrote:
> On Mon, Mar 16, 2009, Atro Tossavainen wrote:
>
> > >> cc -c -O -DSUN -DSYSV -DBINTRAJ -Dlex embed.c
> > >> "lex.dg_options.c", line 75: non-constant initializer: op "NAME"
> > >> cc: acomp failed for embed.c
>
> Could you post the lex.dg_options.c file? This is created by lex under
> SunOS, and is apparently quite different than that created by flex under
> Linux.
>
> >
> > I can only confirm this (Solaris 10, Sun Studio 11). Line 75 in either
> > file does not make sense to me in this context. Is there anything in
> > particular I should be looking for?
> >
> > But see also this:
> >
> > Solaris10machine $ gcc -c -O -DSUN -DSYSV -DBINTRAJ -Dlex embed.c
> > In file included from embed.c:130:
> > lex.dg_options.c:75: error: initializer element is not constant
> > lex.dg_options.c:75: error: (near initialization for `dgoout')
>
> My best guess is that there is some line like this in you
> lex.dg_options.c:
>
> if ( ! dgoout )
> dgoout = nabout;
>
> Change "nabout" above to "stdout" and see if that helps.
>
> ...dac
>
>
> _______________________________________________
> AMBER mailing list
> AMBER_at_ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
_______________________________________________
AMBER mailing list
AMBER_at_ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
|