LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-14-2014, 05:46 PM   #1
moisespedro
Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware and LFS
Posts: 943

Rep: Reputation: 108Reputation: 108
Error while building pkgutils


Hi, I am building a LFS system and I'd like to use pkgutils on it. Since I failed to build it on my LFS box I tried to build it on my Slackware box. Here is what I did:

$ git clone git://crux.nu/tools/pkgutils.git
$ cd pkgutils

And as the README states:

$ make
$ make install

I issued make and this is what I got:

Code:
pedro@darkstar:~/Downloads/slackware/pkgutils$ make
g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.35.6\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MM main.cc pkgutil.cc pkgadd.cc pkgrm.cc pkginfo.cc > .depend
g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.35.6\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -c -o main.o main.cc
g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.35.6\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -c -o pkgutil.o pkgutil.cc
g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.35.6\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -c -o pkgadd.o pkgadd.cc
g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.35.6\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -c -o pkgrm.o pkgrm.cc
g++ -DNDEBUG -O2 -Wall -pedantic -D_GNU_SOURCE -DVERSION=\"5.35.6\" -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 -lnettle -lacl -lattr -llzo2 -llzma -lbz2 -lxml2 -lz -lm -ldl  
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -larchive
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -lnettle
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -llzo2
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -llzma
pkgutil.o: In function `pkgutil::pkg_footprint(std::string&) const':
pkgutil.cc:(.text+0x7576): warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
pkgutil.cc:(.text+0x7519): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
make: ** [pkgadd] Erro 1
Thanks for the attention.

EDIT: By the way I would be glad if any of you could try to build it too, being LFS/Slackware or not.

EDIT2: The user Berzerkula from #lfs-support solved this

Quote:
20:19 < Berzerkula> it's wanting to link to static libs
20:19 < Berzerkula> change LIBARCHIVELIBS in Makefile to this:
20:20 < Berzerkula> LIBARCHIVELIBS := $(shell pkg-config --libs libarchive)
20:20 < Berzerkula> LDFLAGS += $(LIBARCHIVELIBS)
20:20 < Berzerkula> that way it is linking to the shared libs

Last edited by moisespedro; 04-14-2014 at 06:31 PM. Reason: Solved
 
Old 04-15-2014, 05:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,457
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Quote:
Originally Posted by moisespedro View Post
EDIT2: The user Berzerkula from #lfs-support solved this
Off of the 0-reply list now.
 
  


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
building sge-8.1.3 error - collect2: error: ld returned 1 exit status Reignfire Linux - Software 0 05-08-2013 01:45 PM
Error building crosstools-ng on LFS for raspberry pi - custom kernel error Keith Hedger Linux From Scratch 0 01-15-2013 05:44 PM
[SOLVED] error building kernel 2.6.36 vonbiber Linux - General 8 02-05-2011 07:07 AM
Error when building Diomedes Linux - Software 5 10-04-2006 12:18 AM
error in Building gcc-4.0.2 newcomer4 Linux - Software 2 01-31-2006 02:44 AM


All times are GMT -5. The time now is 01:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration