Hi, Thanks for the feedback. I changed the order of my PATH and added an entry for LD_LIBRARY_PATH and this seems to have solved the problem.
Thanks Again Graeme -----Original Message----- From: Håkan Stefansson [mailto:[EMAIL PROTECTED] Sent: 25 March 2005 18:29 To: Graeme Hindmarsh Cc: 'samba@lists.samba.org' Subject: Re: [Samba] iconv not working on Sparc Solaris 8 Graeme Hindmarsh wrote: > Hi, > > I have installed gettext using the configure --with-libiconv-prefix={dir} > I then reinstalled libiconv, following make distclean, but there was no > configure option to point to the gettext lib. > > I then recompiled samba but have had the same result and iconv is still not > working. > > Is there something that I am doing wrong or missing out, do I need to set > LDFLAGS or any other environment variables? > > Any help would be greatly appreciated. > > Thanks > Graeme I see from your configure output below that iconv was found in /usr/lib. This is Sun's iconv, that doesn't work with samba. Was that configure run before or after you installed libiconv in /usr/local? What did your latest samba configure say about this? My samba 3.0.12 with working libiconv support runs under Solaris 7. I am using gcc 3.x.y, GNU make and Sun's linker. I also use LD_LIBRARY_PATH=/usr/local/lib and in my PATH I have /usr/local/bin before /usr/bin and /usr/ccs/bin. I don't remember what configure options I used for libiconv and gettext. I'm afraid I can't give you much better info about my setup until I'm back at work on Tuesday. Håkan > -----Original Message----- > From: Håkan Stefansson [mailto:[EMAIL PROTECTED] > Sent: 25 March 2005 12:50 > To: Graeme Hindmarsh > Cc: 'samba@lists.samba.org' > Subject: Re: [Samba] iconv not working on Sparc Solaris 8 > > Graeme Hindmarsh wrote: > >>Hi, >> >> >> >>I am trying to compile Samba 3.0.13 but when I run configure I get the >>following in the output. >> >> >> >>checking for iconv in /usr/lib... yes >> >>checking can we convert from CP850 to UCS2-LE?... no >> >>checking can we convert from IBM850 to UCS2-LE?... no >> >>checking can we convert from ASCII to UCS2-LE?... no >> >>checking can we convert from 646 to UCS2-LE?... 646 >> >>checking can we convert from UTF-8 to UCS2-LE?... UTF-8 >> >>checking for iconv in /usr/local/lib... yes >> >>checking can we convert from CP850 to UCS2-LE?... no >> >>checking can we convert from IBM850 to UCS2-LE?... no >> >>checking can we convert from ASCII to UCS2-LE?... no >> >>checking can we convert from 646 to UCS2-LE?... no >> >>checking can we convert from UTF-8 to UCS2-LE?... no >> >>checking can we convert from UTF8 to UCS2-LE?... no >> >>configure: WARNING: Sufficient support for iconv function was not found. >> >> Install libiconv from http://freshmeat.net/projects/libiconv/ for > > better > >>cha >> >>rset compatibility! >> >> >> >>I have compiled from source and installed libiconv-1.9.2 in /usr/local but >>it just does not seem to work. >> >>Without iconv Samba will just fill up its log files with character >>conversion errors and generally not work. >> >> >> >>I have tried libiconv-1.9.1, libiconv-1.8 and Samba 3.0.11. >> >>GNU gcc 2.95.3 and gcc 3.4.2 >> >> >> >>Can anybody help? >> >> >> >>Thanks >> >>Graeme >> >> >> >> >> > > > There is a mutual dependency between libiconv and GNU gettext. That is, > gettext is needed to get libiconv to work while gettext neeeds libiconv. > (IIRC this is mentioned in a README or INSTALL file.) > > I have tested the following procedure on Solaris 7 and 9 with various > versions of samba 3.0.x, most recently with samba 3.0.12 under Solaris > 7. (Sorry, I don't remember what libiconv and gettext versions I used > and can't check now as I'm at home.) > > 1. Install libiconv from source > 2. Install gettext fron source > 3. Remove (make distclean) libiconv and reinstall it > > Then you will need to reinstall samba with the configure parameter > --with-libiconv=/usr/local (assuming the libraries are in /usr/local/lib) > > Håkan Stefansson > I -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba