<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can&#x27;t start varnish, missing cc dependency or something]]></title><description><![CDATA[<p dir="auto">I hope this is the right place to post my problem.</p>
<p dir="auto">I have installed pfSense 2.1 (64 bit) on a standard stand alone pc box. Here is my version info:</p>
<pre><code>2.1-RELEASE (amd64) 
built on Wed Sep 11 18:17:48 EDT 2013 
FreeBSD 8.3-RELEASE-p11
</code></pre>
<p dir="auto">Everything seems to be working fine, so I'm trying to setup reverse accelerator to handle multiple host, using varnish package. I have my configuration done and when I try to start varnish (manually from command to see the output I get this) :</p>
<pre><code>$ /usr/local/etc/rc.d/varnish.sh start
kern.ipc.nmbclusters: 65536
sysctl: kern.ipc.nmbclusters: Invalid argument
kern.ipc.somaxconn: 16384 -&gt; 16384
kern.maxfiles: 131072 -&gt; 131072
kern.maxfilesperproc: 104856 -&gt; 104856
kern.threads.max_threads_per_proc: 4096 -&gt; 4096
mkdir -p /var/varnish
rm /var/varnish/storage.bin 2&gt;/dev/null
killall varnishd 2&gt;/dev/null
sleep 1
sysctl kern.ipc.nmbclusters=65536
sysctl kern.ipc.somaxconn=16384
sysctl kern.maxfiles=131072
sysctl kern.maxfilesperproc=104856
sysctl kern.threads.max_threads_per_proc=4096
/usr/bin/env \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
/usr/local/bin/php -q -d auto_prepend_file=config.inc &lt;&lt;endoff&lt;br&gt;ENDOFF

/usr/local/sbin/varnishd \
	-a :80 \
	-f /var/etc/default.vcl \
	-s malloc,512MB \
	-w 200,4000,50 \
	-T 127.0.0.1:85  
nm: not found
storage_malloc: max size 512 MB.
Message from C-compiler:
exec: cc: not found
Running C-compiler failed, exit 2
VCL compilation failed&lt;/endoff&lt;br&gt;
</code></pre>
<p dir="auto">Can anyone give me some hints on why this is happening and what to do about it?</p>
<p dir="auto">I googled "varnish pfSense exec: cc: not found" and have a link with what seems to be the same problem in Portuguese forum:<br />
http://forum.pfsense.org/index.php?topic=67564.0</p>
]]></description><link>https://forum.netgate.com/topic/61593/can-t-start-varnish-missing-cc-dependency-or-something</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 07:31:07 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/61593.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Oct 2013 11:35:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Wed, 13 Nov 2013 20:55:06 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the feedback,</p>
<p dir="auto"><a href="https://github.com/pfsense/pfsense-packages/commit/6a9b49aa740337444bdf93570ff35864dcf01c4f" target="_blank" rel="noopener noreferrer nofollow ugc">I've pushed a fix for the package</a> and seems that only missing thing was a ln -s from gcc to cc.</p>
]]></description><link>https://forum.netgate.com/post/429557</link><guid isPermaLink="true">https://forum.netgate.com/post/429557</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Wed, 13 Nov 2013 20:55:06 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Wed, 13 Nov 2013 13:32:50 GMT]]></title><description><![CDATA[<p dir="auto">We fixed this by manually installing the missing packages.</p>
<p dir="auto">cc is part of gcc<br />
as is part of binutils</p>
<p dir="auto">Fetch and transfer the following to /tmp (with i.e. WinSCP on Windows. *nix users should know what to do :) ):</p>
<p dir="auto">http://files.pfsense.org/packages/amd64/8/All/gcc-4.2.5.20090325_5-amd64.pbi<br />
http://files.pfsense.org/packages/amd64/8/All/binutils-2.21.1.tbz</p>
<p dir="auto">Then do the following via ssh:</p>
<p dir="auto">pbi_add -f –no-checksig /tmp/gcc-4.2.5.20090325_5-amd64.pbi<br />
pkg_add /tmp/binutils-2.21.1.tbz<br />
ln -s /usr/pbi/gcc-amd64/bin/gcc42 /usr/local/bin/cc</p>
<p dir="auto">Optionally install the latest Varnish3 package.<br />
fetch and transfer http://files.pfsense.org/packages/amd64/8/All/varnish-3.0.4-amd64.pbi</p>
<p dir="auto">ssh:<br />
pbi_add -f --no-checksig /tmp/varnish-3.0.4-amd64.pbi</p>
]]></description><link>https://forum.netgate.com/post/429477</link><guid isPermaLink="true">https://forum.netgate.com/post/429477</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 13 Nov 2013 13:32:50 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Fri, 08 Nov 2013 19:07:51 GMT]]></title><description><![CDATA[<p dir="auto">The new pbi was compiled by jimp but it still return error.</p>
<p dir="auto">I'm looking for a way to include cc on this pbi.</p>
]]></description><link>https://forum.netgate.com/post/428804</link><guid isPermaLink="true">https://forum.netgate.com/post/428804</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Fri, 08 Nov 2013 19:07:51 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Fri, 08 Nov 2013 17:53:01 GMT]]></title><description><![CDATA[<p dir="auto">I have the same problem. Nothing from the webgui changed anything. (Services -&gt; Varnish -&gt; Enable Varnish etc.)</p>
<p dir="auto">So I logged in and also had to```<br />
ln -s /usr/pbi/gcc-i386/bin/gcc42 /usr/bin/cc</p>
<pre><code>
and so when I try to start it manually I get this:

</code></pre>
<p dir="auto">[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<br />
nm: not found<br />
storage_malloc: max size 1024 MB.<br />
Message from C-compiler:<br />
cc: error trying to exec 'as': execvp: No such file or directory<br />
Running C-compiler failed, exit 1<br />
VCL compilation failed</p>
<pre><code>
Help would be much appreciated. :)

/ Rocketdog using **2.1-RELEASE (i386)**</code></pre>
]]></description><link>https://forum.netgate.com/post/428789</link><guid isPermaLink="true">https://forum.netgate.com/post/428789</guid><dc:creator><![CDATA[rocketdog]]></dc:creator><pubDate>Fri, 08 Nov 2013 17:53:01 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Sun, 20 Oct 2013 15:17:51 GMT]]></title><description><![CDATA[<p dir="auto">Still waiting. ..</p>
]]></description><link>https://forum.netgate.com/post/425804</link><guid isPermaLink="true">https://forum.netgate.com/post/425804</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Sun, 20 Oct 2013 15:17:51 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Sat, 19 Oct 2013 13:01:54 GMT]]></title><description><![CDATA[<p dir="auto">Hiya, I am having the same issue. Does anyone know when the next package compile will run pls?</p>
<p dir="auto">Cheers,</p>
<p dir="auto">Raj</p>
]]></description><link>https://forum.netgate.com/post/425677</link><guid isPermaLink="true">https://forum.netgate.com/post/425677</guid><dc:creator><![CDATA[rajbps]]></dc:creator><pubDate>Sat, 19 Oct 2013 13:01:54 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Tue, 15 Oct 2013 02:54:56 GMT]]></title><description><![CDATA[<p dir="auto">Compile args were changed on package info. Let's wait next package compile run to see if it works.</p>
]]></description><link>https://forum.netgate.com/post/424777</link><guid isPermaLink="true">https://forum.netgate.com/post/424777</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Tue, 15 Oct 2013 02:54:56 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Mon, 14 Oct 2013 05:03:19 GMT]]></title><description><![CDATA[<p dir="auto">I'm also getting this bug.</p>
<p dir="auto">Also can you add..</p>
<ul>
<li>a way to edit 'vcl_hash'</li>
<li>a 'null' option to 'Forward client IP' (I want to set this through HAProxy which sits in front of Varnish)</li>
<li>a way to add acl's</li>
</ul>
<p dir="auto">Thanks! If I have some time this week I'll see if I can hack these changes in myself.</p>
]]></description><link>https://forum.netgate.com/post/424596</link><guid isPermaLink="true">https://forum.netgate.com/post/424596</guid><dc:creator><![CDATA[josh4trunks]]></dc:creator><pubDate>Mon, 14 Oct 2013 05:03:19 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Sat, 12 Oct 2013 19:14:22 GMT]]></title><description><![CDATA[<p dir="auto">Thank you marcelloc, please let me know when it is ready so I can test again.</p>
<p dir="auto">Best Regards,<br />
Z.</p>
]]></description><link>https://forum.netgate.com/post/424455</link><guid isPermaLink="true">https://forum.netgate.com/post/424455</guid><dc:creator><![CDATA[zoltanf]]></dc:creator><pubDate>Sat, 12 Oct 2013 19:14:22 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Sat, 12 Oct 2013 14:29:10 GMT]]></title><description><![CDATA[<p dir="auto">I'll change compile options and ask another package compilation.</p>
]]></description><link>https://forum.netgate.com/post/424421</link><guid isPermaLink="true">https://forum.netgate.com/post/424421</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Sat, 12 Oct 2013 14:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Sat, 12 Oct 2013 07:37:48 GMT]]></title><description><![CDATA[<p dir="auto">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 :(</p>
<p dir="auto">Is there maybe another version of this package that might work?</p>
<p dir="auto">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?</p>
<p dir="auto">Thanks,<br />
Z.</p>
]]></description><link>https://forum.netgate.com/post/424399</link><guid isPermaLink="true">https://forum.netgate.com/post/424399</guid><dc:creator><![CDATA[zoltanf]]></dc:creator><pubDate>Sat, 12 Oct 2013 07:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Fri, 11 Oct 2013 17:36:16 GMT]]></title><description><![CDATA[<p dir="auto">Tried to make a symlink to /usr/bin/cc, from the gcc executable I found, but to no avail, now something else is missing: as</p>
<blockquote>
<p dir="auto">ln -s /usr/pbi/gcc-amd64/bin/gcc42 /usr/bin/cc</p>
</blockquote>
<p dir="auto">Result output from vanish3 startup:</p>
<pre><code>$ /usr/local/etc/rc.d/varnish.sh start
kern.ipc.nmbclusters: 65536
sysctl: kern.ipc.nmbclusters: Invalid argument
kern.ipc.somaxconn: 16384 -&gt; 16384
kern.maxfiles: 131072 -&gt; 131072
kern.maxfilesperproc: 104856 -&gt; 104856
kern.threads.max_threads_per_proc: 4096 -&gt; 4096
mkdir -p /var/varnish
rm /var/varnish/storage.bin 2&gt;/dev/null
killall varnishd 2&gt;/dev/null
sleep 1
sysctl kern.ipc.nmbclusters=65536
sysctl kern.ipc.somaxconn=16384
sysctl kern.maxfiles=131072
sysctl kern.maxfilesperproc=104856
sysctl kern.threads.max_threads_per_proc=4096
/usr/bin/env \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
/usr/local/bin/php -q -d auto_prepend_file=config.inc &lt;&lt;endoff&lt;br&gt;ENDOFF

/usr/local/sbin/varnishd \
	-a :80 \
	-f /var/etc/default.vcl \
	-s malloc,512MB \
	-w 200,4000,50 \
	-T 127.0.0.1:85  
nm: not found
Message from C-compiler:
cc: error trying to exec 'as': execvp: No such file or directory
./vcl.VSU2hoj5.c:1737: fatal error: error writing to -: Broken pipe
compilation terminated.
Running C-compiler failed, exit 1

VCL compilation failed&lt;/endoff&lt;br&gt;
</code></pre>
]]></description><link>https://forum.netgate.com/post/424308</link><guid isPermaLink="true">https://forum.netgate.com/post/424308</guid><dc:creator><![CDATA[zoltanf]]></dc:creator><pubDate>Fri, 11 Oct 2013 17:36:16 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Fri, 11 Oct 2013 17:00:42 GMT]]></title><description><![CDATA[<p dir="auto">I tried to reinstall the package, same resoult. Tried to uninstall and install vanish3 package, same result. :(</p>
<p dir="auto">Seems like GCC is downloaded during the package installation… but cc symlink is probably never created.</p>
<p dir="auto">Here is a snapshot of status output during the vanish3 package installation:</p>
<blockquote>
<p dir="auto">Beginning package installation for Varnish3 .<br />
Downloading package configuration file… done.<br />
Saving updated package information... done.<br />
Downloading Varnish3 and its dependencies...<br />
Checking for package installation...<br />
Downloading http://files.pfsense.org/packages/amd64/8/All/gcc-4.2.5.20090325_5-amd64.pbi ...  (extracting)</p>
<p dir="auto">Downloading http://files.pfsense.org/packages/amd64/8/All/varnish-3.0.3_2-amd64.pbi ...  (extracting)</p>
</blockquote>
<p dir="auto">Thank you for your help.</p>
]]></description><link>https://forum.netgate.com/post/424297</link><guid isPermaLink="true">https://forum.netgate.com/post/424297</guid><dc:creator><![CDATA[zoltanf]]></dc:creator><pubDate>Fri, 11 Oct 2013 17:00:42 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Fri, 11 Oct 2013 13:33:20 GMT]]></title><description><![CDATA[<p dir="auto">I'm not sure how to check this, here is my try from SSH:</p>
<pre><code>[2.1-RELEASE][admin@pfsense.yu-spin.local]/(23): find / -name cc
[2.1-RELEASE][admin@pfsense.yu-spin.local]/(24): find / -name gcc
/usr/local/libexec/gcc42/gcc
/usr/local/lib/gcc42/gcc
/usr/pbi/gcc-amd64/lib/gcc42/gcc
/usr/pbi/gcc-amd64/libexec/gcc42/gcc
[2.1-RELEASE][admin@pfsense.yu-spin.local]/(25):

</code></pre>
<blockquote>
<p dir="auto">gcc is a dependence for varnish but on install script its on a another pbi.</p>
</blockquote>
<p dir="auto">Regarding this, should I try to reinstall the package?</p>
]]></description><link>https://forum.netgate.com/post/424255</link><guid isPermaLink="true">https://forum.netgate.com/post/424255</guid><dc:creator><![CDATA[zoltanf]]></dc:creator><pubDate>Fri, 11 Oct 2013 13:33:20 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t start varnish, missing cc dependency or something on Fri, 11 Oct 2013 13:23:57 GMT]]></title><description><![CDATA[<p dir="auto">can you check if you have cc on your filesystem?</p>
<p dir="auto">gcc is a dependence for varnish but on install script its on a another pbi.</p>
]]></description><link>https://forum.netgate.com/post/424252</link><guid isPermaLink="true">https://forum.netgate.com/post/424252</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Fri, 11 Oct 2013 13:23:57 GMT</pubDate></item></channel></rss>