Your message dated Wed, 21 Sep 2011 18:08:11 -0500
with message-id <[email protected]>
and subject line Re: libedit.so.2: cannot open shared object file
has caused the Debian Bug report #640848,
regarding [sparc64] libedit does not build PIC versions of system libraries
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
640848: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640848
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libedit2
Version: 2.11-20080614-3
Source: libedit
I am hitting a problem with libedit2 in the sparc64-port while
connecting postgresql.
~/# su - postgres
~$ psql template1
loading shared libraries: libedit.so.2: cannot open shared object file:
No such file or directory
So I found the installed libedit2_2.11-20080614-3_sparc64 package is
only symbolic linking, but does not holds the libedit.so.2.11 it selfs.
~/# ls /usr/lib/sparc64-linux-gnu/libedit.so.2* -l
lrwxrwxrwx 1 root root 15 Aug 29 10:02
/usr/lib/sparc64-linux-gnu/libedit.so.2 -> libedit.so.2.11
Checking the package, content shows it's true.
~# dpkg -c /var/cache/apt/archives/libedit2_2.11-20080614-3_sparc64.deb
drwxr-xr-x root/root 0 2011-08-29 10:02 ./
drwxr-xr-x root/root 0 2011-08-29 10:02 ./usr/
drwxr-xr-x root/root 0 2011-08-29 10:02 ./usr/share/
drwxr-xr-x root/root 0 2011-08-29 10:02 ./usr/share/doc/
drwxr-xr-x root/root 0 2011-08-29
10:02 ./usr/share/doc/libedit2/
-rw-r--r-- root/root 3550 2011-08-28
01:01 ./usr/share/doc/libedit2/changelog.Debian.gz
-rw-r--r-- root/root 1995 2011-08-27
07:34 ./usr/share/doc/libedit2/copyright
drwxr-xr-x root/root 0 2011-08-29 10:02 ./usr/lib/
drwxr-xr-x root/root 0 2011-08-29
10:02 ./usr/lib/sparc64-linux-gnu/
lrwxrwxrwx root/root 0 2011-08-29
10:02 ./usr/lib/sparc64-linux-gnu/libedit.so.2 -> libedit.so.2.11
Comparing the sparc64 and s390x buildd log files.
http://buildd.debian-ports.org/status/fetch.php?pkg=libedit&arch=sparc64&ver=2.11-20080614-3&stamp=1314612186
http://buildd.debian-ports.org/status/fetch.php?pkg=libedit&arch=s390x&ver=2.11-20080614-3&stamp=1314523135
It's make it clear, the source of both are the same.
The first diff I have found.
*This is what sparc64 does.*
building standard edit library
ranlib libedit.a
all ===> readline
touch build-stamp
fakeroot debian/rules binary-arch
dh_testdir
dh_testroot
dh_clean
*And this is what s390x does.*
building standard edit library
ranlib libedit.a
cc -g -O2 -include bsd/sys/cdefs.h -include bsd/stdio.h -Werror -I.
-I/build/buildd-libedit_2.11-20080614-3-s390x-AgoD3K/libedit-2.11-20080614/libedit
-I.
-I/build/buildd-libedit_2.11-20080614-3-s390x-AgoD3K/libedit-2.11-20080614/libedit
-c -fpic -DPIC editline.c -o editline.so
cc -g -O2 -include bsd/sys/cdefs.h -include bsd/stdio.h -Werror -I.
-I/build/buildd-libedit_2.11-20080614-3-s390x-AgoD3K/libedit-2.11-20080614/libedit
-I.
-I/build/buildd-libedit_2.11-20080614-3-s390x-AgoD3K/libedit-2.11-20080614/libedit
-c -fpic -DPIC tokenizer.c -o tokenizer.so
cc -g -O2 -include bsd/sys/cdefs.h -include bsd/stdio.h -Werror -I.
-I/build/buildd-libedit_2.11-20080614-3-s390x-AgoD3K/libedit-2.11-20080614/libedit
-I.
-I/build/buildd-libedit_2.11-20080614-3-s390x-AgoD3K/libedit-2.11-20080614/libedit
-c -fpic -DPIC history.c -o history.so
cc -g -O2 -include bsd/sys/cdefs.h -include bsd/stdio.h -Werror -I.
-I/build/buildd-libedit_2.11-20080614-3-s390x-AgoD3K/libedit-2.11-20080614/libedit
-I.
-I/build/buildd-libedit_2.11-20080614-3-s390x-AgoD3K/libedit-2.11-20080614/libedit
-c -fpic -DPIC readline.c -o readline.so
building shared object edit library
ranlib libedit_pic.a
building shared edit library (version 2.11)
cc -shared -Wl,-soname,libedit.so.2 -o libedit.so.2.11
-Wl,--whole-archive libedit_pic.a -Wl,--no-whole-archive -lbsd
-lcurses
all ===> readline
touch build-stamp
fakeroot debian/rules binary-arch
dh_testdir
dh_testroot
dh_clean
I spoke about this issue on the Debian Sparc list.
http://lists.debian.org/debian-sparc/2011/09/msg00000.html
Julien Cristau wrote about it - Looks like a bug in pmake:
NOPIC Do not build PIC versions of system libraries, and
do not build shared libraries. [set if ${MACHINE_ARCH}
is "sparc64", unset otherwise.]
That might make sense on NetBSD, it certainly doesn't on Debian.
--- End Message ---
--- Begin Message ---
Version: 2.11-20080614-3
On Thu, Sep 08, 2011 at 07:12:13PM +0200, Frans van Berckel wrote:
>On Thu, 2011-09-08 at 16:12 +0200, Aurelien Jarno wrote:
>>
>>I have filled bug#640919 with a patch, fixing this issue, as well as a
>>powerpc issue.
I just uploaded pmake_1.111-3.2 fixing bug#640919.
>Aurelien,
>
>Thanks, I just installed the new libedit2 package from debian-ports. Did
>you build pmake outside of the buildd? It's available in the repro true.
>
>Frans van Berckel
signature.asc
Description: Digital signature
--- End Message ---