Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: libelf-0.8.10   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources &&
rm -rf libelf-0.8.10 &&
tar -xzf libelf-0.8.10.tar.gz &&
cd libelf-0.8.10 &&
./configure --prefix=/usr --bindir=/bin &&
make &&
make install

The output should look something like this:

creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /bin/install -c
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for ANSI C header files... yes
checking for unistd.h... yes
checking for stdint.h... yes
checking for fcntl.h... yes
checking for elf.h... yes
checking for sys/elf.h... no
checking for link.h... yes
checking for sys/link.h... no
checking if gcc can compile elf.h... yes
checking for ar.h... yes
checking for libelf.h... yes
checking for nlist.h... yes
checking for gelf.h... yes
checking whether to install ,  and
... no
checking for working const... yes
checking for off_t... yes
checking for size_t... yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking size of __int64... 0
checking for struct Elf32_Dyn... yes
checking for struct nlist in elf.h... no
checking for struct Elf64_Ehdr... yes
checking for Elf64_Addr... yes
checking for struct Elf64_Rel... yes
checking for Elf32_Verdef... yes
checking for Elf64_Verdef... yes
checking for SHT_SUNW_verdef... no
checking for SHT_GNU_verdef... yes
checking for 64-bit integer... long long
checking for 32-bit integer... int
checking for 16-bit integer... short
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for ftruncate... yes
checking for memcmp... yes
.
.
.
ranlib libelf.a
gcc -shared -Wl,-soname,libelf.so.0 -o libelf.so.0.8.10
begin.os cntl.os end.os errmsg.os errno.os fill.os flag.os
getarhdr.os getarsym.os getbase.os getdata.os getident.os
getscn.os hash.os kind.os ndxscn.os newdata.os newscn.os
next.os nextscn.os rand.os rawdata.os rawfile.os strptr.os
update.os version.os checksum.os 32.fsize.os 32.getehdr.os
32.getphdr.os 32.getshdr.os 32.newehdr.os 32.newphdr.os
32.xlatetof.os cook.os data.os input.os assert.os nlist.os
opt.delscn.os x.remscn.os x.movscn.os x.elfext.os
64.xlatetof.os gelfehdr.os gelfphdr.os gelfshdr.os
gelftrans.os swap64.os verdef_32_tof.os verdef_32_tom.os
verdef_64_tof.os verdef_64_tom.os  -lc
if test ""libelf.so.0"" = ""libelf.so.0.8.10""; then true;
else \
  rm -f libelf.so.0 && ln -s libelf.so.0.8.10 libelf.so.0;
\
fi
if test ""libelf.so"" = ""libelf.so.0.8.10""; then true;
else \
  rm -f libelf.so && ln -s libelf.so.0.8.10 libelf.so; \
fi
make[1]: Leaving directory `/sources/libelf-0.8.10/lib'
making all in po
make[1]: Entering directory `/sources/libelf-0.8.10/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/sources/libelf-0.8.10/po'
making install in lib
make[1]: Entering directory `/sources/libelf-0.8.10/lib'
dirs=""/usr/lib /usr/include /usr/include/libelf""; for dir
in $dirs; do \
    /bin/sh ../mkinstalldirs $dir; \
done
/bin/install -c -m 644 libelf.a /usr/lib
cd /usr/lib && ranlib libelf.a
files=""libelf.h nlist.h gelf.h sys_elf.h elf_repl.h""; for
file in $files; do \
  if test -r $file; then \
    /bin/install -c -m 644 $file /usr/include/libelf; \
  else \
    /bin/install -c -m 644 ./$file /usr/include/libelf; \
  fi; \
done
/bin/install -c libelf.so.0.8.10 /usr/lib
if test ""libelf.so.0"" = ""libelf.so.0.8.10""; then true;
else \
  cd /usr/lib && rm -f libelf.so.0 && ln -s
libelf.so.0.8.10 libelf.so.0; \
fi
if test ""libelf.so"" = ""libelf.so.0.8.10""; then true;
else \
  cd /usr/lib && rm -f libelf.so && ln -s libelf.so.0.8.10
libelf.so; \
fi
make[1]: Leaving directory `/sources/libelf-0.8.10/lib'
making install in po
make[1]: Entering directory `/sources/libelf-0.8.10/po'
catalogs=""de.gmo""; for cat in $catalogs; do \
  lang=`echo $cat | sed 's,.gmo$,,'`; \
  dir=/usr/share/locale/$lang/LC_MESSAGES; \
  /bin/sh ../mkinstalldirs $dir; \
  if test -r $cat; then \
    /bin/install -c -m 644 $cat $dir/libelf.mo; \
  else \
    /bin/install -c -m 644 ./$cat $dir/libelf.mo; \
  fi; \
done
make[1]: Leaving directory `/sources/libelf-0.8.10/po'
/bin/sh ./mkinstalldirs /usr/lib/pkgconfig
/bin/install -c -m 644 libelf.pc /usr/lib/pkgconfig


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS