From: Takis P. <tak...@gm...> - 2009-07-11 10:36:59
|
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.. > > By the way I was really surprised when realized that dump/restore are not part of the linux core. They have saved my a,, many times in BSD. > > All the best, > Takis > > > make[1]: Entering directory `/home/takis/dump-0.4b42/dump' > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. -I../compat/include -I../dump -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" -D_DUMP_VERSION=\"0.4b42\" itime.c -o itime.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. -I../compat/include -I../dump -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" -D_DUMP_VERSION=\"0.4b42\" main.c -o main.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. -I../compat/include -I../dump -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" -D_DUMP_VERSION=\"0.4b42\" optr.c -o optr.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. -I../compat/include -I../dump -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" -D_DUMP_VERSION=\"0.4b42\" tape.c -o tape.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. -I../compat/include -I../dump -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" -D_DUMP_VERSION=\"0.4b42\" traverse.c -o traverse.o > gcc -c -D_BSD_SOURCE -D_USE_BSD_SIGNAL -g -O2 -pipe -I.. -I../compat/include -I../dump -DRDUMP -DRRESTORE -DLINUX_FORK_BUG -DHAVE_LZO -D_PATH_DUMPDATES=\"/usr/local/etc/dumpdates\" -D_DUMP_VERSION=\"0.4b42\" unctime.c -o unctime.o > 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' > collect2: ld returned 1 exit status > make[1]: *** [dump] Error 1 > make[1]: Leaving directory `/home/takis/dump-0.4b42/dump' > make: *** [all] Error 1 > root@dovey:~/dump-0.4b42# > > > > 2009/7/11 Tony Nelson <ton...@ge...> >> >> On 09-07-10 16:51:21, Kenneth Porter wrote: >> > --On Friday, July 10, 2009 11:24 PM +0300 Takis Peppas >> > <tak...@gm...> wrote: >> >> > > I'm trying to compile dump-0.4b42.tar.gz <http://sourceforge.net/ >> > > projects/dump/files/dump/dump-0.4b42.tar.gz/download> after >> > > imstalling (make install and make install-libs) the >> > > e2fsprogs-1.41.7.tar.gz >> > > <http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/ >> > > e2fsprogs-1.41.7.tar.gz/download> and this is the output of >> > > ./configure: >> ... >> > > checking for ext2fs/ext2fs.h... yes >> > > checking for ext2fs_open in -lext2fs... no >> > > configure: error: You need to install the Ext2fs libraries from the >> > > E2fsprogs distribution first - hint: make install-libs >> >> > I'm not familiar with how Ubuntu packages (I use a Red Hat derivative >> > that uses RPM packages), but check with your Ubuntu source to see how >> > to install e2fsprogs. That's needed by dump. >> >> He did install e2fsprogs with `make install-libs`, and its header was >> found but not the library (I think). If he looks at dump's config.log >> or ./configure he may find out where the library is expected to be. >> >> -- >> ____________________________________________________________________ >> TonyN.:' <mailto:ton...@ge...> >> ' <http://www.georgeanelson.com/> >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> Dump-users mailing list >> Dum...@li... >> https://lists.sourceforge.net/lists/listinfo/dump-users > |
From: Stelian P. <st...@po...> - 2009-07-11 11:41:52
|
On Sat, Jul 11, 2009 at 01:36:52PM +0300, 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.. > > By the way I was really surprised when realized that dump/restore are not part of the linux core. They have saved my a,, many times in BSD. Well, there is no such thing as the linux "core". Each Linux distributor (Ubuntu in your case, but there are quite a few others) chooses to include some packages into their distribution, each package being developped upstream by an independent group of developers. A (small) subset of those packages gets installed by default. Dump is packaged by most (all ?) of the Linux distributions. But it may not be installed by default. For example, if you just do a: sudo apt-get install dump on your Ubuntu distribution you will be able to install it. Of course, it may not be the latest version of dump... Stelian. -- Stelian Pop <st...@po...> |
From: Takis P. <tak...@gm...> - 2009-07-11 12:08:12
|
I see your point Stelian, "core" in my mind represents this small set of static build commands that will make possible the restoration of a system from scratch. Thanks, Takis 2009/7/11 Stelian Pop <st...@po...>: > On Sat, Jul 11, 2009 at 01:36:52PM +0300, 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.. > >> > By the way I was really surprised when realized that dump/restore are not part of the linux core. They have saved my a,, many times in BSD. > > Well, there is no such thing as the linux "core". Each Linux distributor > (Ubuntu in your case, but there are quite a few others) chooses to > include some packages into their distribution, each package being > developped upstream by an independent group of developers. A (small) > subset of those packages gets installed by default. > > Dump is packaged by most (all ?) of the Linux distributions. But it > may not be installed by default. > > For example, if you just do a: > sudo apt-get install dump > on your Ubuntu distribution you will be able to install it. > > Of course, it may not be the latest version of dump... > > Stelian. > -- > Stelian Pop <st...@po...> > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Dump-users mailing list > Dum...@li... > https://lists.sourceforge.net/lists/listinfo/dump-users > |
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/> |
From: Takis P. <tak...@gm...> - 2009-07-11 15:42:22
|
Thanks, I'll remote static, until I'm more familiar with Linux... All the best, Takis 2009/7/11 Tony Nelson <ton...@ge...>: > 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/> > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Dump-users mailing list > Dum...@li... > https://lists.sourceforge.net/lists/listinfo/dump-users > |
From: Stelian P. <st...@po...> - 2009-07-11 19:31:01
|
On Sat, Jul 11, 2009 at 11:16:39AM -0400, Tony Nelson wrote: > 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.. [...] > > > (.text+0x22d): undefined reference to `sem_wait' Looking again at the compile logs it looks like the static compile needs an explicit -lpthread at the end of the linker command line... -- Stelian Pop <st...@po...> |