Closed GoogleCodeExporter closed 9 years ago
I have uploaded r87 to fix number 1 and 2.
I'll leave number 3 to MinD, since it seems to be related to the documentation,
and I prefer him to decide where he wants it to be written.
Best regards,
Teresa e Junior
Original comment by teresaejunior
on 20 Oct 2011 at 6:40
Hi
I tried to configure and compile MinD:
The bootstrap bug was fixed, thank you! but I still does not copy or link the libtool from FreeBSD correctly, so I get the same error when I compile. Here some more details:
errors:
at configure process (here it seems not to link properly?):
ln: illegal option -- -
usage: ln [-s [-F] | -L | -P] [-f | -i] [-hnv] source_file [target_file]
ln [-s [-F] | -L | -P] [-f | -i] [-hnv] source_file ... target_dir
link source_file target_file
Then, when I compile I get this:
../libtool: line 692: X--tag=CXX: command not found
../libtool: line 725: libtool: ignoring unknown tag : command not found
../libtool: line 692: X--mode=link: command not found
../libtool: line 842: *** Warning: inferring the mode of operation is
deprecated.: command not found
../libtool: line 843: *** Future versions of Libtool will require -mode=MODE be
specified.: command not found
cc: No input files specified
cc: No input files specified
cc: No input files specified
cc: No input files specified
../libtool: line 1996: X-I/usr/local/include: No such file or directory
../libtool: line 1996: X-I/usr/local/include,-O3: No such file or directory
../libtool: line 1747: X-L/usr/local/lib,-Wl,-Bsymbolic-functions: No such file
or directory
../libtool: line 1747: X-L/usr/local/lib: No such file or directory
../libtool: line 1747: X-L/usr/local/lib: No such file or directory
../libtool: line 1747: X-L/usr/local/lib: No such file or directory
../libtool: line 2160: Xmind: command not found
../libtool: line 2165: X: command not found
../libtool: line 2172: Xmind: command not found
../libtool: line 2311: X-lxml2: command not found
../libtool: line 2311: X-lz: command not found
../libtool: line 2311: X-liconv: command not found
../libtool: line 2311: X-lm: command not found
../libtool: line 2311: X-lpcreposix: command not found
../libtool: line 2311: X-lpcre: command not found
../libtool: line 2311: X-lz: command not found
../libtool: line 2393: X-L/root/mindwebfilter-read-only/mind-toy/src: No such
file or directory
../libtool: line 2311: X-lxml2: command not found
../libtool: line 2311: X-liconv: command not found
../libtool: line 2311: X-lm: command not found
../libtool: line 2311: X-lpcreposix: command not found
../libtool: line 2311: X-lpcre: command not found
../libtool: line 2311: X-lz: command not found
../libtool: line 2393: X-L/root/mindwebfilter-read-only/mind-toy/src: No such
file or directory
../libtool: line 2311: X-lxml2: command not found
../libtool: line 2311: X-liconv: command not found
../libtool: line 2311: X-lm: command not found
../libtool: line 2311: X-lpcreposix: command not found
../libtool: line 2311: X-lpcre: command not found
../libtool: line 2311: X-lz: command not found
../libtool: line 4866: Xg++ "" "" -o @OUTPUT@ mind-String.o mind-FDTunnel.o
mind-ConnectionHandler.o mind-DataBuffer.o mind-HTTPHeader.o
mind-ContentFilter.o mind-RegExp.o mind-FDFuncs.o mind-BaseSocket.o
mind-Socket.o mind-FatController.o mind-UDSocket.o mind-SysV.o
mind-ListContainer.o mind-Auth.o mind-HTMLTemplate.o mind-LanguageContainer.o
mind-DynamicURLList.o mind-DynamicIPList.o mind-ImageContainer.o mind-IPList.o
mind-OptionContainer.o mind-FOptionContainer.o mind-ListManager.o mind-md5.o
mind-DownloadManager.o mind-ConfigVar.o mind-ContentScanner.o
mind-SocketArray.o mind-Logger.o mind-soapFunctions.o mind-mind.o
mind-clamdscan.o mind-default.o mind-fancy.o mind-proxy.o mind-ident.o
mind-ip.o mind-ntlm.o mind-digest.o
-L/root/mindwebfilter-read-only/mind-toy/src -lxml2 -liconv -lm -lpcreposix
-lpcre -lz: File name too long
../libtool: line 4867: Xg++ "" "" -o @OUTPUT@ mind-String.o mind-FDTunnel.o
mind-ConnectionHandler.o mind-DataBuffer.o mind-HTTPHeader.o
mind-ContentFilter.o mind-RegExp.o mind-FDFuncs.o mind-BaseSocket.o
mind-Socket.o mind-FatController.o mind-UDSocket.o mind-SysV.o
mind-ListContainer.o mind-Auth.o mind-HTMLTemplate.o mind-LanguageContainer.o
mind-DynamicURLList.o mind-DynamicIPList.o mind-ImageContainer.o mind-IPList.o
mind-OptionContainer.o mind-FOptionContainer.o mind-ListManager.o mind-md5.o
mind-DownloadManager.o mind-ConfigVar.o mind-ContentScanner.o
mind-SocketArray.o mind-Logger.o mind-soapFunctions.o mind-mind.o
mind-clamdscan.o mind-default.o mind-fancy.o mind-proxy.o mind-ident.o
mind-ip.o mind-ntlm.o mind-digest.o
-L/root/mindwebfilter-read-only/mind-toy/src -lxml2 -liconv -lm -lpcreposix
-lpcre -lz: File name too long
../libtool: line 4872: X: command not found
../libtool: line 4876: : command not found
After copy or link libtool like this it works:
ln -s -F /usr/local/bin/libtool libtool
or
cp /usr/local/bin/libtool libtool
I also corrected my proposal for the configure statement for FreeBSD:
./configure --mandir=/usr/local/man/ --enable-clamd=yes --with-proxyuser=squid \
--with-proxygroup=squid --prefix=/ --sbindir=/usr/local/sbin
--libdir=/usr/local/lib/mind --datadir=/usr/local/share/mind \
--infodir=/usr/local/share/info --sysconfdir=/usr/local/etc
--localstatedir=/usr/local/var \
--enable-ntlm=yes CXX="g++" CXXFLAGS="-I/usr/local/include,-O3"
LDFLAGS="-L/usr/local/lib,-Wl,-Bsymbolic-functions" \
CPPFLAGS="" CC="cc" CFLAGS="-O3"
should work and put everything on the right place.
best regards
tobi
Original comment by t...@gmx.ch
on 21 Oct 2011 at 12:12
[deleted comment]
Hello, Tobi! Thank you for reporting!
The ln command failed because the script was written specifically for ln from
GNU coreutils, which is very common in Linux distributions. Please, check if
r88 works well in FreeBSD.
Since ToyCompile was written with Debian based Linux distributions in mind, if
you want to write a quick guide based on ToyCompile for FreeBSD, we'll be happy
to include it! I believe the main differences are just the --prefix, LDFLAGS,
and the names of the packages to be installed.
Best regards,
Teresa e Junior
Original comment by teresaejunior
on 22 Oct 2011 at 8:47
Hi Teresa e Junior
Now everthing works well with r88, thank you!
Yes you're right, it's almost the same under FreeBSD. Here my proposal for the
manual:
Packages:
subversion (for svn checkout)
pkg-config
autogen
pcre
clamav
libiconv
iconv
Download:
svn checkout http://mindwebfilter.googlecode.com/svn/trunk/
mindwebfilter-read-only
Configuring:
./bootstrap
./configure --enable-clamd=yes --with-proxyuser=nobody
--with-proxygroup=nogroup --prefix=/usr/local/ --enable-ntlm=yes CXX="g++"
CXXFLAGS="-I/usr/local/include,-O3"
LDFLAGS="-L/usr/local/lib,-Wl,-Bsymbolic-functions" CPPFLAGS="" CC="cc"
CFLAGS="-O3"
Compiling:
make
Installing:
sudo make install
Best regards
Tobias Meier
Original comment by t...@gmx.ch
on 24 Oct 2011 at 5:37
Thank you, Tobias! The wiki page was created here: Compiling_Toy_in_FreeBSD.
Original comment by teresaejunior
on 24 Oct 2011 at 12:25
Original issue reported on code.google.com by
t...@gmx.ch
on 14 Oct 2011 at 1:53