Skip to content

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

@barracuda156

Description

@barracuda156
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions