Skip to content

conf_parser.cxx:1372:37: error: assignment of read-only location (the code error is actually in conf_parser.yxx) #142

Description

@solbu

We have a new compiler error, in the same conf_parser.cxx file in the hlcommon/ dir.
I have figured out where the last error is that generated «conversion from string constant to ‘char» errors. It is in conf_parser.yxx.

conf_parser.yxx have one last error that seems to happen each time we bump version. For some reason that triggers a rebuild of the cxx file.

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include -DDEFAULT_CONFIG_FILE="/opt/www/etc/hldig/hldig.conf" -I../include -I../hllib -I../hlnet -I../hlcommon -I../hlword -I../db -I../db -DBIN_DIR="/opt/www/bin" -DCOMMON_DIR="/opt/www/share/hldig/templates" -DCONFIG_DIR="/opt/www/etc/hldig" -DDATABASE_DIR="/opt/www/var/hldig" -DIMAGE_URL_PREFIX="/www" -DLOCALEDIR="/opt/www/share/locale" -g -O2 -Wall -fno-rtti -fno-exceptions -c conf_parser.cxx -fPIC -DPIC -o .libs/conf_parser.o
conf_parser.cxx: In function ‘int yyparse(HtConfiguration*)’:
conf_parser.cxx:1372:37: error: assignment of read-only location ‘* yyval.YYSTYPE::ConfLine->ConfigDefaults::value’
*(yyval.ConfLine)->value='\0';

Looking in conf_parser.cxx line 1372 there is a comment 5 lines above that is found again in conf_parser.yxx on line 115. The code that follow have some problems, that I cant figure out how to fix.

When we fix the last error in conf_parser.yxx we can possibly start to remove the cxx files from revision control and have the file auto-generated, as it should do anyway.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions