Simba7 l33t
Joined: 22 Jan 2007 Posts: 706 Location: Billings, MT, USA
|
Posted: Thu Oct 18, 2012 2:53 pm Post subject: {Solved} dansguardian + NTLM = Failed Compile |
|
|
Been having issues with USE="ntlm" in dansguardian. Here's what happens:
Code: | i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -D__CONFFILE='"/etc/dansguardian/dansguardian.conf"' -D__LOGLOCATION='"/var/log/dansguardian/"' -D__PIDDIR='"/var/run"' -D__PROXYUSER='"clamav"' -D__PROXYGROUP='"clamav"' -D__CONFDIR='"/etc/dansguardian"' -O2 -march=native -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT dansguardian-ip.o -MD -MP -MF .deps/dansguardian-ip.Tpo -c -o dansguardian-ip.o `test -f 'authplugins/ip.cpp' || echo './'`authplugins/ip.cpp
mv -f .deps/dansguardian-ident.Tpo .deps/dansguardian-ident.Po
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -D__CONFFILE='"/etc/dansguardian/dansguardian.conf"' -D__LOGLOCATION='"/var/log/dansguardian/"' -D__PIDDIR='"/var/run"' -D__PROXYUSER='"clamav"' -D__PROXYGROUP='"clamav"' -D__CONFDIR='"/etc/dansguardian"' -O2 -march=native -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT dansguardian-ntlm.o -MD -MP -MF .deps/dansguardian-ntlm.Tpo -c -o dansguardian-ntlm.o `test -f 'authplugins/ntlm.cpp' || echo './'`authplugins/ntlm.cpp
mv -f .deps/dansguardian-fancy.Tpo .deps/dansguardian-fancy.Po
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -D__CONFFILE='"/etc/dansguardian/dansguardian.conf"' -D__LOGLOCATION='"/var/log/dansguardian/"' -D__PIDDIR='"/var/run"' -D__PROXYUSER='"clamav"' -D__PROXYGROUP='"clamav"' -D__CONFDIR='"/etc/dansguardian"' -O2 -march=native -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT dansguardian-digest.o -MD -MP -MF .deps/dansguardian-digest.Tpo -c -o dansguardian-digest.o `test -f 'authplugins/digest.cpp' || echo './'`authplugins/digest.cpp
authplugins/ntlm.cpp: In member function 'virtual int ntlminstance::identify(Socket&, Socket&, HTTPHeader&, std::string&)':
authplugins/ntlm.cpp:205:87: error: expected primary-expression before ',' token
authplugins/ntlm.cpp:205:89: error: 'payload' was not declared in this scope
authplugins/ntlm.cpp:205:96: error: 'offsetof' was not declared in this scope
make[2]: *** [dansguardian-ntlm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/dansguardian-ip.Tpo .deps/dansguardian-ip.Po
mv -f .deps/dansguardian-digest.Tpo .deps/dansguardian-digest.Po
make[2]: Leaving directory `/var/tmp/portage/net-proxy/dansguardian-2.10.1.1-r2/work/dansguardian-2.10.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-proxy/dansguardian-2.10.1.1-r2/work/dansguardian-2.10.1.1'
make: *** [all] Error 2
emake failed
* ERROR: net-proxy/dansguardian-2.10.1.1-r2 failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2010: Called die
* The specific snippet of code:
* emake OPTIMISE="${CFLAGS}" || die "emake failed"
*
* If you need support, post the output of `emerge --info '=net-proxy/dansguardian-2.10.1.1-r2'`,
* the complete build log and the output of `emerge -pqv '=net-proxy/dansguardian-2.10.1.1-r2'`.
* The complete build log is located at '/var/tmp/portage/net-proxy/dansguardian-2.10.1.1-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-proxy/dansguardian-2.10.1.1-r2/temp/environment'.
* Working directory: '/var/tmp/portage/net-proxy/dansguardian-2.10.1.1-r2/work/dansguardian-2.10.1.1'
* S: '/var/tmp/portage/net-proxy/dansguardian-2.10.1.1-r2/work/dansguardian-2.10.1.1'
>>> Failed to emerge net-proxy/dansguardian-2.10.1.1-r2, Log file:
>>> '/var/tmp/portage/net-proxy/dansguardian-2.10.1.1-r2/temp/build.log'
* Messages for package net-proxy/dansguardian-2.10.1.1-r2: |
It seems there's a fix from Debian. I'll post it here and try it out.
Code: | +--- dansguardian-2.10.1.1~/src/authplugins/ntlm.cpp 2008-11-18 06:27:04.000000000 -0500
++++ dansguardian-2.10.1.1/src/authplugins/ntlm.cpp 2011-08-25 16:37:38.000000000 -0400
+@@ -27,6 +27,8 @@
+ #include "../FDTunnel.hpp"
+ #include "../OptionContainer.hpp"
+
++#include <cstddef>
++
+ #include <syslog.h>
+
+ #include <iconv.h> |
EDIT: Yep. That seems to make it compile just fine. |
|