Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

porting iconv

5 views
Skip to first unread message

piesse

unread,
Mar 31, 2009, 4:54:07 AM3/31/09
to
I need iconv and can't find a binary for os/2, si I tried to compile the
libiconv source from the GNU repository.

I have Paul Smedley's building environment in place (which still uses
gcc335)
After sh configure and make, the attempt stops with following error:

echo "LIBRARY charset INITINSTANCE" > .libs/charset.def
echo "DESCRIPTION \"charset\"" >> .libs/charset.def
echo DATA >> .libs/charset.def
echo " SINGLE NONSHARED" >> .libs/charset.def
echo EXPORTS >> .libs/charset.def
emxexp .libs/libcharset.la-2.o >> .libs/charset.def
gcc -Zdll -Zcrtdll -o .libs/charset.dll .libs/libcharset.la-2.o
-mcpu=pentium3
.libs/charset.def
rm -f .libs/libcharset.la-1.o .libs/libcharset.la-2.o
(cd .libs && rm -f charset.a && ln -s charset.dll charset.a)
using piecewise archive linking...
ar.exe cru .libs/charset.a localcharset.o
ar.exe: .libs/charset.a: File format not recognized
make.exe[2]: *** [libcharset.la] Error 1
make.exe[2]: Leaving directory `U:/libiconv-1.12/libcharset/lib'
make.exe[1]: *** [all] Error 2
make.exe[1]: Leaving directory `U:/libiconv-1.12/libcharset'
make: *** [lib/localcharset.h] Error 2

What is going wrong here?

thanks
Piersante

KO Myung-Hun

unread,
Mar 31, 2009, 8:21:36 AM3/31/09
to piesse
Hi/2.

It's because 'ln' links 'charset.dll' to 'charset.a', but ar.exe does
not know about '.dll'.

You should use libtoolize from OS/2 port of libtool.

And overwrite libtool.m4 from OS/2 port of libtool to iconv one.

Finally, you should rerun auto-tools.

--
KO Myung-Hun

Using Mozilla SeaMonkey 1.1.14
Under OS/2 Warp 4 for Korean with FixPak #15
On AMD ThunderBird 1 GHz with 512 MB RAM

Korean OS/2 User Community : http://www.ecomstation.co.kr

Lars Erdmann

unread,
Mar 31, 2009, 10:56:16 AM3/31/09
to
If it helps: VACPP V3.x comes with such a utility. My understanding is it
does the same as the Unix program.

Lars


"piesse" <pie...@despammed.com> schrieb im Newsbeitrag
news:73e2maF...@mid.individual.net...

Ilya Zakharevich

unread,
Mar 31, 2009, 4:50:12 PM3/31/09
to
On 2009-03-31, piesse <pie...@despammed.com> wrote:
> I need iconv and can't find a binary for os/2

??? My compile is on Hobbes (EMX). Another is used by Froloff's ports.

(The names of the DLLs confict! Do not forget to choose
compiler-specific name for such widely used DLLs...)

Hope this helps,
Ilya

piesse

unread,
Apr 2, 2009, 11:17:07 AM4/2/09
to
Ilya Zakharevich wrote:
>
> ??? My compile is on Hobbes (EMX). Another is used by Froloff's ports.


I did find a "Companion library ICONV.DLL to iconv2- 0_2_1-bin.zip", but
the latter executable doesn't seem to be there

thanks

Piersante

Ilya Zakharevich

unread,
Apr 2, 2009, 5:22:10 PM4/2/09
to

Googling groups `iconv2' finds a reference to Unix-os2.

ilyaz.org/software/tmp

Anyway, as this reference reminds us, what you found is obsolete.
There is iconv0.2.1a.zip.

Hope this helps,
Ilya

Dave Yeo

unread,
Apr 2, 2009, 5:45:09 PM4/2/09
to

I think that Piesse is thinking of gnu libiconv of which there are ports
floating around but all the sites I checked are now defunct. 1.8.1 and
newer included makefiles etc for EMX.
Dave

Ilya Zakharevich

unread,
Apr 6, 2009, 10:17:46 PM4/6/09
to
On 2009-04-02, Dave Yeo <dave....@gmail.com> wrote:
> I think that Piesse is thinking of gnu libiconv of which there are ports
> floating around but all the sites I checked are now defunct. 1.8.1 and
> newer included makefiles etc for EMX.

Per another post of today:
http://ebisa.hp.infoseek.co.jp/os2/index.htm#git

Hope this helps,
Ilya

Dave Yeo

unread,
Apr 6, 2009, 11:36:52 PM4/6/09
to

You beat me to it :) Sadly I notice that the unixos2.org site is no more
as well as a couple of other sites that I expected to find ports of gnu
libiconv.
Dave

Steven Levine

unread,
Apr 8, 2009, 11:51:22 AM4/8/09
to
In <oTzCl.21825$PH1.18037@edtnps82>, on 04/07/2009
at 03:36 AM, Dave Yeo <dave....@gmail.com> said:

Hi,

>You beat me to it :) Sadly I notice that the unixos2.org site is no more
>as well as a couple of other sites that I expected to find ports of gnu
>libiconv.

Try

http://www.unixos2.com/


Steven

--
--------------------------------------------------------------------------------------------
Steven Levine <ste...@earthlink.bogus.net>
eCS/Warp/DIY etc. www.scoug.com www.ecomstation.com
--------------------------------------------------------------------------------------------

Dave Yeo

unread,
Apr 8, 2009, 7:02:07 PM4/8/09
to
On 04/08/09 08:51 am, Steven Levine wrote:
> In<oTzCl.21825$PH1.18037@edtnps82>, on 04/07/2009
> at 03:36 AM, Dave Yeo<dave....@gmail.com> said:
>
> Hi,
>
>> You beat me to it :) Sadly I notice that the unixos2.org site is no more
>> as well as a couple of other sites that I expected to find ports of gnu
>> libiconv.
>
> Try
>
> http://www.unixos2.com/
>

Ah, seems my bookmark was broken or both the .org and .com were
registered and now just the .com is. Anyways thanks, I'll update my
bookmarks
Dave

0 new messages