hldig icon indicating copy to clipboard operation
hldig copied to clipboard

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

Open solbu opened this issue 7 years ago • 0 comments

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.

solbu avatar Oct 28 '18 22:10 solbu