FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CRUX > CRUX

 
 
LinkBack Thread Tools
 
Old 06-13-2010, 01:02 PM
Milan Buška
 
Default compile pkgutils with glibc 2.12

Hi.
I tested the system to compile pkgutils glibc v2.12, gcc v4.5.0, kernel v2.6.34.

pkgmk -d pkgutils-d 2> & 1 | tee log

=======> Building '/base/pkgutils/pkgutils#5.34.2-1.pkg.tar.xz'.
bsdtar -p -o -C /base/pkgutils/work/src -xf pkgutils-5.34.2.tar.xz
+ build
+ cd pkgutils-5.34.2
+ sed -i 's|/usr/man|/usr/share/man|' Makefile
+ make DESTDIR=/base/pkgutils/work/pkg install
g++ -O2 -march=core2 -mtune=core2 -pipe -fomit-frame-pointer -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION="5.34.2" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MM main.cc pkgutil.cc pkgadd.cc pkgrm.cc pkginfo.cc > .depend
g++ -O2 -march=core2 -mtune=core2 -pipe -fomit-frame-pointer -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION="5.34.2" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o main.o main.cc
g++ -O2 -march=core2 -mtune=core2 -pipe -fomit-frame-pointer -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION="5.34.2" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o pkgutil.o pkgutil.cc
g++ -O2 -march=core2 -mtune=core2 -pipe -fomit-frame-pointer -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION="5.34.2" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o pkgadd.o pkgadd.cc
g++ -O2 -march=core2 -mtune=core2 -pipe -fomit-frame-pointer -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION="5.34.2" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o pkgrm.o pkgrm.cc
g++ -O2 -march=core2 -mtune=core2 -pipe -fomit-frame-pointer -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION="5.34.2" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c -o pkginfo.o pkginfo.cc
g++ main.o pkgutil.o pkgadd.o pkgrm.o pkginfo.o -o pkgadd -static -larchive -lacl -lattr -lcrypto -llzma -lbz2 -lz
pkgutil.o: In function `pkgutil:kg_footprint(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const':
pkgutil.cc.text+0x8e15): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../libarchive.a(archive_write_disk_set_standard_looku p.o): In function `lookup_gid':
(.text+0x2ba): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
pkgutil.o: In function `pkgutil:kg_footprint(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const':
pkgutil.cc.text+0x8da7): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../libarchive.a(archive_write_disk_set_standard_looku p.o): In function `lookup_uid':
(.text+0x12a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
sed -e "s/#VERSION#/5.34.2/" pkgmk.in > pkgmk
sed -e "s/#VERSION#/5.34.2/" rejmerge.in > rejmerge
sed -e "s/#VERSION#/5.34.2/" pkgadd.8.in > pkgadd.8
sed -e "s/#VERSION#/5.34.2/" pkgrm.8.in > pkgrm.8
sed -e "s/#VERSION#/5.34.2/" pkginfo.8.in > pkginfo.8
sed -e "s/#VERSION#/5.34.2/" pkgmk.8.in > pkgmk.8
sed -e "s/#VERSION#/5.34.2/" rejmerge.8.in > rejmerge.8
sed -e "s/#VERSION#/5.34.2/" pkgmk.conf.5.in > pkgmk.conf.5
install -D -m0755 pkgadd /base/pkgutils/work/pkg/usr/bin/pkgadd
install -D -m0644 pkgadd.conf /base/pkgutils/work/pkg/etc/pkgadd.conf
install -D -m0755 pkgmk /base/pkgutils/work/pkg/usr/bin/pkgmk
install -D -m0755 rejmerge /base/pkgutils/work/pkg/usr/bin/rejmerge
install -D -m0644 pkgmk.conf /base/pkgutils/work/pkg/etc/pkgmk.conf
install -D -m0644 rejmerge.conf /base/pkgutils/work/pkg/etc/rejmerge.conf
install -D -m0644 pkgadd.8 /base/pkgutils/work/pkg/usr/share/man/man8/pkgadd.8
install -D -m0644 pkgrm.8 /base/pkgutils/work/pkg/usr/share/man/man8/pkgrm.8
install -D -m0644 pkginfo.8 /base/pkgutils/work/pkg/usr/share/man/man8/pkginfo.8
install -D -m0644 pkgmk.8 /base/pkgutils/work/pkg/usr/share/man/man8/pkgmk.8
install -D -m0644 rejmerge.8 /base/pkgutils/work/pkg/usr/share/man/man8/rejmerge.8
install -D -m0644 pkgmk.conf.5 /base/pkgutils/work/pkg/usr/share/man/man5/pkgmk.conf.5
ln -sf pkgadd /base/pkgutils/work/pkg/usr/bin/pkgrm
ln -sf pkgadd /base/pkgutils/work/pkg/usr/bin/pkginfo
=======> Build result:
drwxr-xr-x 0 root root 0 Jun 13 14:19 etc/
-rw-r--r-- 0 root root 398 Jun 13 14:19 etc/pkgmk.conf
-rw-r--r-- 0 root root 499 Jun 13 14:19 etc/pkgadd.conf
-rw-r--r-- 0 root root 67 Jun 13 14:19 etc/rejmerge.conf
drwxr-xr-x 0 root root 0 Jun 13 14:19 usr/
drwxr-xr-x 0 root root 0 Jun 13 14:19 usr/bin/
drwxr-xr-x 0 root root 0 Jun 13 14:19 usr/share/
drwxr-xr-x 0 root root 0 Jun 13 14:19 usr/share/man/
drwxr-xr-x 0 root root 0 Jun 13 14:19 usr/share/man/man5/
drwxr-xr-x 0 root root 0 Jun 13 14:19 usr/share/man/man8/
-rw-r--r-- 0 root root 595 Jun 13 14:19 usr/share/man/man8/pkgrm.8.gz
-rw-r--r-- 0 root root 1245 Jun 13 14:19 usr/share/man/man8/pkgmk.8.gz
-rw-r--r-- 0 root root 1479 Jun 13 14:19 usr/share/man/man8/pkgadd.8.gz
-rw-r--r-- 0 root root 1257 Jun 13 14:19 usr/share/man/man8/rejmerge.8.gz
-rw-r--r-- 0 root root 754 Jun 13 14:19 usr/share/man/man8/pkginfo.8.gz
-rw-r--r-- 0 root root 943 Jun 13 14:19 usr/share/man/man5/pkgmk.conf.5.gz
-rwxr-xr-x 0 root root 6094 Jun 13 14:19 usr/bin/rejmerge
-rwxr-xr-x 0 root root 15947 Jun 13 14:19 usr/bin/pkgmk
lrwxrwxrwx 0 root root 0 Jun 13 14:19 usr/bin/pkgrm -> pkgadd
-rwxr-xr-x 0 root root 1444264 Jun 13 14:19 usr/bin/pkgadd
lrwxrwxrwx 0 root root 0 Jun 13 14:19 usr/bin/pkginfo -> pkgadd
pkginfo: ../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' failed.
=======> ERROR: Footprint mismatch found:
MISSING drwxr-xr-x root/root etc/
MISSING -rw-r--r-- root/root etc/pkgadd.conf
MISSING -rw-r--r-- root/root etc/pkgmk.conf
MISSING -rw-r--r-- root/root etc/rejmerge.conf
MISSING drwxr-xr-x root/root usr/
MISSING drwxr-xr-x root/root usr/bin/
MISSING -rwxr-xr-x root/root usr/bin/pkgadd
MISSING lrwxrwxrwx root/root usr/bin/pkginfo -> pkgadd
MISSING -rwxr-xr-x root/root usr/bin/pkgmk
MISSING lrwxrwxrwx root/root usr/bin/pkgrm -> pkgadd
MISSING -rwxr-xr-x root/root usr/bin/rejmerge
MISSING drwxr-xr-x root/root usr/share/
MISSING drwxr-xr-x root/root usr/share/man/
MISSING drwxr-xr-x root/root usr/share/man/man5/
MISSING -rw-r--r-- root/root usr/share/man/man5/pkgmk.conf.5.gz
MISSING drwxr-xr-x root/root usr/share/man/man8/
MISSING -rw-r--r-- root/root usr/share/man/man8/pkgadd.8.gz
MISSING -rw-r--r-- root/root usr/share/man/man8/pkginfo.8.gz
MISSING -rw-r--r-- root/root usr/share/man/man8/pkgmk.8.gz
MISSING -rw-r--r-- root/root usr/share/man/man8/pkgrm.8.gz
MISSING -rw-r--r-- root/root usr/share/man/man8/rejmerge.8.gz
=======> ERROR: Building '/base/pkgutils/pkgutils#5.34.2-1.pkg.tar.xz' failed.

Are interested me, especially this line
pkginfo: ../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' failed.

Where to start looking for solutions?
glibc gcc or pkgutils

Have a nice day

Milan Buska
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 

Thread Tools




All times are GMT. The time now is 04:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org