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

The build needs -std=c99: error: ‘for’ loop initial declaration used outside C99 mode #211

Open
barracuda156 opened this issue Dec 13, 2024 · 0 comments

Comments

@barracuda156
Copy link

make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_pacparser/pacparser/work/pacparser-1.4.5/src/spidermonkey/js/src'
find js/src -name "jsautocfg.h" -exec cp {} js/src \;
cp: js/src/jsautocfg.h and js/src/jsautocfg.h are identical (not copied).
touch js-buildstamp
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_pacparser/pacparser/work/pacparser-1.4.5/src/spidermonkey'
touch jsapi_buildstamp
cc -g -DXP_UNIX -Wall -DVERSION= -Ispidermonkey/js/src   -c pacparser.c -o pacparser.o
pacparser.c: In function ‘resolve_host’:
pacparser.c:162: error: ‘for’ loop initial declaration used outside C99 mode
make: *** [pacparser.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_pacparser/pacparser/work/pacparser-1.4.5/src'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_pacparser/pacparser/work/pacparser-1.4.5/src" && /usr/bin/make -j6 -w all 
Exit code: 2
Error: Failed to build pacparser: command execution failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant