[Top][All Lists]

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


From: TenThumbs
Subject: --enable-part-static
Date: Sat, 14 Dec 2002 10:59:48 -0500 (EST)

I see you know that it segfaults. It's actually the dynamic linker
looping and running out of stack space. Parted never runs.

This is happening because you're linking the wrong way. You should be
using -Bstatic to tell ld when to switch to static linking and -Bdynamic
to switch back.

Here's a test script that illustrates the method.

/usr/new/gcc3.2.1/bin/gcc -g -Wall -W -O -D_REENTRANT  \
-D_FILE_OFFSET_BITS=64 -DLOCALEDIR=\"/usr/share/locale\"  \
-DLOCALEDIR=\"/usr/share/locale\" -W -Wall -Wno-unused -Wno-switch  \
-Wno-format -Werror -o parted command.o parted.o strlist.o ui.o  \
../libparted/.libs/libparted.a  \
-Wl,-Bstatic -luuid -lreadline  -ldl -lncurses  -Wl,-Bdynamic  \

If you omit -Bdynamic then the implicit -lc will also be statically
linked which may be a feature.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]