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

Re: header problem and linker script problem

On Tue, Dec 29, 1998 at 01:47:17PM +0900, kunihiro@zebra.org wrote:
> >Second problem:
> >libc.so linker script problem is back. Consider the following invocation:
> >i386-gnu-gcc -o ../lib/libncurses.so.4.2 -L../lib -L/gnu/lib -shared
> >-Wl,-soname,`basename ../lib/libncurses.so.4`,-stats ../obj_s/hardscroll.o
> >../obj_s/hashmap.o ../obj_s/lib_acs.o ../obj_s/lib_addch.o
> >[more object files follow]
> >
> >This does produce the error, that /lib/libc.so.0.2 could not be found,
> >although I have correct i386-gnu-gcc wrapper (with
> >-rpath=/usr/i386-gnu/lib).
> >
> >The only solution was to edit /gnu/lib/libc.so and change the absolute
> >paths.
> I also encounter this problem.  It seems that glibc's
> ${install_root}/lib/libc.so doesn't care about ${install_root} path.
> My setup is
> $ tar xvzf glibc-2.0.108.tar.gz
> $ cd glibc-2.0.108
> $ mkdir cross
> $ cd cross
> $ ../configure --prefix= --build=i586-pc-linux-gnu --host=i586-hurd-gnu \
>                --disable-profile
> $ make
> $ su
> # make install install_root=/usr/local/i586-hurd-gnu
> So I don't setup prefix at compile time.  When I install libraries I
> setup installation path to ${install_root}.  Do you setup glibc like
> me?  If so this problem may common one...

I use the setup by Gordon Matzigkeit, he should comment here. However, I
have a /usr/lib/gcc-lib/i386-gnu/ that looks like the
following (adfding SEARCH_DIR here didn't help).

/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
GROUP ( /usr/i386-gnu/lib/libc.so.0.2 /usr/i386-gnu/lib/libcrt_nonshared.a )


"Rhubarb is no Egyptian god."        Debian GNU/Linux        finger brinkmd@ 
Marcus Brinkmann                   http://www.debian.org    master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de                        for public  PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       PGP Key ID 36E7CD09

Reply to: