I had this problem as well before, and got around it by modifying ext/
libelf/SConscript, and changing line 75 from:
'--disable-shared --disable-versioning' \
to
'--disable-shared --disable-versioning --
disable-nls' \
I thought I had posted about this on the mailing list before, but
looks like not. I didn't make this a patch since I'm not sure what
effects it has to be honest, and whether it should only be used in
OSX, but it at least it should get you up and running.
-Nick
On Oct 22, 2007, at 5:54 PM, Richard Strong wrote:
I have did install gettext using macports. M5 used to build for me.
But an update on gettext removed libintl.h and specifies that an
interface should be used. What version of gettext are you using?
Also, I noticed that if I built under a linux machine, and then
moved to MacOSX, rm -rf build, and rebuilt, I could get things
working.
-R
On 10/22/07, Ali Saidi <[EMAIL PROTECTED]> wrote:
Hi Richard,
You need to have gettext installed. I have always just used
MacPorts (macports.org) to install it.
Ali
On Oct 22, 2007, at 4:25 PM, Richard Strong wrote:
Hi,
M5 2.0 Beta 3 is not building on MacOS X. It appears related to:
"/usr/bin/ld: Undefined symbols:
_libintl_bindtextdomain
_libintl_gettext
_libintl_textdomain
"
Is there are new interface for
libintl.h? Anyone else have this problem?
-Richard
Relevant build sectiosn:
...
gcc -c -DHAVE_CONFIG_H -I.. -I.
-I/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/lib -g -O2
/Users/rickstrong/Desktop/m5-
2.0b3/ext/libelf/lib/verdef_64_tom.c
ar rcv libelf.a begin.o cntl.o end.o errmsg.o errno.o fill.o flag.o
getarhdr.o getarsym.o getbase.o getdata.o getident.o getscn.o hash.o
kind.o ndxscn.o newdata.o newscn.o
next.o
nextscn.o rand.o rawdata.o
rawfile.o strptr.o update.o version.o checksum.o 32.fsize.o
32.getehdr.o
32.getphdr.o 32.getshdr.o 32.newehdr.o 32.newphdr.o 32.xlatetof.o
cook.o
data.o input.o assert.o
nlist.o
opt.delscn.o
x.remscn.o x.movscn.o
64.xlatetof.o gelfehdr.o gelfphdr.o gelfshdr.o gelftrans.o swap64.o
verdef_32_tof.o verdef_32_tom.o verdef_64_tof.o verdef_64_tom.o
a - begin.o
a - cntl.o
a - end.o
a - errmsg.o
a - errno.o
a - fill.o
a - flag.o
a - getarhdr.o
a - getarsym.o
a - getbase.o
a - getdata.o
a - getident.o
a - getscn.o
a - hash.o
a - kind.o
a - ndxscn.o
a - newdata.o
a - newscn.o
a - next.o
a - nextscn.o
a - rand.o
a - rawdata.o
a - rawfile.o
a - strptr.o
a - update.o
a - version.o
a - checksum.o
a - 32.fsize.o
a - 32.getehdr.o
a - 32.getphdr.o
a - 32.getshdr.o
a - 32.newehdr.o
a - 32.newphdr.o
a - 32.xlatetof.o
a - cook.o
a - data.o
a - input.o
a - assert.o
a - nlist.o
a - opt.delscn.o
a - x.remscn.o
a - x.movscn.o
a -
64.xlatetof.o
a - gelfehdr.o
a - gelfphdr.o
a - gelfshdr.o
a - gelftrans.o
a - swap64.o
a - verdef_32_tof.o
a - verdef_32_tom.o
a - verdef_64_tof.o
a - verdef_64_tom.o
ranlib libelf.a
gmake[1]: Leaving directory
`/Users/rickstrong/Desktop/m5-
2.0b3/build/libelf/build/lib'
making all in po
gmake[1]: Entering directory
`/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/build/po'
gmake /Users/rickstrong/Desktop/m5-
2.0b3/ext/libelf/po/gmo2msg
gmake[2]: Entering directory
`/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/build/po'
gcc -DHAVE_CONFIG_H -I.. -I. -I../lib
-I/Users/rickstrong/Desktop/m5-
2.0b3/ext/libelf/po
-I/Users/rickstrong/Desktop/m5-
2.0b3/ext/libelf/lib -g -O2 \
/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/po/
gmo2msg.c -o
/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/po/gmo2msg
/usr/bin/ld: Undefined symbols:
_libintl_bindtextdomain
_libintl_gettext
_libintl_textdomain
collect2: ld returned 1 exit status
gmake[2]: *** [/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/po/
gmo2msg]
Error 1
gmake[2]: Leaving directory
`/Users/rickstrong/Desktop/m5-
2.0b3/build/libelf/build/po'
gmake[1]: *** [de.msg] Error 2
gmake[1]: Leaving directory
`/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/build/po'
gmake: *** [all-recursive] Error 1
making install in lib
gmake[1]: Entering directory
`/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/build/lib'
dirs="/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/lib
/Users/rickstrong/Desktop/m5-
2.0b3/build/libelf/include
/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/include/libelf";
for dir
in $dirs; do \
/bin/sh
/Users/rickstrong/Desktop/m5-
2.0b3/ext/libelf/mkinstalldirs
$dir; \
done
/usr/bin/install -c -m 644
libelf.a
/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/lib
cd /Users/rickstrong/Desktop/m5-2.0b3/build/libelf/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 \
/usr/bin/install -c -m 644 $file
/Users/rickstrong/Desktop/m5-
2.0b3/build/libelf/include/libelf;
\
else \
/usr/bin/install -c -m 644
/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/lib/$file
/Users/rickstrong/Desktop/m5-
2.0b3/build/libelf/include/libelf;
\
fi; \
done
files="libelf.h nlist.h gelf.h"; for file in $files; do \
if test -f
/Users/rickstrong/Desktop/m5-
2.0b3/build/libelf/include/$file;
then true; else \
echo "#include <libelf/$file>" >
/
Users/rickstrong/Desktop/m5-
2.0b3/build/libelf/include/$file;
\
fi; \
done
gmake[1]: Leaving directory
`/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/build/lib'
making install in po
gmake[1]: Entering directory
`/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/build/po'
gmake /Users/rickstrong/Desktop/m5-
2.0b3/ext/libelf/po/gmo2msg
gmake[2]: Entering directory
`/Users/rickstrong/Desktop/m5-
2.0b3/build/libelf/build/po'
gcc -DHAVE_CONFIG_H -I.. -I. -I../lib
-I/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/po
-I/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/lib -g -O2 \
/Users/rickstrong/Desktop/m5-
2.0b3/ext/libelf/po/gmo2msg.c -o
/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/po/gmo2msg
/usr/bin/ld: Undefined symbols:
_libintl_bindtextdomain
_libintl_gettext
_libintl_textdomain
collect2: ld returned 1 exit status
gmake[2]: *** [/Users/rickstrong/Desktop/m5-2.0b3/ext/libelf/po/
gmo2msg]
Error 1
gmake[2]: Leaving directory
`/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/build/po'
gmake[1]: *** [de.msg] Error 2
gmake[1]: Leaving directory
`/Users/rickstrong/Desktop/m5-2.0b3/build/libelf/build/po'
gmake: *** [install-recursive] Error 1
scons: *** [build/libelf/lib/libelf.a] Error 512
scons: building terminated because of errors.
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users