forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

libintl.h woes and other nice suprises

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
TommyBear



Joined: 24 Jun 2005
Posts: 50

PostPosted: Sat Jun 25, 2005 1:30 am    Post subject: libintl.h woes and other nice suprises Reply with quote

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:

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:

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.
Back to top
View user's profile Send private message Send e-mail
TommyBear



Joined: 24 Jun 2005
Posts: 50

PostPosted: Sat Jun 25, 2005 1:41 am    Post subject: Reply with quote

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

Tommy.
Back to top
View user's profile Send private message Send e-mail
TommyBear



Joined: 24 Jun 2005
Posts: 50

PostPosted: Sat Jun 25, 2005 2:17 am    Post subject: Reply with quote

Ok it's all working now. This is what I get for not following the WIKI! :)
Back to top
View user's profile Send private message Send e-mail
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Jun 25, 2005 2:40 am    Post subject: Reply with quote

Uhh, glad we could help? :)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group