Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

03.01.2013, 17:17

Linker Problem

Hallo Leute

Ich habe ein Problem beim compilieren, genauergesagt wenn der linker los legt.
Das Problem ist nicht zarafa spezifisch sondern irgendwas im System scheint hier nicht in Ordnung zu sein.
Wie kann man sich er Lösung hierfür überhaupt nähern?

Der Fehler:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
...
Making all in zarafa-search
make[3]: Entering directory `/var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2/ECtools/zarafa-search'
  CXX	zarafa-search.o
  CXX	ECSearcher.o
  CXX	ECSearcherRequest.o
  CXXLD  zarafa-search
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/bin/ld: /usr/lib/libcrypto.so: undefined reference to symbol 'deflate'
/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'deflate' is defined in DSO /lib/libz.so.1 so try adding it to the linker command line
/lib/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [zarafa-search] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2/ECtools/zarafa-search'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2/ECtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2'
make: *** [all] Error 2
emake failed
 * ERROR: net-mail/zcp-7.1.2 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 * 	ebuild.sh, line  93:  Called src_compile
 *   environment, line 5668:  Called die
 * The specific snippet of code:
 *   	emake || die "emake failed"
 *
 * If you need support, post the output of `emerge --info '=net-mail/zcp-7.1.2'`,
 * the complete build log and the output of `emerge -pqv '=net-mail/zcp-7.1.2'`.
 * This ebuild is from an overlay named 'gentoo-extras-overlay': '/var/lib/layman/gentoo-extras-overlay/'
 * The complete build log is located at '/var/tmp/portage/net-mail/zcp-7.1.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/zcp-7.1.2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2'
 * S: '/var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2'

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
emerge --info
Portage 2.1.11.38 (default/linux/x86/10.0/server, gcc-4.6.3, glibc-2.16.0, 3.6.6-gentoo i686)
=================================================================
System uname: Linux-3.6.6-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.00GHz-with-gentoo-2.2
Timestamp of tree: Sat, 29 Dec 2012 10:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.8 [enabled]
app-shells/bash:      	4.2_p39-r1
dev-java/java-config: 	2.1.12-r1
dev-lang/python:      	2.7.3-r3, 3.1.4-r3, 3.2.3-r2
dev-util/ccache:      	3.1.8
dev-util/cmake:       	2.8.10.2
dev-util/pkgconfig:   	0.27.1
sys-apps/baselayout:  	2.2
sys-apps/openrc:      	9999
sys-apps/sandbox:     	2.6
sys-devel/autoconf:   	2.13, 2.69
sys-devel/automake:   	1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:   	2.23.1
sys-devel/gcc:        	4.4.5, 4.5.3-r2, 4.6.3
sys-devel/gcc-config: 	1.8
sys-devel/libtool:    	2.4.2
sys-devel/make:       	3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:       	2.16.0
Repositories: gentoo gentoo-extras-overlay local
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.osuosl.org/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-extras-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi additions addns ads alsa amavis amr amuled apache2 apm archive asf authdaemon automount avahi avi bash-completion berkdb bidi bitmap-fonts bittorrent bluetooth browserplugin buttons bzip2 cairo caps cdda cddb cdio cdparanoia cdr cli client clucene cmake config-file consolekit cpdflib cpudetection cracklib crypt ctype cups curl cxx daap dba dbm dbus dcc dedicated device-mapper dga dhcp dio dirac directfb diskio divx dlz dns dri dts dv dvb dvd dvdr dvdread dynamicplugin encode etcproposals examples exif expat extensions extraengine extras fam fbcondecor ffmpeg fftw filter filter_default flac flash fontconfig foomaticdb fortran fpx freetype ftp fuse gd gdbm gdm gdu gecko-sdk geoip gif glib glitz gmedia gocr gpm gs gssapi h323 hal hash hddtemp hdri howl-compat htmlhandbook http http-forms http-server httpd hybrid iconv icu id3tag idea idn imagemagick imap imlib imlib2 inline innodb iproute2 ipv6 irmc ithreads java javascript jbig jpeg jpeg2k json kdgraphics kdrive kerberos lame latin1 lcms ldap ldbm libcaca libextractor libg++ libkms libnotify libsysfs libwww live lm_sensors log logitech-mouse logrotate lua lzma lzo mad maildir matroska mdnsresponder-compat mhash mikmod mmbox mmx mng modules motif mp3 mp4 mpd mpeg mpeg2dec mudflap musepack musicbrainz mysql nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas nat ncurses nepomuk net netboot network newspr nls nptl nptlonly nsplugin ocrad ogg oggvorbis openexr opengl openmp openssl optimisememory optimize pam pam-mysql pango passwordsave pch pcre pdf pdflib pdo pear perl pertty phonon php php5 pipechan plasma png pop posix ppds pppd python pyzor qmake quicktime razor rc5 rdesktop readline remote remote-gui rle rrdtool rtsp samba sasl scanner schroedinger screen secure-delete semantic-desktop session shout sip skins slp smime smtp snmp sockets socks5 speex spl sql sqlite sse sse2 ssh ssl static-libs stats stream svg svga taglib tcl tcltk tcpd tesseract theora threads tiff tk tools truetype truetype-fonts twolame type1-fonts unicode urandom usb userlocales utempter v4l v4l2 vcd vidcap videos visualization vlm vorbis wav webdav webinterface webkit win32codecs wmf wmp wxwindows x264 x86 xa xattr xcb xine xinerama xml xml2 xmlreader xmlrpc xmlwriter xpm xsl xv xvid xvimlib zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest auth_kerb authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# ldd /lib/libz.so.1
    	linux-gate.so.1 (0xb7708000)
    	libc.so.6 => /lib/libc.so.6 (0xb7538000)
    	/lib/ld-linux.so.2 (0xb7709000)

# ldd /usr/lib/libcrypto.so
    	linux-gate.so.1 (0xb76e2000)
    	libdl.so.2 => /lib/libdl.so.2 (0xb7513000)
    	libz.so.1 => /lib/libz.so.1 (0xb74fd000)
    	libc.so.6 => /lib/libc.so.6 (0xb7360000)
    	/lib/ld-linux.so.2 (0xb76e3000)

# equery belongs /usr/lib/libcrypto.so
 * Searching for /usr/lib/libcrypto.so ...
dev-libs/openssl-1.0.1c (/usr/lib/libcrypto.so.1.0.0)
dev-libs/openssl-1.0.1c (/usr/lib/libcrypto.so -> libcrypto.so.1.0.0)


Ich habe zlib und openssl schon neu gebaut. Mehr fiel mir bisher nicht ein.

Hat jemand weiterführende Ideen?

greetz, dR0PS

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »dR0PS« (03.01.2013, 17:25)


2

04.01.2013, 08:44

Willkommen im Forum.

Wo hast du das ebuild her? Overlay? Gib mir mal einen Link.

Ich denke, dass grundsätzlich alles ok ist, aber die zcp Leute (also Upstream) den Bock hier haben. Ich schätze in den Buildfiles fehlt irgendwo einfach ein "-lz" hinten dran. Aber ohne ebuild und Source ist das eine recht vage Analyse.
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

3

04.01.2013, 10:37

Auf die Sache mit dem fehlenden -lz bin ich auch schon gestossen, allerdings fehlen mir die Kenntnisse wie ich das einbauen soll und an welchen Stellen es fehlt.
Ich weiss nur das das 7.1.2 ebuild vor 8 Tagen erst erstellt wurde un die ebuilds aus dem repo eigentlich immer gut funktionierten.
Daher vermute ich doch das es eher mit meinem System zu tun hat. Da mag ich mich auch irren.

obwohl.... Ich kann auch nicht mehr das zcp 7.1.1 ebuild mergen, was vorher mal funktionierte. Also auch ein Argument das es eher an meinem System liegt. ;(

gentoo-extras-overlay

https://github.com/hdecarne/gentoo-extra…cp-7.1.2.ebuild

4

05.01.2013, 11:33

Zitat

allerdings fehlen mir die Kenntnisse wie ich das einbauen soll und an welchen Stellen es fehlt.

Mir nicht =)


Doch es ist ein wenig grundlegender ... ich bin der Meinung in der configure.ac der 7.1.2 version fehlt das:

Quellcode

1
AC_CHECK_LIB([z], [deflate], [SSL_LIBS="$SSL_LIBS -lz"], AC_MSG_ERROR([required library libz missing or unusable]))
in Zeile 586

Sprich als patch:

Quellcode

1
2
3
4
5
6
7
8
9
--- zarafa-7.1.2/configure.ac   2013-01-05 11:30:45.697302343 +0100
+++ zarafa-7.1.2/configure.ac.new       2013-01-05 11:30:37.634199036 +0100
@@ -586,6 +586,7 @@
 # ssl before crypto, because of dependancies
 AC_CHECK_LIB([ssl], [SSL_accept], [SSL_LIBS="$SSL_LIBS -lssl"], AC_MSG_ERROR([required library libssl missing or unusable]))
 AC_CHECK_LIB([crypto], [BIO_accept], [SSL_LIBS="$SSL_LIBS -lcrypto"], AC_MSG_ERROR([required library libcrypto missing or unusable]))
+AC_CHECK_LIB([z], [deflate], [SSL_LIBS="$SSL_LIBS -lz"], AC_MSG_ERROR([required library libz missing or unusable]))
 AC_SUBST(SSL_LIBS)
 LIBS=$LIBS_system


Wenn du das in deinem /var/tm/portage/net-mail/zcp/ (usw.usf) anpasst, musst du anschließend aber wieder ein ein "autoconf" in diesem Verzeichnis anstossen und dann ein "./configure" gefolgt von einem "make" und und und ...

Da wäre vlt. leichter du stosst den Gentoo-Maintainer via Mail an ... oder gleich direkt upstream.
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

5

09.01.2013, 01:18

Hallo dyle

Ich habe den patch aus dem ebuild erfolgreich angewendet. Wenn jetzt alles entpackt wurde, kommt der Compiler auf einmal auf die Idee Zarafa-Addons mit kompilieren zu wollen, wobei es nicht mal die Verzeichnisse zu den Addons gibt. Das hat er vor dem Patch nicht versucht. Das Auslassen dieser Addons wird eigentlich durch --disable-release --enable-oss gewährleistet. Durch den Patch will er die configure flags doch glatt ignorieren.
Wenn das ebuild startet wird die selbe configurezeile wie vorher, als er zumindest weiter kam, angezeigt.

merkwürdig. 8|

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2 ...
make -j1
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2/autoconf/missing --run aclocal-1.11 -I autoconf
main::scan_file() called too early to check prototype at /usr/bin/aclocal-1.11 line 643.
 cd . && /bin/sh /var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2/autoconf/missing --run automake-1.11 --foreign
ECtools/Makefile.am:2: required directory ECtools/zarafa-backup does not exist
ECtools/Makefile.am:2: required directory ECtools/zarafa-report does not exist
ECtools/Makefile.am:2: required directory ECtools/zarafa-msr does not exist
ECtools/Makefile.am:2: required directory ECtools/za-extra does not exist
ECtools/Makefile.am:2: required directory ECtools/zarafa-ocf does not exist
configure.ac:792: required file `liblicense/Makefile.in' not found
configure.ac:792: required file `licensed/Makefile.in' not found
configure.ac:792: required file `ECtools/zarafa-backup/Makefile.in' not found
configure.ac:792: required file `ECtools/zarafa-backup/helpers/Makefile.in' not found
configure.ac:792: required file `ECtools/zarafa-report/Makefile.in' not found
configure.ac:792: required file `ECtools/zarafa-msr/Makefile.in' not found
configure.ac:792: required file `ECtools/zarafa-ocf/Makefile.in' not found
configure.ac:792: required file `ECtools/za-extra/Makefile.in' not found
Makefile.am:4: required directory ./liblicense does not exist
Makefile.am:4: required directory ./licensed does not exist
make: *** [Makefile.in] Error 1
emake failed
 * ERROR: net-mail/zcp-7.1.2 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 * 	ebuild.sh, line  93:  Called src_compile
 *   environment, line 5673:  Called die
 * The specific snippet of code:
 *   	emake || die "emake failed"

6

09.01.2013, 07:29

=)

Ich guck mir das mal genauer an. IMHO ist es aber ein Upstream Bug. Aber gut.
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

7

11.01.2013, 11:48

Hallo dyle

bricht der emerge Prozess denn überhaupt auch bei dir an der selben Stelle ab? (7.1.2)
Ich habe ja immer noch das Gefühl, das bei mir irgendwelche "defaults" (z.B. ein defaultmässig gesetztes -lz) in meinem System verbogen sind.

Grüße
dR0PS

8

12.01.2013, 09:29

Hm, das ist schon ein sehr, sehr sensibles System. Die Codequalität ist da schon etwas schlecht. Wundert mich nicht, das es zarafa bis jetzt nicht in den portage tree geschafft hat.

Bsp.:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# USE="-python" ebuild /usr/local/portage/gentoo-extras-overlay/net-mail/zcp/zcp-7.1.2.ebuild compile
...
Boost           :
 Flags          :
 FS ldflags     :       -L/usr/local/lib
 FS libs        :       -lboost_filesystem-mt
ICU libs        :
Swig            :       no
Python module   :       no

>>> Source configured.
...
make[4]: Entering directory `/var/tmp/portage/net-mail/zcp-7.1.2/work/zarafa-7.1.2/spooler'
  CXX    DAgent.o
  CXX    rules.o
  CXX    LMTP.o
  CXX    PyMapiPlugin.o
  CXX    archive.o
PyMapiPlugin.cpp:52:20: fatal error: Python.h: No such file or directory
compilation terminated.
make[4]: *** [PyMapiPlugin.o] Error 1
make[4]: *** Waiting for unfinished jobs....
...

Das ist ein Fehler mit deaktivierten python ... und er versucht *trotzdem* mit Python zu kompilieren.

Sorry, das ich das sage, aber diese Software ist übel. Ich dachte auch schon mal daran mit zarafa zu spielen. Aber jetzt weis ich es besser. Wenn man da an einem Ende zieht geht woanders was kaputt. Das zu reparieren ... dafür fehlt mir die Zeit. Das nervt einfach.

Zurück zu deinen Thema. Du könnest mal versuchen nicht zarafa (was auch bei deinem Thema kaputt ist) zu reparieren sondern anders rum: fange frisch an und kappe die Anhängigkeit von libcrypto zur libz. Sprich:

Quellcode

1
# USE="-zlib" emerge openssl
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>