Of all the gin joints in all the towns in all the world, Chris Frey had to walk into mine and say:
> On Sun, Jan 25, 2009 at 06:05:55PM -0800, Bill Paul wrote: > > Building the Barry code from CVS on FreeBSD works *almost* out of the > > box, but there are two small nits, both related to iconv(3). > > > > 1) On FreeBSD, iconv(3) lives in /usr/local/include/iconv.h and > > /usr/local/lib/libiconv.{a|so}. > > > > 2) The iconv.cc code calls iconv(3) as follows: > > > > iconv(cd, NULL, NULL, NULL, NULL); // reset cd's state > > size_t status = iconv(cd, (char**)&in, &inbytesleft, &out, > > &outbytesleft); > > I found the AM_ICONV automake macro, which in theory should take care of > both of these build issues. It should already be installed as part of your > gettext or iconv install. If you can run buildgen.sh and configure > successfully, you're probably ok. > > Could you try the latest CVS/git and let me know if it's fixed for you? > > Thanks, > - Chris Hm. Something's still not right here: [/u/wpaul/barry-cvs/barry]:mini{162}% ./buildgen.sh /usr/local/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION /usr/local/share/aclocal/xmms.m4:17: run info '(automake)Extending aclocal' /usr/local/share/aclocal/xmms.m4:17: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal configure.ac:86: required file `./config.rpath' not found configure.ac:9: installing `./missing' configure.ac:9: installing `./install-sh' examples/Makefile.am: installing `./depcomp' /usr/local/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION /usr/local/share/aclocal/xmms.m4:17: run info '(automake)Extending aclocal' /usr/local/share/aclocal/xmms.m4:17: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal Putting files in AC_CONFIG_AUX_DIR, `..'. /usr/local/share/aclocal/xmms.m4:17: warning: underquoted definition of XMMS_TEST_VERSION /usr/local/share/aclocal/xmms.m4:17: run info '(automake)Extending aclocal' /usr/local/share/aclocal/xmms.m4:17: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal Putting files in AC_CONFIG_AUX_DIR, `..'. [/u/wpaul/barry-cvs/barry]:mini{163}% That "required file `./config.rpath' not found" error prevents the configure script from being generated. Line 86 is: AM_ICONV I found a config.rpath script here: https://gnunet.org/svn/Extractor/config.rpath I put this file in the top level directory as an experiment. This makes buildgen.sh happy. If I run configure --help now, I see: --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir If I run the script without specifying this option, I get: [/u/wpaul/barry-cvs/barry]:mini{206}% ./configure --prefix=/usr/local/barry checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes [...] checking for shared library run path origin... done checking for iconv... no, consider installing GNU libiconv checking for dirent.h that defines DIR... yes checking for library containing opendir... none required [...] I if specify the path, then I get: [/u/wpaul/barry-cvs/barry]:mini{207}% ./configure --prefix=/usr/local/barry --with-libiconv-prefix=/usr/local checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes [...] checking for shared library run path origin... done checking for iconv... yes checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib checking for iconv declaration... extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for dirent.h that defines DIR... yes checking for library containing opendir... none required [...] When I configure it this way, the code builds successfully. So I think you need to commit a copy of the config.rpath script to the repository to make AM_ICONV work right. -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu wp...@windriver.com | Wind River Systems ============================================================================= "I put a dollar in a change machine. Nothing changed." - George Carlin ============================================================================= ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel