LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-22-2006, 08:55 AM   #1
shankara
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
Question how to build e2fsprogs-1.35.tar.gz statically


hello,
i need info about how to build e2fsprogs statically, which has all the programs like

badblocks, blkid, chattr, compile_et, debugfs, dumpe2fs, e2fsck, e2image, e2label, findfs, fsck, fsck.ext2, fsck.ext3, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3, mklost+found, resize2fs, tune2fs, and uuidgen.

i tried to build statically but i am able to do this only for
fsck and mke2fs.static.

i think before executing this
'make LDFLAGS_STATIC=-static'
i have to set some variables . i dont know that.

if i did
./configure
and
make LDFLAGS_STATIC=-static

i am able to get only 2 programs i. e. fsck and mke2fs.static.

please help me

regards
shankar
 
Old 03-23-2006, 06:14 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Usually you specify any extra flags like 'export CFLAGS=-static' before you ./configure --options (and add --enable-static=yes just to make sure). If it still won't work please post your configure line and any errors.
 
Old 03-23-2006, 10:52 PM   #3
shankara
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Original Poster
Rep: Reputation: 0
e2fsprogs connot build statically .

hello,
i tried this
export CFLAGS=-static
then i did ./configure
but it's still not creating other files. not even dynamically linked.

this is the output of ./configure --enable-static=yes

root @ wrkstn6% ./configure --enable-static=yes
creating cache ./config.cache
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
Generating configuration file for e2fsprogs version 1.35
Release date is February, 2004
checking host system type... i686-pc-linux-gnu
CC defaults to cc
checking for gcc... cc
checking whether the C compiler (cc -static ) works... yes
checking whether the C compiler (cc -static ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
LD defaults to /usr/bin/ld
checking how to run the C preprocessor... cc -E
checking for linux/fs.h... yes
checking for additional special compiler flags... (none)
Disabling compression support by default
Enabling htree directory support by default
Disabling htree clearing by default
Using EVMS 1.2.0 ABI by default
Disabling DLL shared libraries by default
Disabling ELF shared libraries by default
Disabling BSD shared libraries by default
Disabling profiling libraries by default
Disabling checker libraries by default
Disabling journal debugging by default
Disabling blkid debugging by default
Disabling testio debugging by default
Enabling swapfs support by default
Enabling debugfs support by default
Enabling e2image support by default
Enabling e2resize support by default
Building e2fsck statically by default
Building fsck wrapper by default
Using standard bitmask operations by default
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for shared library run path origin... done
checking whether make sets ${MAKE}... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for strerror in -lcposix... no
checking for ANSI C header files... yes
checking for working const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for argz.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 1.875, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether make sets ${MAKE}... (cached) yes
checking for ln... /bin/ln
checking whether ln -s works... yes
checking for mv... /bin/mv
checking for cp... /bin/cp
checking for rm... /bin/rm
checking for chmod... /bin/chmod
checking for awk... /bin/awk
checking for sed... /bin/sed
checking for perl... /usr/bin/perl
checking for ldconfig... /sbin/ldconfig
checking build system type... i686-pc-linux-gnu
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for a BSD compatible install... /usr/bin/install -c
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdarg.h... yes
checking for errno.h... yes
checking for malloc.h... (cached) yes
checking for mntent.h... yes
checking for paths.h... yes
checking for dirent.h... yes
checking for getopt.h... yes
checking for setjmp.h... yes
checking for signal.h... yes
checking for termios.h... yes
checking for linux/fd.h... yes
checking for linux/major.h... yes
checking for sys/disk.h... no
checking for sys/disklabel.h... no
checking for sys/ioctl.h... yes
checking for sys/mkdev.h... no
checking for sys/mount.h... yes
checking for sys/sockio.h... no
checking for sys/socket.h... yes
checking for sys/sysmacros.h... yes
checking for sys/time.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for sys/wait.h... yes
checking for sys/resource.h... yes
checking for net/if.h... yes
checking for netinet/in.h... yes
checking for vprintf... yes
checking whether d_reclen declared in dirent... yes
checking whether ssize_t declared... yes
checking whether llseek declared in unistd.h... no
checking whether lseek64 declared in unistd.h... yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking whether byte ordering is bigendian... no
checking for inttypes.h... yes
checking for intptr_t... no
checking whether struct stat has a st_flags field... no
checking for chflags... no
checking for getrusage... yes
checking for llseek... yes
checking for lseek64... yes
checking for open64... yes
checking for getmntinfo... no
checking for strtoull... yes
checking for strcasecmp... (cached) yes
checking for srandom... yes
checking for fchown... yes
checking for mallinfo... yes
checking for fdatasync... yes
checking for strnlen... yes
checking for strptime... yes
checking for sysconf... yes
checking for pathconf... yes
checking for posix_memalign... yes
checking for memalign... yes
checking for valloc... yes
checking for socket in -lsocket... no
checking for dlopen in -ldl... yes
checking for optreset... no
On linux-gnu systems, root_prefix defaults to ''
On linux-gnu systems, prefix defaults to /usr
...and mandir defaults to /usr/share/man
checking whether linker accepts -static... yes
updating cache ./config.cache
creating ./config.status
creating MCONFIG
creating Makefile
creating e2fsprogs.spec
creating util/Makefile
creating util/subst.conf
creating util/gen-tarball
creating lib/et/Makefile
creating lib/ss/Makefile
creating lib/ext2fs/Makefile
creating lib/e2p/Makefile
creating lib/uuid/Makefile
creating lib/uuid/uuid_types.h
creating lib/blkid/Makefile
creating lib/blkid/blkid_types.h
creating lib/evms/Makefile
creating misc/Makefile
creating ext2ed/Makefile
creating e2fsck/Makefile
creating debugfs/Makefile
creating tests/Makefile
creating tests/progs/Makefile
creating resize/Makefile
creating doc/Makefile
creating intl/Makefile
creating po/Makefile.in
creating po/POTFILES
creating po/Makefile
root @ wrkstn6%
 
Old 03-24-2006, 03:19 AM   #4
shankara
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Original Poster
Rep: Reputation: 0
e2fsprogs connot build statically .

hey,
the other programs are hard links to mke2fs, e2fsck, and tune2fs
 
Old 03-24-2006, 07:33 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
ROTFL. Yeah, you're right. Now go and try build static symlinks :-]
 
Old 03-27-2006, 12:09 AM   #6
shankara
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Original Poster
Rep: Reputation: 0
cannot statically build tune2fs

hello,
mke2fs and e2fsck are created statically.
but i am not able to build tune2fs statically.
can you help me.
regards shankar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
e2fsprogs blocking apt-get nalmeth Debian 21 12-01-2005 10:36 AM
How to build RPM from Tar.gz fireedo SUSE / openSUSE 4 05-13-2005 02:00 PM
Tar-1.13.25 Build Error Smartcat99S Linux From Scratch 1 04-01-2004 03:53 PM
Can't Compile e2fsprogs 1.34 TruckStuff Linux - Software 0 02-16-2004 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration