Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31561 - pth version causes problem for gpgme.
Summary: pth version causes problem for gpgme.
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Bart Verwilst
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-19 18:41 UTC by Lim Swee Tat (RETIRED)
Modified: 2004-08-27 03:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lim Swee Tat (RETIRED) gentoo-dev 2003-10-19 18:41:18 UTC
When compiling gpgme during a emerge -e world on my machine, it stopped at this.

checking for GNU Pth... *FAILED*
 | Found Pth version GNU Pth . (), but required at least version 1.2.0.
 | Upgrade Pth under /usr to 1.2.0 or higher first, please.

My solution is to add a line in gpgme.ebuild to include a line that removes the
check for version 1.2.0.

So can you either fix pth or gpgme?

Reproducible: Always
Steps to Reproduce:
1. emerge pth
2. emerge gpgme
3. watch the fireworks fly
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-20 02:59:21 UTC
working fine here, try to recompile pth
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-25 05:53:05 UTC
see last comment
Comment 3 George Shapovalov (RETIRED) gentoo-dev 2003-11-27 16:39:05 UTC
Well, doesn't here, getting the same error. Moreover:

groug gpgme-0.4.0 # pth-config --version
GNU Pth . ()

So, this is looking more like Pth problem.
(And yea, I rebuilt pth numerous times, both 1.4.0 and 1.4.1).

This is on a freshly built system (bootstrapped off the stage-1).
Relevant parts of emerge info:

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-test-r1)
=================================================================
System uname: 2.4.22-gentoo-test-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="~x86 x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
FEATURES="autoaddcvs sandbox digest distcc ccache noauto"
MAKEOPTS="-j2"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb readline arts bonobo svga guile X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt kde motif opengl aalib acl acpi acpi4linux afs alsa artswrappersuid atlas cdr cscope directfb dvd fam fbcon fbdev ffmpeg fftw flash freetype gd ggi glide gpg imap maildir matroska moznocompose moznoirc moznomail oav pcap pcmcia pda pic plotutils pnp radeon rage128 samba slp sse tcltk tiff trusted usb vim-with-x wavelan wmf Xaw3d xinerama xml xosd -libwww -slang"

George
Comment 4 Tom Wesley 2003-12-14 13:30:04 UTC
I also have this problem after switching on nptl...  Anyone know a fix?
Comment 5 Tom Wesley 2003-12-14 13:34:12 UTC
scratch that, for people that need it fixed, like me do the following:

vi `which pth-config`

edit line 44 to be:

pth_version="1.4.0 ()"

Something in the ebuild most be breaking this.  I'll take a look sometime, but I'm just a low user here... :-)
Comment 6 Greisberger Christophe 2004-02-24 14:35:28 UTC
Same for me, but the change in pth-config did not help :
# emerge =app-crypt/gpgme-0.3.14
-----8<-----
[blah blah]
-----8<-----
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for GNU Pth... *FAILED*
 | Found GNU Pth 1.4.0 under /usr, but
 | was unable to perform a sanity execution check. This usually
 | means that the GNU Pth shared library libpth.so is present
 | but $LD_LIBRARY_PATH is incomplete to execute a Pth test.
 | In this case either disable this test via --without-pth-test,
 | or extend $LD_LIBRARY_PATH, or build GNU Pth as a static
 | library only via its --disable-shared Autoconf option.
 | We used the following build environment:
 |    CC="gcc"
 |    CFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -mmmx -msse -msse2 -msse3 -m3dnow -mfpmath=sse -I/usr/include"
 |    LDFLAGS=" -L/usr/lib"
 |    LIBS=" -lpth"
 | See config.log for possibly more details.

!!! ERROR: app-crypt/gpgme-0.3.14 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed

# emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.22-gentoo-r1)
=================================================================
System uname: 2.4.22-gentoo-r1 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -mmmx -msse -msse2 -msse3 -m3dnow -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -mmmx -msse -msse2 -msse3 -m3dnow -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl alsa apm arts avi berkdb bonobo canna cdr cjk crypt cups curl dga directfb doc dvb dvd encode fbcon foomaticdb freewnn gdbm ggi gif gphoto2 gstreamer gtk guile imap imlib jack java joystick jpeg kde libg++ linguas_ar linguas_de linguas_en linguas_fr linguas_hu linguas_jp linguas_ro linguas_ru linguas_sp lirc mad maildir mbox mmx motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pdflib perl png postgres prelude python qt quicktime readline samba scanner sdl slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype unicode usb vim-with-x wmf x86 xinerama xml xml2 xmms xv zlib"

I Checked the config.log and did manually the test:
# cat >toto.c
#include <stdio.h>
#include <pth.h>

int main(int argc, char *argv)
{
    FILE *fp;
    if (!(fp = fopen("conftestval", "w")))
        exit(1);
    fprintf(fp, "hmm");
    fclose(fp);
    pth_init();
    pth_kill();
    if (!(fp = fopen("conftestval", "w")))
        exit(1);
    fprintf(fp, "yes");
    fclose(fp);
    exit(0);
}
^D
# gcc -march=athlon-xp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -mmmx -msse -msse2 -msse3 -m3dnow -mfpmath=sse -I/usr/include  -L/usr/lib -lpth toto.c -o toto
# ./toto
Illegal instruction

Errrrr. Illegal? It was not me mr. policeman, I swear!
Comment 7 Greisberger Christophe 2004-02-25 01:06:14 UTC
Forget about the "illegal instruction".
Wrong CFLAGS.
I thought that -msse2 and -msse3 worked on athlon-xp...
Comment 8 Daniel Black (RETIRED) gentoo-dev 2004-08-08 13:25:59 UTC
Can you try 0.3.14-r1? It works for me.

$ qpkg -f -v `which pth-config`
dev-libs/pth-1.4.0 *
bash-2.05b$           pth-config --version
GNU Pth 1.4.0 (24-Mar-2001)

If not re-emerge dev-libs/pth. pth has undertaken some changes since the bug was logged.
Comment 9 Daniel Black (RETIRED) gentoo-dev 2004-08-27 03:32:59 UTC
I checked again - works for me - reopen and assign to me if you still have problems.