aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: Compile error CVS20080110  (Read 11598 times)

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Compile error CVS20080110
« Reply #15 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.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Compile error CVS20080110
« Reply #16 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
}
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Compile error CVS20080110
« Reply #17 on: January 13, 2008, 09:13:12 PM »

It doesn't really take any more than

PREFIX=$(whereever) make all install
Logged

TASADAR-F

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 58
    • http://www.juventudaranda.com
Re: Compile error CVS20080110
« Reply #18 on: January 14, 2008, 04:49:55 AM »

In Ubuntu is very easy :
sudo aptitude install libcrypto++-dev
Logged

lfroen

  • Guest
Re: Compile error CVS20080110
« Reply #19 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?
Logged

lfroen

  • Guest
Re: Compile error CVS20080110
« Reply #20 on: January 14, 2008, 07:17:58 AM »

It doesn't really take any more than

PREFIX=$(whereever) make all install

So ?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Compile error CVS20080110
« Reply #21 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.
Logged

lfroen

  • Guest
Re: Compile error CVS20080110
« Reply #22 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?
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1546
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Compile error CVS20080110
« Reply #23 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.
Logged
Homefucking is killing prostitution

lfroen

  • Guest
Re: Compile error CVS20080110
« Reply #24 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.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Compile error CVS20080110
« Reply #25 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.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Compile error CVS20080110
« Reply #26 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!
« Last Edit: January 20, 2008, 02:58:49 PM by phoenix »
Logged

lfroen

  • Guest
Re: Compile error CVS20080110
« Reply #27 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.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Compile error CVS20080110
« Reply #28 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.
Logged
Pages: 1 [2]