I get the same error, here is the error output 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
I did a make clean, then a make btw from the top level. I've attached the diff to make sure followed yours and Sheran's instructions properly, even though they WERE quite simple :)
diff --git a/buildgen.sh b/buildgen.sh index f6a023f..082c108 100755 --- a/buildgen.sh +++ b/buildgen.sh @@ -1,7 +1,7 @@ #!/bin/sh libtoolit() { - libtoolize --force --copy + glibtoolize --force --copy } doconf() { diff --git a/tools/Makefile.am b/tools/Makefile.am index 58c836f..390487f 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -56,27 +56,27 @@ bs11nread_LDFLAGS = @BOOST_LIB_PATH@ endif bidentify_SOURCES = bidentify.cc -bidentify_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread +bidentify_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread -lintl -liconv bjavaloader_SOURCES = bjavaloader.cc -bjavaloader_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread +bjavaloader_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread -lintl -liconv bjvmdebug_SOURCES = bjvmdebug.cc -bjvmdebug_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread +bjvmdebug_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread -lintl -liconv bdptest_SOURCES = bdptest.cc -bdptest_LDADD = ../src/libbarry.la ../src/libbarrydp.la +bdptest_LDADD = ../src/libbarry.la ../src/libbarrydp.la -lintl -liconv bjdwp_SOURCES = bjdwp.cc -bjdwp_LDADD = ../src/libbarry.la ../src/libbarryjdwp.la +bjdwp_LDADD = ../src/libbarry.la ../src/libbarryjdwp.la -lintl -liconv upldif_SOURCES = upldif.cc -upldif_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread +upldif_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread -lintl -liconv btranslate_SOURCES = btranslate.cc bktrans_SOURCES = bktrans.cc -bktrans_LDADD = ../src/libbarry.la -lpthread +bktrans_LDADD = ../src/libbarry.la -lpthread -lintl -liconv bcharge_SOURCES = bcharge.cc bcharge_LDADD = $(LIBUSB_LIBS) @@ -85,17 +85,17 @@ breset_SOURCES = breset.cc breset_LDADD = $(LIBUSB_LIBS) pppob_SOURCES = pppob.cc -pppob_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread +pppob_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread -lintl -liconv #brecsum_CXXFLAGS = $(OPENSSL_CFLAGS) brecsum_SOURCES = brecsum.cc #brecsum_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) $(OPENSSL_LIBS) -lpthread -brecsum_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread +brecsum_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread -lintl -liconv if WITH_FUSE bfuse_SOURCES = bfuse.cc bfuse_CXXFLAGS = $(FUSE_CFLAGS) -bfuse_LDADD = ../src/libbarry.la $(FUSE_LIBS) -lpthread +bfuse_LDADD = ../src/libbarry.la $(FUSE_LIBS) -lpthread -lintl -liconv endif brimtrans_SOURCES = brimtrans.cc diff --git a/tools/bcharge.cc b/tools/bcharge.cc index c6e5030..60bc755 100644 --- a/tools/bcharge.cc +++ b/tools/bcharge.cc @@ -326,7 +326,7 @@ int main(int argc, char *argv[]) { struct usb_bus *busses; - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); // // allow -o command line switch to choose which mode to use for diff --git a/tools/bdptest.cc b/tools/bdptest.cc index c1cc62e..d10e740 100644 --- a/tools/bdptest.cc +++ b/tools/bdptest.cc @@ -49,7 +49,7 @@ using namespace Barry; int main(int argc, char *argv[], char *envp[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); Barry::Init(true, &cout); diff --git a/tools/bfuse.cc b/tools/bfuse.cc index b248ed8..ff27cd0 100644 --- a/tools/bfuse.cc +++ b/tools/bfuse.cc @@ -750,7 +750,7 @@ static struct fuse_operations bfuse_oper; int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(true); // leave this on, since libusb uses // stdio for debug messages diff --git a/tools/bidentify.cc b/tools/bidentify.cc index dc6c25b..ef05f63 100644 --- a/tools/bidentify.cc +++ b/tools/bidentify.cc @@ -48,7 +48,7 @@ void Usage() int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(true); // leave this on, since libusb uses // stdio for debug messages diff --git a/tools/bjavaloader.cc b/tools/bjavaloader.cc index 1b15595..46243e5 100644 --- a/tools/bjavaloader.cc +++ b/tools/bjavaloader.cc @@ -219,7 +219,7 @@ void SaveModule(Barry::Mode::JavaLoader *javaloader, const char *filename) int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(true); // leave this on, since libusb uses // stdio for debug messages diff --git a/tools/bjdwp.cc b/tools/bjdwp.cc index ba71abd..bfb9082 100644 --- a/tools/bjdwp.cc +++ b/tools/bjdwp.cc @@ -59,7 +59,7 @@ void Usage() int main(int argc, char *argv[], char *envp[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); try { uint32_t pin = 0; diff --git a/tools/bjvmdebug.cc b/tools/bjvmdebug.cc index f9a0b0f..3a8840d 100644 --- a/tools/bjvmdebug.cc +++ b/tools/bjvmdebug.cc @@ -57,7 +57,7 @@ void Usage() int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); try { diff --git a/tools/bktrans.cc b/tools/bktrans.cc index 7ce1c1a..2a0d6ce 100644 --- a/tools/bktrans.cc +++ b/tools/bktrans.cc @@ -110,7 +110,7 @@ void SplitHex(const char *logmarker, const char *str, Barry::Data &data) int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(false); diff --git a/tools/brecsum.cc b/tools/brecsum.cc index a3fc04b..25fe58a 100644 --- a/tools/brecsum.cc +++ b/tools/brecsum.cc @@ -103,7 +103,7 @@ public: int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(true); // leave this on, since libusb uses // stdio for debug messages diff --git a/tools/breset.cc b/tools/breset.cc index e23916a..84d7275 100644 --- a/tools/breset.cc +++ b/tools/breset.cc @@ -57,7 +57,7 @@ int main() { struct usb_bus *busses; - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); usb_init(); usb_find_busses(); diff --git a/tools/brimtrans.cc b/tools/brimtrans.cc index 3bb6d5e..73dbf77 100644 --- a/tools/brimtrans.cc +++ b/tools/brimtrans.cc @@ -44,7 +44,7 @@ int main(int argc, char* argv[]) list<string>* event = NULL; string line; - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); while( !getline(cin, line).eof() ) { size_t pos = line.find_first_of(':'); diff --git a/tools/bs11nread.cc b/tools/bs11nread.cc index 9dd5cb0..f2f75cb 100644 --- a/tools/bs11nread.cc +++ b/tools/bs11nread.cc @@ -115,7 +115,7 @@ void ShowParsers() int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); try { string filename; diff --git a/tools/btool.cc b/tools/btool.cc index c74e194..bb65c4e 100644 --- a/tools/btool.cc +++ b/tools/btool.cc @@ -571,7 +571,7 @@ bool ParseEpOverride(const char *arg, Usb::EndpointPair *epp) int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(true); // leave this on, since libusb uses // stdio for debug messages diff --git a/tools/btranslate.cc b/tools/btranslate.cc index 1df42e7..8c529b1 100644 --- a/tools/btranslate.cc +++ b/tools/btranslate.cc @@ -61,7 +61,7 @@ void PrintHex(const char *str) int main() { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(false); diff --git a/tools/pppob.cc b/tools/pppob.cc index fe2d1aa..f85ba4a 100644 --- a/tools/pppob.cc +++ b/tools/pppob.cc @@ -128,7 +128,7 @@ void ProcessStdin(Modem &modem) int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(true); // leave this on, since libusb uses // stdio for debug messages diff --git a/tools/upldif.cc b/tools/upldif.cc index 1620523..d43390a 100644 --- a/tools/upldif.cc +++ b/tools/upldif.cc @@ -107,7 +107,7 @@ std::ostream& operator<< (std::ostream &os, const Store<Record> &store) int main(int argc, char *argv[]) { - INIT_I18N(PACKAGE); +// INIT_I18N(PACKAGE); cout.sync_with_stdio(true); // leave this on, since libusb uses // stdio for debug messages
On Aug 17, 2010, at 11:56 PM, Chris Frey wrote: > On Tue, Aug 17, 2010 at 11:18:41PM -0700, Eric Arseneau wrote: >>> Can you post the output from the following commands: >>> >>> pkg-config --cflags --libs glib-2.0 >> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include >> -I/opt/local/include -L/opt/local/lib -lglib-2.0 -lintl -liconv > > We should use this as a baseline, since it appears that btool compiled and > linked fine on your system, and that uses the same gettext / intl > as the others. > > So, as a hack, try adding -lintl -liconv to each _LDADD line in > tools/Makefile.am and trying again from scratch. Start at bidentify_LDADD > and go down from there. > > - Chris > > > ------------------------------------------------------------------------------ > 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