What's wrong with using the port www/e2guardian ?
Dear nosferatu,
I have tried a test build using ports-mgmt/poudriere. It shows no issues with www/e2guardian. Please use script(1) to log all the output of the console to a file. Then you can post the relevant parts here easily including which command you have launched to compile the port. The content of /etc/make.conf could be of interest as well. This file is for global compilation options. It is not necessary that it exists. Do not worry if you do not have it.
===> Building for e2guardian-3.4.0.3
--- all ---
/usr/bin/make all-recursive
--- all-recursive ---
Making all in .
Making all in doc
Making all in data
--- all-recursive ---
Making all in languages
Making all in .
Making all in scripts
--- all-recursive ---
Making all in .
Making all in configs
--- all-recursive ---
Making all in lists
--- all-recursive ---
Making all in phraselists
Making all in .
Making all in authplugins
--- all-recursive ---
Making all in .
Making all in bannedrooms
--- all-recursive ---
Making all in .
Making all in contentscanners
--- all-recursive ---
Making all in .
Making all in downloadmanagers
--- all-recursive ---
Making all in .
Making all in downloadmanagers
--- all-recursive ---
Making all in .
Making all in authplugins
--- all-recursive ---
Making all in .
Making all in .
Making all in contentscanners
--- all-recursive ---
Making all in .
Making all in src
--- e2guardian ---
c++ -I/usr/local/include -O2 -pipe -I/usr/local/include -D__SSLMITM -D__SSLCERT -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -DLIBICONV_PLUG -lssl -lcrypto -fstack-protector -o e2guardian e2guardian-String.o e2guardian-FDTunnel.o e2guardian-ConnectionHandler.o e2guardian-DataBuffer.o e2guardian-HTTPHeader.o e2guardian-NaughtyFilter.o e2guardian-BackedStore.o e2guardian-RegExp.o e2guardian-FDFuncs.o e2guardian-BaseSocket.o e2guardian-Socket.o e2guardian-FatController.o e2guardian-UDSocket.o e2guardian-SysV.o e2guardian-ListContainer.o e2guardian-Auth.o e2guardian-HTMLTemplate.o e2guardian-LanguageContainer.o e2guardian-DynamicURLList.o e2guardian-DynamicIPList.o e2guardian-ImageContainer.o e2guardian-IPList.o e2guardian-OptionContainer.o e2guardian-FOptionContainer.o e2guardian-ListManager.o e2guardian-md5.o e2guardian-DownloadManager.o e2guardian-ConfigVar.o e2guardian-ContentScanner.o e2guardian-SocketArray.o e2guardian-e2guardian.o e2guardian-CertificateAuthority.o contentscanners/e2guardian-icapscan.o contentscanners/e2guardian-kavdscan.o contentscanners/e2guardian-clamdscan.o contentscanners/e2guardian-commandlinescan.o downloadmanagers/e2guardian-default.o downloadmanagers/e2guardian-fancy.o downloadmanagers/e2guardian-trickle.o authplugins/e2guardian-proxy.o authplugins/e2guardian-ident.o authplugins/e2guardian-ip.o authplugins/e2guardian-dnsauth.o authplugins/e2guardian-port.o authplugins/e2guardian-ntlm.o authplugins/e2guardian-digest.o -lpcreposix -L/usr/local/lib -lpcre -lz -lresolv
/usr/bin/ld: cannot find -lresolv
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [e2guardian] Error code 1
make[4]: stopped in /usr/ports/www/e2guardian/work/e2guardian-3.4.0.3/src
1 error
make[4]: stopped in /usr/ports/www/e2guardian/work/e2guardian-3.4.0.3/src
*** [all-recursive] Error code 1
make[3]: stopped in /usr/ports/www/e2guardian/work/e2guardian-3.4.0.3
1 error
make[3]: stopped in /usr/ports/www/e2guardian/work/e2guardian-3.4.0.3
*** [all] Error code 2
make[2]: stopped in /usr/ports/www/e2guardian/work/e2guardian-3.4.0.3
make[2]: stopped in /usr/ports/www/e2guardian/work/e2guardian-3.4.0.3
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/www/e2guardian
*** Error code 1
Stop.
make: stopped in /usr/ports/www/e2guardian
cd /usr/ports/www/e2guardian
and make
. I have used the default configuration of the port. I did not found anything in the output about lresolv. The same result with make all
. But I have not updated the ports tree in this environment. I have seen that the version of www/e2guardian is similar to yours. Have you also just run make
? How about the configuration options?Dear nosferatu,
I have tried that in a setup which is not clean. I didcd /usr/ports/www/e2guardian
andmake
. I have used the default configuration of the port. I did not found anything in the output about lresolv. The same result withmake all
. But I have not updated the ports tree in this environment. I have seen that the version of www/e2guardian is similar to yours. Have you also just runmake
? How about the configuration options?
EDIT I am running FreeBSD 10.3. What version do you use?
I do now know. At least the default configuration should work. http://portsmon.freebsd.org/portoverview.py?category=www&portname=e2guardian is a good place to verify that. Seeking for lresolv I saw reports about topics related to SASL and SSL. All results are old but if I am not wrong there have been changes recently with respect to SSL.I enabled some security options while installing FreeBSD 11. Maybe it is because of that?
I do now know. At least the default configuration should work. http://portsmon.freebsd.org/portoverview.py?category=www&portname=e2guardian is a good place to verify that. Seeking for lresolv I saw reports about topics related to SASL and SSL. All results are old but if I am not wrong there have been changes recently with respect to SSL.
Dear nosferatu,
now I have enabled dns which is off by default and run into the same error as you have shown. May be you have something which enables that setting somehow. At least it is good that the problem can be reproduced.
It might be better to contact the maintainer first. The address appears byShould I send a bug report for this?
make maintainer
. May be there is already some solution. I have just verified that the error appears also in a clear environment using port-mgmt/poudriere when DNS is selected.--- configure.ac.orig 2016-03-14 15:21:42 UTC
+++ configure.ac
@@ -612,7 +612,7 @@ else
AC_MSG_RESULT(yes)
dnsauth=true
DNSAUTHSUPPORT=""
- LIBS="${LIBS} -lresolv"
+ LIBS="${LIBS}"
AC_DEFINE([PRT_DNSAUTH],[],[Define to enable DNS auth plugin])
fi],
[
make patch
is applied. This happens from the normal make
automatically. With this patch even port-mgmt/poudriere is happy when DNS is activated. Please try if the software is functional or not. I have no idea. Hopefully the patch is all to make the DNS option work. To be on the safe side it might be owrth to ask the maintainer about his opinion about the patch, even if it works for you.I have only very limited experience with autoconf. Does that mean that www/e2guardian is fine but devel/autoconf should be fixed? If yes, this should be clearly better than work around on other ports.The correct fix would be to make autoconf properly detect if the system has a libresolv library or not.
Dear kpa,
I have only very limited experience with autoconf. Does that mean that www/e2guardian is fine but devel/autoconf should be fixed? If yes, this should be clearly better than work around on other ports.
Ok, then I will try to find a better fix for configure.ac. This should be also good to get some knowledge about autoconf. Currently it is somehow magic for me.Your fix only removes the library unconditionally which is probably fine for FreeBSD but breaks it for other platforms so your fix is ok only as FreeBSD local patch for the port.
AC_SEARCH_LIBS(function, libraries-list, action-if-found, action-if-not-found, extra-libraries)
function
The name of the symbol to look for in the libraries.
libraries-list
A whitespace-separated list of libraries, in library-name format, that have to be searched for the function listed before. This list does not require the C library to be specified, as the first test will be done with just the libraries present in the LIBS variable.
action-if-found, action-if-not-found
As usual, the macro supports expanding code for success and failure. In this instance, each will be called at most once, and the default action-if-found code, adding the library to the LIBS variables, is always executed, even if a parameter is passed.
extra-libraries
...additonal info...
AC_SEARCH_LIBS([inet_aton], [resolv])
LIBS="${LIBS} -lresolv"
I am curious about the result and the opinion of the maintainer. As you see from the postings above I am learning as well, for example from kpa . This forum is great.I will try the patch after current make. Hope it works. I have some obsession to use ports instead of packages. I will contact the maintainer after the result. Thank you for help chrbr.
I am curious about the result and the opinion of the maintainer. As you see from the postings above I am learning as well, for example from kpa . This forum is great.
This is a good idea. Then the maintainer has all information.Some other configuration options also outputs the same error. Probably maintainer only considered the default instillation. I will mail him this thread.
I encountered this same issue. Did you ever contact the maintainer? I didn't find any open bugs on the bug tracker.