Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Building `ar` ( a script) - But it fails - Why?

Status
Not open for further replies.

josel

Programmer
Oct 16, 2001
716
US
I found out how to build `ar`. The suggested script to do this:

#!/bin/sh
MAKE_PROG="${MAKE-make}"
MAKE="${MAKE_PROG} AR=true LINK=true"
export MAKE
${MAKE} $* all-libiberty
${MAKE} $* all-intl
${MAKE} $* all-bfd
cd binutils
MAKE="${MAKE_PROG}"
export MAKE
${MAKE} $* ar_DEPENDENCIES= ar_LDADD='../bfd/*.o `cat ../libiberty/required-list
../libiberty/needed-list |sed -e "s,\([^ ][^ ]*\),../libiberty/\1,g"` `if test
-f ../intl/gettext.o; then echo '../intl/*.o'; fi`' ar


I set MAKE=gmake and ran script but it does not work. I get
error


[ snip - tail end of stdout ]
ame.o ../intl/finddomain.o
../intl/gettext.o
../intl/intl-compat.o
../intl/l10nflist.o
../intl/loadmsgcat.o
../intl/localealias.o
../intl/textdomain.o
Undefined first referenced symbol in file mkstemps
../libiberty/make-temp-file.o
ar: fatal error: Symbol referencing errors. No output
written to ar
collect2: ld returned 1 exit status
gmake: *** [ar] Error 1


Can any one see anything wrong with above script? Is this error caused by a missing library or possibly permission related?

Thank you all in advance!


Jose Lerebours

KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
Hello Annihilannic!

I ended up downloading `ar` binaries - I finally came
across it and was able to install it.

Thanks;


Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top