aMule Forum

English => Compilation problems => Topic started by: TASADAR-F on January 10, 2008, 10:55:55 PM

Title: Compile error CVS20080110
Post 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.
Title: Re: Compile error CVS20080110
Post by: TASADAR-F on January 10, 2008, 10:57:30 PM
I use Ubuntu 7.10
Title: Re: Compile error CVS20080110
Post by: gugus on January 11, 2008, 12:58:28 AM
Excatly the same problem under FreeBSD 6.2.
Title: Re: Compile error CVS20080110
Post by: Schuttwegraeumer on January 11, 2008, 02:18:00 AM
On Ubuntu 7.10 you need this packages:

Code: [Select]
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
Title: Re: Compile error CVS20080110
Post by: TASADAR-F on January 11, 2008, 02:58:18 AM
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.
Title: Re: Compile error CVS20080110
Post by: wuischke on January 11, 2008, 02:13:30 PM
Phoenix rewrote this, I think it is fixed in tomorrow's tarball.
Title: Re: Compile error CVS20080110
Post by: phoenix on January 12, 2008, 02:45:32 AM
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!
Title: Re: Compile error CVS20080110
Post by: TASADAR-F on January 12, 2008, 04:18:04 AM
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=
Title: Re: Compile error CVS20080110
Post by: TASADAR-F on January 12, 2008, 04:34:48 AM
I test with different computer: laptop core 2 duo + Ubuntu 7.10 with updates

Same problem and same config.log
Title: Re: Compile error CVS20080110
Post by: Vollstrecker on January 12, 2008, 02:39:19 PM
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.
Title: Re: Compile error CVS20080110
Post by: gnazio on January 12, 2008, 07:00:03 PM
Excatly the same problem under FreeBSD 6.2.

Install security/criptopp from ports and add the following option when running the configure script
Code: [Select]
--with-crypto-prefix=/usr/local/
Title: Re: Compile error CVS20080110
Post by: TASADAR-F on January 12, 2008, 10:40:25 PM
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'
Title: Re: Compile error CVS20080110
Post by: Stu Redman on January 13, 2008, 12:40:25 AM
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".')
Title: Re: Compile error CVS20080110
Post by: TASADAR-F on January 13, 2008, 01:09:29 AM
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
Title: Re: Compile error CVS20080110
Post by: lfroen on January 13, 2008, 08:34:25 PM
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?
Title: Re: Compile error CVS20080110
Post by: Xaignar on January 13, 2008, 08:57:11 PM
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.
Title: Re: Compile error CVS20080110
Post by: wuischke on January 13, 2008, 08:59:35 PM
That's the PKGBUILD (like a Gentoo ebuild) from Archlinux. I think it's pretty easy to read it and follow the steps.

Code: [Select]
# $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
}
Title: Re: Compile error CVS20080110
Post by: Xaignar on January 13, 2008, 09:13:12 PM
It doesn't really take any more than

PREFIX=$(whereever) make all install
Title: Re: Compile error CVS20080110
Post by: TASADAR-F on January 14, 2008, 04:49:55 AM
In Ubuntu is very easy :
sudo aptitude install libcrypto++-dev
Title: Re: Compile error CVS20080110
Post by: lfroen on January 14, 2008, 07:17:37 AM
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?
Title: Re: Compile error CVS20080110
Post by: lfroen on January 14, 2008, 07:17:58 AM
It doesn't really take any more than

PREFIX=$(whereever) make all install

So ?
Title: Re: Compile error CVS20080110
Post by: Kry on January 14, 2008, 10:14:05 AM
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.
Title: Re: Compile error CVS20080110
Post by: lfroen on January 14, 2008, 12:44:57 PM
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?
Title: Re: Compile error CVS20080110
Post by: Vollstrecker on January 14, 2008, 01:16:23 PM
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.
Title: Re: Compile error CVS20080110
Post by: lfroen on January 14, 2008, 07:16:50 PM
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.
Title: Re: Compile error CVS20080110
Post by: Xaignar on January 14, 2008, 09:16:59 PM
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.
Title: Re: Compile error CVS20080110
Post by: phoenix on January 15, 2008, 02:34:04 AM
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!
Title: Re: Compile error CVS20080110
Post by: lfroen on January 15, 2008, 08:02:36 AM
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.
Title: Re: Compile error CVS20080110
Post by: skolnick on January 16, 2008, 04:37:26 AM
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.