Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Cannot add rules with 11/11 snap

    2.0-RC Snapshot Feedback and Problems - RETIRED
    3
    9
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jlepthien
      last edited by

      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

      | apple fanboy | music lover | network and security specialist | in love with cisco systems |

      1 Reply Last reply Reply Quote 0
      • E
        Efonnes
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • J
          jlepthien
          last edited by

          Okay. So I'll have to wait for the next build?

          | apple fanboy | music lover | network and security specialist | in love with cisco systems |

          1 Reply Last reply Reply Quote 0
          • E
            Efonnes
            last edited by

            Either that or manually fix it.

            1 Reply Last reply Reply Quote 0
            • V
              videoman
              last edited by

              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 "

              1 Reply Last reply Reply Quote 0
              • E
                Efonnes
                last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • J
                  jlepthien
                  last edited by

                  Sorry for the confusion guys. My built also was 11/11. I do not know why I posted it as 11/9….

                  | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                  1 Reply Last reply Reply Quote 0
                  • E
                    Efonnes
                    last edited by

                    ok, the next snapshot is up and this should be fixed on there.

                    1 Reply Last reply Reply Quote 0
                    • J
                      jlepthien
                      last edited by

                      Yep. Already installed it @home.

                      Thanks.

                      | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.