[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libedit.so.2: cannot open shared object file



On Thu, 2011-09-01 at 15:59 +0200, Josip Rodin wrote:
> On Thu, Sep 01, 2011 at 10:15:23AM +0200, Frans van Berckel wrote:

> > 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.
> 
> Well, try find the build log for the package on sparc64 and see how it
> managed to build a package without error but also without a proper result? :)

Okay comparing the sparc64 and s390x log files. 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

*The Makefle in the lib does at the editline.c target*
editline.c: ${OSRCS} makelist Makefile
${HOST_SH} ${LIBEDITDIR}/makelist -e ${OSRCS:T} > ${.TARGET}.tmp && \
	    mv ${.TARGET}.tmp ${.TARGET}

*The makelist.sh automatically generate header files.*

*I am not able calling make, because it errors*
Makefile:9: *** missing separator.  Stop.

*Thats about this .if & .endif function*
OS!=	sh -c "case `uname -s` in GNU|GNU/*) echo GNU ;; *) uname -s ;;
esac"

.if ${OS} == GNU || ${OS} == Linux
CFLAGS += -include bsd/sys/cdefs.h -include bsd/stdio.h
MKLINT=no
.endif

Thanks,


Frans van Berckel


Reply to: