libintl.h woes and other nice suprises

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
TommyBear
Posts: 50
Joined: Fri Jun 24, 2005 11:21 pm

libintl.h woes and other nice suprises

Post by TommyBear »

Hi everyone,

I'm trying to compile the run the toolchain written by Dan Peori and I'm hitting a snag. I've searched these forums and haven't found any solution yet. First my software:

- Cygwin (default install except with wget, make, and gettext)
- Toolchain script psptoolchain-20050622.tgz

Ok everything is fine, until I get to "configuring in intl". I get:

Code: Select all

touch stmp-bfd-h
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -D_GNU_SOURCE     -I. -I../../bfd -I../../bfd/../include  -I../../bfd/../intl
 -I../intl   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2  -c -o archive.lo ../../bfd/archive.c
gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -D_GNU_SOURCE -I. -I../../bfd -I../../bfd/../include -I../../bfd/../intl -I../intl -W -Wall -Wstrict-prototype
s -Wmissing-prototypes -g -O2 -c ../../bfd/archive.c -o archive.o
In file included from ../../bfd/archive.c:131:
../../bfd/sysdep.h:135:21: libintl.h: No such file or directory
../../bfd/archive.c: In function `_bfd_write_archive_contents':
../../bfd/archive.c:1729: warning: implicit declaration of function `dgettext'
make[3]: *** [archive.lo] Error 1
make[3]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/bfd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/bfd'
make: *** [all-bfd] Error 2
ERROR BUILDING BINUTILS (binutils-2.16 psp)
So what I did, even though it is bad, is copy the libintl.h into the C:\Cygwin\tmp\pspdev\binutils-2.16\bfd folder. I've tried setting the paths to point to /usr/include to no avail... my knowledge of make files and the general bash environment borders on laughable by the way. I'm a bit of a VC boy!

OK, so after doing the hacky copy of the header and rerunning, I get a link error in "configuring binutils" and it is:

Code: Select all

mkdir .libs
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o size.exe size.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libi
berty.a ./../intl/libintl.a
size.o(.text+0x14): In function `usage':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:80: undefined reference to `libintl_gettext'
size.o(.text+0x36):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:81: undefined reference to `libintl_gettext'
size.o(.text+0x4e):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:82: undefined reference to `libintl_gettext'
size.o(.text+0x66):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:83: undefined reference to `libintl_gettext'
size.o(.text+0xa8):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:99: undefined reference to `libintl_gettext'
size.o(.text+0x9d6): In function `main':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:128: undefined reference to `libintl_bindtextdomain'
size.o(.text+0x9e2):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:129: undefined reference to `libintl_textdomain'
size.o(.text+0xa5f):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:180: undefined reference to `libintl_gettext'
bucomm.o(.text+0x1b4): In function `set_default_bfd_target':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:109: undefined reference to `libintl_gettext'
bucomm.o(.text+0x1e2): In function `list_matching_formats':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:120: undefined reference to `libintl_gettext'
bucomm.o(.text+0x282): In function `list_supported_targets':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:137: undefined reference to `libintl_gettext'
bucomm.o(.text+0x2e4):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:135: undefined reference to `libintl_gettext'
bucomm.o(.text+0x31a):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:155: more undefined references to `libintl_gettext
' follow
../bfd/.libs/libbfd.a(archive.o)(.text+0x2580): In function `bfd_write_archive_contents':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/archive.c:1728: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(archive.o)(.text+0x2af7): In function `bfd_archive_bsd_update_armap_timestamp':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/archive.c:2018: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o)(.text+0x4b): In function `bfd_errmsg':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/bfd.c:359: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o)(.text+0x257): In function `bfd_assert':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/bfd.c:768: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o)(.text+0x2ad): In function `bfd_abort':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/bfd.c:783: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o)(.text+0x2e0):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/bfd.c:790: more undefined references to `libintl_
dgettext' follow
collect2: ld returned 1 exit status
make[3]: *** [size.exe] Error 1
make[3]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make: *** [all-binutils] Error 2
ERROR BUILDING BINUTILS (binutils-2.16 psp)
Please help me out guys if you can, I'm trying to port some stuff to the psp (including ScummVM) and would greatly appreciate any help!

Tommy.
TommyBear
Posts: 50
Joined: Fri Jun 24, 2005 11:21 pm

Post by TommyBear »

OK I've found the wiki and I'll try a reinstall on cygwin and see how far it get's me.

Tommy.
TommyBear
Posts: 50
Joined: Fri Jun 24, 2005 11:21 pm

Post by TommyBear »

Ok it's all working now. This is what I get for not following the WIKI! :)
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Uhh, glad we could help? :)
Post Reply