[uClibc]Shared libm issue on SH
M. R. Brown
mrbrown at 0xd6.org
Wed Jan 9 11:04:30 UTC 2002
* Erik Andersen <andersen at codepoet.org> on Wed, Jan 09, 2002:
> On Thu Jan 03, 2002 at 10:50:54AM -0600, M. R. Brown wrote:
> > When building shared libraries for SH, I get the following mishap:
> >
> > if [ -f libm.a ] ; then \
> > ../extra/gcc-uClibc/sh-uclibc-gcc --uclibc-use-build-dir -s -Wl,-warn-common -nostdlib -shared -o libm-0.9.8.so \
> > -Wl,-soname,libm.so.0 -Wl,--whole-archive \
> > libm.a -Wl,--no-undefined -lc; \
> > install -d ../lib; \
> > rm -f ../lib/libm-0.9.8.so ../lib/libm.so.0; \
> > install -m 644 libm-0.9.8.so ../lib; \
> > (cd ../lib && ln -sf libm-0.9.8.so libm.so); \
> > (cd ../lib && ln -sf libm-0.9.8.so libm.so.0); \
> > fi;
> > /home/mrbrown/src/cvs/uClibc/uClibc//lib/libc.so: undefined reference to `main'
> > collect2: ld returned 1 exit status
> > install: cannot stat `libm-0.9.8.so': No such file or directory
>
> Could you try again with the latest and let me know if
> it is fixed now?
>
Yes, the build portion is fixed, but I still get segmentation faults when
executing any app that is dynamically linked against libm-0.9.8.so
(statically-linked apps function normally).
Any ideas?
M. R.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20020109/09933c2a/attachment.pgp
More information about the uClibc
mailing list