Cannot add rules with 11/11 snap
-
Hi there,
when I try adding a rule on my nanoBSD snap I get the following error:
Fatal error: Cannot redeclare filtercmp() (previously declared in /usr/local/www/guiconfig.inc:467) in /usr/local/www/guiconfig.inc on line 467
Any info on that?
Thanks
-
The builder must have picked that up during the time between two of my commits. It was fixed already before that image was even done.
The problem on that line is the function declared inside of a function (wasn't me who did that :) ). Apparently that makes it try to declare the function each time you call the one that contains it. This wasn't originally an issue because it wasn't ever being called more than once. I solved it by moving the inner function outside of the other function.
-
Okay. So I'll have to wait for the next build?
-
Either that or manually fix it.
-
Using pfSense-2.0-BETA4-1g-20101111-0255 getting the same error, will this be fixed in the next nightly build?
"Fatal error: Cannot redeclare filtercmp() (previously declared in /usr/local/www/guiconfig.inc:467) in /usr/local/www/guiconfig.inc on line 467 "
-
It was already fixed long before that build was finished, but it only picks up the code from the source code server at the beginning of the build process. Yes, it will be fixed in the next build.
-
Sorry for the confusion guys. My built also was 11/11. I do not know why I posted it as 11/9….
-
ok, the next snapshot is up and this should be fixed on there.
-
Yep. Already installed it @home.
Thanks.