solbu / hldig

hl://Dig is a fork of ht://Dig, a web indexing and searching system for a small domain or intranet
https://solbu.github.io/hldig/
Other
18 stars 21 forks source link

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

Open solbu opened 6 years ago

solbu commented 6 years ago

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.