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

    Can't start varnish, missing cc dependency or something

    Scheduled Pinned Locked Moved pfSense Packages
    16 Posts 6 Posters 7.2k Views
    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.
    • Z
      zoltanf
      last edited by

      I tried to manually install package from http://files.pfsense.org/packages/amd64/8/All/gcc-4.2.5.20090325_5-amd64.pbi with pbi_add, but it dod not fix the missing cc problem :(

      Is there maybe another version of this package that might work?

      I tested another installation on pfSense on VM that is a 32bit and seems that it is suffering from the same problem. The vanish gives the missing cc error, and the cc symlink is not created on the system. Is it possible that I only have this error? Nobody uses vanish with latest relase of pfSense on x86 or x64?

      Thanks,
      Z.

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        I'll change compile options and ask another package compilation.

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • Z
          zoltanf
          last edited by

          Thank you marcelloc, please let me know when it is ready so I can test again.

          Best Regards,
          Z.

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

            I'm also getting this bug.

            Also can you add..

            • a way to edit 'vcl_hash'
            • a 'null' option to 'Forward client IP' (I want to set this through HAProxy which sits in front of Varnish)
            • a way to add acl's

            Thanks! If I have some time this week I'll see if I can hack these changes in myself.

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              Compile args were changed on package info. Let's wait next package compile run to see if it works.

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • R
                rajbps
                last edited by

                Hiya, I am having the same issue. Does anyone know when the next package compile will run pls?

                Cheers,

                Raj

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  Still waiting. ..

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • R
                    rocketdog
                    last edited by

                    I have the same problem. Nothing from the webgui changed anything. (Services -> Varnish -> Enable Varnish etc.)

                    So I logged in and also had to```
                    ln -s /usr/pbi/gcc-i386/bin/gcc42 /usr/bin/cc

                    
                    and so when I try to start it manually I get this:
                    
                    

                    [2.1-RELEASE][admin@skynet.starbase.org]/root(57): varnishd -f /etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000 -a 0.0.0.0:8080
                    nm: not found
                    storage_malloc: max size 1024 MB.
                    Message from C-compiler:
                    cc: error trying to exec 'as': execvp: No such file or directory
                    Running C-compiler failed, exit 1
                    VCL compilation failed

                    
                    Help would be much appreciated. :)
                    
                    / Rocketdog using **2.1-RELEASE (i386)**
                    1 Reply Last reply Reply Quote 0
                    • marcellocM
                      marcelloc
                      last edited by

                      The new pbi was compiled by jimp but it still return error.

                      I'm looking for a way to include cc on this pbi.

                      Treinamentos de Elite: http://sys-squad.com

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by

                        We fixed this by manually installing the missing packages.

                        cc is part of gcc
                        as is part of binutils

                        Fetch and transfer the following to /tmp (with i.e. WinSCP on Windows. *nix users should know what to do :) ):

                        http://files.pfsense.org/packages/amd64/8/All/gcc-4.2.5.20090325_5-amd64.pbi
                        http://files.pfsense.org/packages/amd64/8/All/binutils-2.21.1.tbz

                        Then do the following via ssh:

                        pbi_add -f –no-checksig /tmp/gcc-4.2.5.20090325_5-amd64.pbi
                        pkg_add /tmp/binutils-2.21.1.tbz
                        ln -s /usr/pbi/gcc-amd64/bin/gcc42 /usr/local/bin/cc

                        Optionally install the latest Varnish3 package.
                        fetch and transfer http://files.pfsense.org/packages/amd64/8/All/varnish-3.0.4-amd64.pbi

                        ssh:
                        pbi_add -f --no-checksig /tmp/varnish-3.0.4-amd64.pbi

                        1 Reply Last reply Reply Quote 0
                        • marcellocM
                          marcelloc
                          last edited by

                          Thanks for the feedback,

                          I've pushed a fix for the package and seems that only missing thing was a ln -s from gcc to cc.

                          Treinamentos de Elite: http://sys-squad.com

                          Help a community developer! ;D

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