From: Tony N. <ton...@ge...> - 2009-07-11 15:16:59
|
On 09-07-11 06:36:52, Takis Peppas wrote: > 2009/7/11 Takis Peppas <tak...@gm...> > > > > Thank you for the immediate replies, > > > > installing e2fslibs-dev took care of the configure task > > (./configure --enable-static --disable-transselinux), but I get the > > attached error when make.. Simplest would be to remove --enalbe-static, but if you insist on it, you will need to install the various *-static RPMs for the packages containing the non-static libs being used. You can list the available *-static libs with `yum list \*-static` and install all of them with `yum install \*-static`, though that will pull in lots of other stuff. Probably the libs you need would be the -static versions of libs listed on the failing link command, though "-Ldir" makes that harder to figure out. > > gcc -static -o dump itime.o main.o optr.o tape.o traverse.o > unctime.o ../common/dumprmt.o -L../compat/lib -lcompat -lext2fs > -lcom_err -lblkid -luuid -ldevmapper -lselinux -lsepol > > optr.o: In function `set_operators': > > /home/takis/dump-0.4b42/dump/optr.c:211: warning: Using 'getgrnam' > in statically linked applications requires at runtime the shared > libraries from the glibc version used for linking > > /home/takis/dump-0.4b42/dump/optr.c:212: warning: Using 'endgrent' > in statically linked applications requires at runtime the shared > libraries from the glibc version used for linking > > ../common/dumprmt.o: In function `rmtgetconn': > > /home/takis/dump-0.4b42/common/dumprmt.c:189: warning: Using > 'getpwuid' in statically linked applications requires at runtime the > shared libraries from the glibc version used for linking > > /home/takis/dump-0.4b42/common/dumprmt.c:178: warning: Using > 'getservbyname' in statically linked applications requires at runtime > the shared libraries from the glibc version used for linking > > /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libc.a(rcmd.o): > In > function `__validuser2_sa': > > (.text+0x447): warning: Using 'getaddrinfo' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > > /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libcom_err.a > (error_message.o): > In function `et_list_unlock': > > (.text+0x1b0): undefined reference to `sem_post' > > /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libcom_err.a > (error_message.o): > In function `fini_et_lock': > > (.text+0x1ce): undefined reference to `sem_destroy' > > /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libcom_err.a > (error_message.o): > In function `setup_et_lock': > > (.text+0x1fe): undefined reference to `sem_init' > > /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libcom_err.a > (error_message.o): > In function `et_list_lock': > > (.text+0x22d): undefined reference to `sem_wait' -- ____________________________________________________________________ TonyN.:' <mailto:ton...@ge...> ' <http://www.georgeanelson.com/> |