aMule Forum
English => Compilation problems => Topic started by: TASADAR-F on January 10, 2008, 10:55:55 PM
-
Since CVS20080108 to CVS20080110.
./configure stops in this line:
checking for crypto++ version >= 5.1...
Cvs20080107 work perfectly.
-
I use Ubuntu 7.10
-
Excatly the same problem under FreeBSD 6.2.
-
On Ubuntu 7.10 you need this packages:
sudo apt-get install libglib2.0-dev libgtk2.0-dev zlib1g-dev libwxgtk2.8-dev libgd2-xpm-dev bison flex libcrypto++-dev libreadline5-dev libgeoip-dev libupnp-dev
-
Yes with this packages amule ./configure work well. (New crypto++ not embeded requiered crypto++-dev)
But if you not install (crypto++-dev) console hang in this line:
checking for crypto++ version >= 5.1...
I wait 15min and console don't change.
-
Phoenix rewrote this, I think it is fixed in tomorrow's tarball.
-
Yes with this packages amule ./configure work well. (New crypto++ not embeded requiered crypto++-dev)
But if you not install (crypto++-dev) console hang in this line:
checking for crypto++ version >= 5.1...
I wait 15min and console don't change.
I don't think I have fixed this issue in particular. It should not hang in any circumstance. Could you please take a look at the file config.log and see if there is something interesting close to the end?
Cheers!
-
Hello.
This is the log:
configure:7623: checking for wxWidgets version >= 2.8.0 (--unicode=yes)
configure:7667: result: yes (version 2.8.4)
configure:7671: checking for wxWidgets static library
configure:7675: result: no
configure:7886: checking if wxWidgets was built in DEBUG mode
configure:7898: result: no
configure:7910: checking if wxWidgets was built in STATIC mode
configure:7922: result: no
configure:7944: checking which wxWidgets toolkit was selected
configure:7979: result: gtk2
configure:8054: checking that wxWidgets has support for large files
configure:8068: g++ -E -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ conftest.cc
configure:8074: $? = 0
configure:8111: result: yes
configure:8228: checking for crypto++ version >= 5.1
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
-
I test with different computer: laptop core 2 duo + Ubuntu 7.10 with updates
Same problem and same config.log
-
Have you set --disable-embedded-crypto explicitly, or just run ./configure? I have no problems here at all. Maybe you can insert "set -x" at the beginning of the script and post when it stops.
-
Excatly the same problem under FreeBSD 6.2.
Install security/criptopp from ports and add the following option when running the configure script
--with-crypto-prefix=/usr/local/
-
With opcion set -x and without crypto++-dev
log:
+ echo 'configure:8112: result: yes'
+ echo yes
yes
+ CPPFLAGS=
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ ac_compiler_gnu=yes
+ test x = xwin32
+ RCFLAGS=
+ test '' = set
+ crypto_prefix=
+ min_crypto_version=5.1
+ echo 'configure:8229: checking for crypto++ version >= 5.1'
+ echo -n 'checking for crypto++ version >= 5.1... '
checking for crypto++ version >= 5.1... + CRYPTO_PP_STYLE=unknown
+ CRYPTO_PP_HEADER_PATH=
+ test x = x
+ crypto_prefix=/usr
+ test -f /usr/cryptopp/cryptlib.h
+ test -f /usr/include/cryptopp/cryptlib.h
+ test -f /usr/include/crypto++/cryptlib.h
+ test -z unknown
++ grep 'Reference Manual'
++ sed '-es#.*\s\(\([0-9]\+\.\?\)\+\)\s.*#\1#g'
-
CVS-20080112 (I did't try 0110) configures fine here with Ubuntu 7.10 after installing libcrypto++-dev (without came 'Could not find cryptopp header file "cryptlib.h".')
-
CVS20080112 work very good
Result:
checking for crypto++ version >= 5.1... configure: error:
Could not find cryptopp header file "cryptlib.h".
Please check if the path "/usr" is valid.
Thanks for all developers
-
CVS20080112 work very good
Result:
checking for crypto++ version >= 5.1... configure: error:
Could not find cryptopp header file "cryptlib.h".
Please check if the path "/usr" is valid.
Thanks for all developers
I guess I should "thank" to SOME of developers too. Current SVN doesn't compile for same reason on Fedora 7 as well. AFAIK there's no libcrypt package for Fedora, BTW.
Suggestions?
-
I guess I should "thank" to SOME of developers too. Current SVN doesn't compile for same reason on Fedora 7 as well.
You're welcome to take over the task of maintaining the embedded sources, which at the time of removal were a couple of years behind the official releases of Crypto++. :)
AFAIK there's no libcrypt package for Fedora, BTW.
Suggestions?
Do a local install, and/or bug the Fedora devs to get it included in the distro.
-
That's the PKGBUILD (like a Gentoo ebuild) from Archlinux. I think it's pretty easy to read it and follow the steps.
# $Id: PKGBUILD,v 1.3 2007/06/17 16:18:59 jgc Exp $
# Maintainer: Damir <damir@archlinux.org>
# Contributor: Kritoke <kritoke@gamebox.net>
# Contributor: jlvsimoes <jlvsimoes@oninet.pt>
pkgname=crypto++
pkgver=5.5.1
_srcver=551
pkgrel=1
pkgdesc="Crypto++ Library is a free C++ class library of cryptographic schemes."
arch=(i686 x86_64)
license=('custom')
makedepends=('unzip')
url="http://www.cryptopp.com/"
source=(http://www.cryptopp.com/cryptopp${_srcver}.zip)
build() {
cd ${startdir}/src/
sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
make -f GNUmakefile || return 1
mkdir -p ${startdir}/pkg/usr/include/cryptopp
mkdir -p ${startdir}/pkg/usr/lib
install -m644 *.h ${startdir}/pkg/usr/include/cryptopp/
install -m644 libcryptopp.a ${startdir}/pkg/usr/lib/
install -D -m644 License.txt ${startdir}/pkg/usr/share/licenses/${pkgname}/License.txt
}
-
It doesn't really take any more than
PREFIX=$(whereever) make all install
-
In Ubuntu is very easy :
sudo aptitude install libcrypto++-dev
-
AFAIK there's no libcrypt package for Fedora, BTW.
Suggestions?
Do a local install, and/or bug the Fedora devs to get it included in the distro.
Not helpful. Next one?
-
It doesn't really take any more than
PREFIX=$(whereever) make all install
So ?
-
I guess what they are trying to say is that aMule requires the library "crypto++" as it does with "wxWidgets" and other libraries, along with the "gcc/g++" compiler, etc etc etc. As usual, if your distro doesn't provide it (or they provide a too old version), you should compile it yourself.
That's what I get from their responses at least.
-
The problem is that not only default install of Fedora doesn't provide it, there no RPM in repository. So, given this situation, you can not create amule RPM for Fedora.
crypto++ is tiny library, how about we point to their SVN with "external" in our repository and offer static compile via "configure" flag?
-
This would over time cause the same problems. Someone have to keep them in sync. That is what didn't happen the last time, and I'm sure this will happen again. So it's maybe better to bother the distro to add it, or just provide a rpm for this lib from somewhere else.
-
This would over time cause the same problems. Someone have to keep them in sync. That is what didn't happen the last time, and I'm sure this will happen again. So it's maybe better to bother the distro to add it, or just provide a rpm for this lib from somewhere else.
You can pin to specific revision, and advance it as stable releases are made. It's good idea to bother distro to add it, but we've better have safe fallback too.
-
The problem is that not only default install of Fedora doesn't provide it, there no RPM in repository. So, given this situation, you can not create amule RPM for Fedora.
The Crypto++ library is built statically by default, so it's entirely possible to build an RPM for Fedore or whatever distro.
-
For the lazy ones, aMule recent tarballs include a script called amule_build_install.sh, which not only teaches how to build cryptopp, but also all the necessary libraries and aMule. Also, it installs everything locally at the user home dir, so there is no need to be root. And it can be adapted to everyone's needs.
Cheers!
-
The problem is that not only default install of Fedora doesn't provide it, there no RPM in repository. So, given this situation, you can not create amule RPM for Fedora.
The Crypto++ library is built statically by default, so it's entirely possible to build an RPM for Fedore or whatever distro.
That's match better.
-
You can compile it and install it, lfroen. Recent versions of cryptopp come with a small Makefile that will install the needed files to /usr/local.
Regards.