Re: [AMBER] problems compiling ambertool

From: David A. Case <>
Date: Mon, 16 Mar 2009 12:13:23 +0000

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

> 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

     if ( ! dgoout )
            dgoout = nabout;

Change "nabout" above to "stdout" and see if that helps.


AMBER mailing list
Received on Wed Mar 18 2009 - 01:08:20 PDT
Custom Search