Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
solbu opened this issue Oct 28, 2018 · 0 comments

Comments

@solbu
Copy link
Owner

solbu commented Oct 28, 2018

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.

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

No branches or pull requests

1 participant