Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 07-13-2009, 12:20 PM   #1
LQ Newbie
Registered: Apr 2009
Posts: 15

Rep: Reputation: 0
[Solved] Howto use paco in CLFS


I'm at 8.4 now in CLFS svn version "Temporary Perl-5.10.0".

Before I install this first package of software to my fresh CLFS-System, I want to be able to log the installation with paco.

How do I do this? I tried:

checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking for open64... yes
checking for creat64... yes
checking for truncate64... yes
checking for fopen64... yes
checking for freopen64... yes
checking for statfs... yes
checking for statvfs... yes
checking for setenv... yes
checking for strcasecmp... yes
checking for getopt_long... yes
checking for struct winsize.ws_col... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/paco/Makefile
config.status: creating lib/paco-log/Makefile
config.status: creating paco/Makefile
config.status: creating gpaco/Makefile
config.status: creating scripts/Makefile
config.status: creating doc/Makefile
config.status: creating doc/pacorc
config.status: creating doc/pacorc.5
config.status: creating doc/paco.8
config.status: creating doc/pacoball.8
config.status: creating doc/rpm2paco.8
config.status: creating doc/superpaco.8
config.status: creating doc/paco.pc
config.status: creating config.h
config.status: executing depfiles commands
root:/sources/paco-2.0.6# make
make  all-recursive
make[1]: Entering directory `/sources/paco-2.0.6'
Making all in lib
make[2]: Entering directory `/sources/paco-2.0.6/lib'
Making all in paco
make[3]: Entering directory `/sources/paco-2.0.6/lib/paco'
g++ -DHAVE_CONFIG_H -I. -I../..    -W -I../.. -DPACORC='"/tools/etc/pacorc"' -ansi -pedantic -Wall -Wshadow -fno-operator-names -g -O2 -MT libpaco_a-BaseConfig.o -MD -MP -MF .deps/libpaco_a-BaseConfig.Tpo -c -o libpaco_a-BaseConfig.o `test -f '' || echo './'`
mv -f .deps/libpaco_a-BaseConfig.Tpo .deps/libpaco_a-BaseConfig.Po
g++ -DHAVE_CONFIG_H -I. -I../..    -W -I../.. -DPACORC='"/tools/etc/pacorc"' -ansi -pedantic -Wall -Wshadow -fno-operator-names -g -O2 -MT libpaco_a-BasePkg.o -MD -MP -MF .deps/libpaco_a-BasePkg.Tpo -c -o libpaco_a-BasePkg.o `test -f '' || echo './'` In static member function 'static bool Paco::BasePkg::updateLog(const std::string&)': error: invalid conversion from 'const char*' to 'char*'
make[3]: *** [libpaco_a-BasePkg.o] Error 1
make[3]: Leaving directory `/sources/paco-2.0.6/lib/paco'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/paco-2.0.6/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/paco-2.0.6'
make: *** [all] Error 2
in Chroot, but it failed.

When I install paco from outside Chroot, it compiles and i can install. But when I type "paco -lp Perl "make install..."" i get:

root:/sources/perl-5.10.0# paco -lp BS_Perl-5.10.0 "make install && ln -sfv /tools/bin/perl /usr/bin"
bash: /tools/bin/paco: No such file or directory
root:/sources/perl-5.10.0# paco
bash: /tools/bin/paco: No such file or directory
root:/sources/perl-5.10.0# sh /tools/bin/paco
/tools/bin/paco: /tools/bin/paco: cannot execute binary file
root:/sources/perl-5.10.0# ls -a /tools/bin
.	      file	  mtrace	   tack
..	      find	  mv		   tail
[	      fmt	  ncurses5-config  tar
addr2line     fold	  nice		   tclsh
ar	      g++	  nl		   tclsh8.5
as	      gawk	  nm		   tee
awk	      gawk-3.1.6  nohup		   test
base64	      gcc	  objcopy	   tic
basename      gccbug	  objdump	   timeout
bash	      gcov	  od		   toe
bashbug       gencat	  oldfind	   touch
bunzip2       getconf	  paco		   tput
bzcat	      getent	  paste		   tr
bzcmp	      gprof	  patch		   true
bzdiff	      grep	  pathchk	   truncate
bzegrep       groups	  pcprofiledump    tset
bzfgrep       gunzip	  pgawk		   tsort
bzgrep	      gzexe	  pgawk-3.1.6	   tty
bzip2	      gzip	  pinky		   tzselect
bzip2recover  head	  ppl-config	   umount
bzless	      hostid	  ppl_lcdd	   uname
bzmore	      iconv	  pr		   uncompress
c++	      id	  printenv	   unexpand
c++filt       igawk	  printf	   uniq
captoinfo     infocmp	  ptx		   unlink
cat	      infotocap   pwd		   unlzma
catchsegv     install	  ranlib	   unxz
chcon	      join	  readelf	   updatedb
chgrp	      kill	  readlink	   uptime
chmod	      ld	  reset		   users
chown	      ldd	  rm		   vdir
chroot	      lddlibc4	  rmdir		   vi
cksum	      link	  rpcgen	   view
clear	      ln	  runcon	   vim
cloog	      locale	  runtest	   vimdiff
cmp	      localedef   rview		   vimtutor
comm	      locate	  rvim		   wc
compile_et    logname	  sdiff		   who
cp	      ls	  sed		   whoami
cpp	      lzcat	  seq		   x86_64-pc-linux-gnu-c++
csplit	      lzcmp	  sh		   x86_64-pc-linux-gnu-g++
cut	      lzdiff	  sha1sum	   x86_64-pc-linux-gnu-gcc
date	      lzegrep	  sha224sum	   x86_64-pc-linux-gnu-gcc-4.4.0
dd	      lzfgrep	  sha256sum	   xargs
df	      lzgrep	  sha384sum	   xtrace
diff	      lzless	  sha512sum	   xxd
diff3	      lzma	  shred		   xz
dir	      lzmadec	  shuf		   xzcat
dircolors     lzmore	  size		   xzdec
dirname       m4	  sleep		   yes
du	      make	  sort		   zcat
echo	      md5sum	  split		   zcmp
egrep	      mk_cmds	  sprof		   zdiff
env	      mkdir	  stat		   zegrep
ex	      mkfifo	  strings	   zfgrep
expand	      mknod	  strip		   zforce
expect	      mkswap	  stty		   zgrep
expr	      mktemp	  sum		   zless
factor	      more	  sync		   zmore
false	      mount	  tabs		   znew
fgrep	      msgfmt	  tac
Can you help me please to get this working?

Thanks a lot!

Last edited by DaCapitalist; 07-14-2009 at 11:55 AM.
Old 07-14-2009, 05:39 AM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
First, why would install paco in /tools? Presumably, you will use it to log installation of packages from CBLFS too. Second, why would you log the installation of the temporary Perl? It's temporary and is installed in a directory (/tools) that you can delete after the base system is built.

It looks like this problem may be caused by the version of gcc used in the development version of CLFS. Some change in gcc has not been accounted for in paco yet. If this is your first attempt at CLFS, you should probably be using the stable version which uses gcc-4.2.4. Gcc-4.2.4 will compile paco successfully. You could also try to use development paco from svn to see if the problem has been addressed.
Old 07-14-2009, 11:53 AM   #3
LQ Newbie
Registered: Apr 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks a lot! That solved the problem.
A patch on the paco sourceforge-account did the rest to the svn-version...


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
cannot boot into my clfs sabil Linux From Scratch 0 04-15-2009 12:42 PM
I erased glibc-2.3.6 from my LFS-6.2 by mistake using PACO. Compiled replace needed. linux-geek Linux From Scratch 3 06-10-2008 05:42 PM
chown clfs:clfs mishap Louis_Carole Linux From Scratch 4 03-21-2007 08:40 PM
CLFS 1.0.0 Released mdh Linux From Scratch 1 09-30-2006 10:42 PM
CLFS Expect-5.43.0 caio53 Linux From Scratch 3 05-05-2006 08:16 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:14 PM.

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