compile libcitadel

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

compile libcitadel

Postby Kabbone » Thu Jul 25, 2013 9:31 am

Hey guys,

I want to try to set up a little Mailserver with the RPi, but can't manage to get libcitadel compiled.
$this->bbcode_second_pass_code('', '
...
zlib compression: yes
Character set conversion support: yes

LTCompile: /bin/sh ./libtool --silent --mode=compile armv6l-unknown-linux-gnueabihf-gcc -I./lib -I. -march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -D HAVE_MMAP -D_FORTIFY_SOURCE=2 -o buildinfo -c

CC: lib/tools.c
In file included from /usr/include/string.h:638:0,
from lib/tools.c:29:
lib/tools.c: In function 'remove_token':
/usr/include/bits/string3.h:102:1: error: inlining failed in call to always_inline 'strcpy': function not inlinable
lib/tools.c:272:9: error: called from here
In file included from /usr/include/string.h:638:0,
from lib/tools.c:29:
lib/tools.c: In function 'is_msg_in_sequence_set':
/usr/include/bits/string3.h:102:1: error: inlining failed in call to always_inline 'strcpy': function not inlinable
lib/tools.c:629:10: error: called from here
In file included from /usr/include/string.h:638:0,
from lib/tools.c:29:
lib/tools.c: In function 'stripout':
/usr/include/bits/string3.h:102:1: error: inlining failed in call to always_inline 'strcpy': function not inlinable
lib/tools.c:773:23: error: called from here
In file included from /usr/include/string.h:638:0,
from lib/tools.c:29:
/usr/include/bits/string3.h:102:1: error: inlining failed in call to always_inline 'strcpy': function not inlinable
lib/tools.c:778:23: error: called from here
In file included from /usr/include/string.h:638:0,
from lib/tools.c:29:
lib/tools.c: In function 'is_msg_in_mset':
/usr/include/bits/string3.h:102:1: error: inlining failed in call to always_inline 'strcpy': function not inlinable
lib/tools.c:1126:10: error: called from here
make: *** [lib/tools.lo] Error 1
==> ERROR: A failure occurred in build().
Aborting...
')

PKGBUILD
basically it's the PKGBUILD from the AUR, just changed to the latest version and the architecture to any
$this->bbcode_second_pass_code('', '
# Contributor: Marco Lima <cipparello gmail com>
# Maintainer: Mitchell Ferguson <teh.dawg at gmail dot com>
pkgname=libcitadel
pkgver=8.16
pkgrel=1
pkgdesc="Common code shared across all of the components of the Citadel system"
arch=('any')
url="http://www.citadel.org/"
license=('GPL3' 'custom')
depends=('glibc' 'zlib')
options=('!libtool')
source=("http://easyinstall.citadel.org/$pkgname-$pkgver.tar.gz")
md5sums=('236c9ef6443a1708c0499d7e66774642')
build() {
cd "$srcdir/$pkgname-$pkgver"

./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--build=${CHOST} \
--host=${CHOST}
make
}

package() {
cd "$srcdir/$pkgname-$pkgver"

make DESTDIR="$pkgdir/" install

# custom license
install -D -m0644 COPYING "$pkgdir/"usr/share/licenses/$pkgname/COPYING
}

# vim: set noexpandtab tabstop=8 shiftwidth=8 textwidth=132 autoindent
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
')

Are there any suggestions to get this working?
Kabbone
 
Posts: 155
Joined: Thu Jul 25, 2013 9:20 am

Re: compile libcitadel

Postby pepedog » Thu Jul 25, 2013 10:27 am

any is reserved for script only type pkgs, ie python, perl
You could try with makepkg -A which ignores arch
Honestly, I find postfix coupled with dovecot not at all heavy, ran these on dockstar which has only 128Mb mem
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: compile libcitadel

Postby WarheadsSE » Thu Jul 25, 2013 2:19 pm

I've made CItadel work on v5 before...

This thing is a massive PITA, why not use a real mail server, and not some wonked-out derivative of a BBS?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: compile libcitadel

Postby Kabbone » Thu Jul 25, 2013 7:26 pm

I just wanted to give it a try, because it seemed to be a easy suite. If it's not working very good I would change to Dovecoat and postfix.

with makepkg -A it doesn't compile neither. Same error
Kabbone
 
Posts: 155
Joined: Thu Jul 25, 2013 9:20 am

Re: compile libcitadel

Postby WarheadsSE » Thu Jul 25, 2013 7:37 pm

Yes, I had to do a good chunk of work to make it work, and it is *really* a PITA.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: compile libcitadel

Postby Kabbone » Thu Jul 25, 2013 7:51 pm

I thought I can avoid the configuring of Dovecote :P but finally it seems I have to do it
Kabbone
 
Posts: 155
Joined: Thu Jul 25, 2013 9:20 am

Re: compile libcitadel

Postby pepedog » Thu Jul 25, 2013 8:57 pm

Dovecot is easy, as I remember one line gets it going.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: compile libcitadel

Postby Kabbone » Thu Jul 25, 2013 10:00 pm

Ok you're right, the problem isn't dovecot, it's Postfix :D
Kabbone
 
Posts: 155
Joined: Thu Jul 25, 2013 9:20 am

Re: compile libcitadel

Postby Geoff » Fri Jul 26, 2013 2:13 am

I use exim instead of postfix, and it works fine. It has a learning curve, though. I also use dovecot.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: compile libcitadel

Postby Kabbone » Tue Aug 06, 2013 9:45 pm

Btw finally I have managed to get the whole Mailserver running with postfix, dovecot and roundcube. It works pretty well with a 1024 bit Certificate.
Kabbone
 
Posts: 155
Joined: Thu Jul 25, 2013 9:20 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 5 guests