Sorry for not quoting properly, replying from my BlackBerry. In addition to the commenting of the I18 package, you will need to follow each of the line numbers listed and remove the (_) that wraps the printf statements.
Yes, you're right about the no-opping the header file. I'm not the most accomplished C++ coder :-) and since commenting out the INIT worked the first time, I just went with the flow and didn't bother revisiting because I got it to compile. -----Original Message----- From: Eric Arseneau <e...@assetscience.com> Date: Tue, 17 Aug 2010 23:40:26 To: Barry project development discussion<barry-devel@lists.sourceforge.net> Reply-To: Barry project development discussion <barry-devel@lists.sourceforge.net> Subject: Re: [Barry-devel] Building for Mac I did a make clean from the top level, then a make, after making the modifications. I got further, but now breset is failing, even though I did the edits you suggested. I did another search for the INIT_I18N and there are none as will be shown below Here is to show I did the edits: [barry] grep -n "I18" tools/*.cc tools/bcharge.cc:329:// INIT_I18N(PACKAGE); tools/bdptest.cc:52:// INIT_I18N(PACKAGE); tools/bfuse.cc:753:// INIT_I18N(PACKAGE); tools/bidentify.cc:51:// INIT_I18N(PACKAGE); tools/bjavaloader.cc:222:// INIT_I18N(PACKAGE); tools/bjdwp.cc:62:// INIT_I18N(PACKAGE); tools/bjvmdebug.cc:60:// INIT_I18N(PACKAGE); tools/bktrans.cc:113:// INIT_I18N(PACKAGE); tools/brecsum.cc:106:// INIT_I18N(PACKAGE); tools/breset.cc:60:// INIT_I18N(PACKAGE); tools/brimtrans.cc:47:// INIT_I18N(PACKAGE); tools/bs11nread.cc:118:// INIT_I18N(PACKAGE); tools/btool.cc:574:// INIT_I18N(PACKAGE); tools/btranslate.cc:64:// INIT_I18N(PACKAGE); tools/pppob.cc:131:// INIT_I18N(PACKAGE); tools/upldif.cc:110:// INIT_I18N(PACKAGE); Although it seems to me that editing the i18.h such that the define turns into a no-op would have been less time consuming? :) Here is the latest error I get /bin/sh ../libtool --tag=CXX --mode=link g++ -ansi -Wall -g -g -O2 -o bcharge bcharge.o -L/opt/local/lib -lusb -lpthread libtool: link: g++ -ansi -Wall -g -g -O2 -o bcharge bcharge.o -Wl,-bind_at_load -L/opt/local/lib /opt/local/lib/libusb.dylib /opt/local/lib/libusb-1.0.dylib -lpthread -pthread g++ -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -ansi -Wall -g -g -O2 -MT breset.o -MD -MP -MF .deps/breset.Tpo -c -o breset.o breset.cc breset.cc: In function ‘int main()’: breset.cc:67: warning: format not a string literal and no format arguments breset.cc:81: warning: format not a string literal and no format arguments breset.cc:82: warning: format not a string literal and no format arguments mv -f .deps/breset.Tpo .deps/breset.Po /bin/sh ../libtool --tag=CXX --mode=link g++ -ansi -Wall -g -g -O2 -o breset breset.o -L/opt/local/lib -lusb -lpthread libtool: link: g++ -ansi -Wall -g -g -O2 -o breset breset.o -Wl,-bind_at_load -L/opt/local/lib /opt/local/lib/libusb.dylib /opt/local/lib/libusb-1.0.dylib -lpthread -pthread Undefined symbols: "_libintl_gettext", referenced from: _main in breset.o _main in breset.o _main in breset.o _main in breset.o _main in breset.o ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [breset] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 On Aug 17, 2010, at 10:43 PM, Sheran Gunasekera wrote: > Hello > > On Wed, Aug 18, 2010 at 12:36 PM, Eric Arseneau <e...@assetscience.com> wrote: >> So I pulled your latest, and got further. Now I get >> >> libtool: link: g++ -ansi -Wall -g -g -O2 -o .libs/bidentify bidentify.o >> -Wl,-bind_at_load ../src/.libs/libbarry.dylib -L/opt/local/lib -lz >> /opt/local/lib/libiconv.dylib /opt/local/lib/libusb.dylib >> /opt/local/lib/libusb-1.0.dylib -lpthread -pthread >> Undefined symbols: >> "_libintl_textdomain", referenced from: >>_main in bidentify.o >> "_libintl_bindtextdomain", referenced from: >>_main in bidentify.o >> "_libintl_setlocale", referenced from: >>_main in bidentify.o >> ld: symbol(s) not found >> collect2: ld returned 1 exit status >> >> I tried to do a >> configure --with-included-gettext --disable-nls > > I've successfully built Barry for use on the Mac. Where you're > presently at is quite close to the end :) If you don't need other > language support (you're already used disable-nls, so I assume you > don't), you need to go into each and every file in the tools directory > and make sure to disable the imports for i18n package. Here is what > my source looked like: > > azazel:tools sheran$ grep -n "I18" *.cc > bcharge.cc:329: //INIT_I18N(PACKAGE); > bdptest.cc:52: //INIT_I18N(PACKAGE); > bfuse.cc:753: //INIT_I18N(PACKAGE); > bidentify.cc:51: //INIT_I18N(PACKAGE); > bjavaloader.cc:222: //INIT_I18N(PACKAGE); > bjdwp.cc:62: //INIT_I18N(PACKAGE); > bjvmdebug.cc:60: //INIT_I18N(PACKAGE); > bktrans.cc:113: //INIT_I18N(PACKAGE); > brecsum.cc:106: //INIT_I18N(PACKAGE); > breset.cc:60: //INIT_I18N(PACKAGE); > brimtrans.cc:47: //INIT_I18N(PACKAGE); > bs11nread.cc:118: //INIT_I18N(PACKAGE); > btool.cc:565: INIT_I18N(PACKAGE); > btranslate.cc:64: //INIT_I18N(PACKAGE); > pppob.cc:131: //INIT_I18N(PACKAGE); > upldif.cc:110: //INIT_I18N(PACKAGE); > > Give this a go and let us know how you get on. > > Kind regards, > Sheran > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ > Barry-devel mailing list > Barry-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/barry-devel ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel