<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GNU libiconv for HP-UX in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798807#M494722</link>
    <description>&lt;P&gt;&amp;gt;I am still not sure if these info tell me whether the library is shared or archive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've told you two ways to confirm that it is a shlib.&amp;nbsp; ldd(1) and file(1).&amp;nbsp; And you can also use elfdump(1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;it doesn't include the sources.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Huh?&amp;nbsp; At the bottom of the page is: Tarred/Gzipped Source Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I still don't get why I did not need this library when compiling with the IBM compiler and I need it when compiling with GCC...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is nothing to get, that's just the way the compiler tool chain and run time architecture works on both machines.&amp;nbsp; Perhaps it is included in libc on IBM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2015 23:20:43 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2015-10-02T23:20:43Z</dc:date>
    <item>
      <title>GNU libiconv for HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798486#M494719</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I use the gnu compiler on a HP integrity server (HP-UX 11i v2).&lt;BR /&gt;&lt;BR /&gt;When I use the function iconv() defined in iconv.h, I need to add '-liconv' option in the compile command line.&lt;BR /&gt;I also had to install the GNU libiconv portage from here: &lt;A href="http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.14/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.14/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In the past, I compiled the same program using the IBM compiler and I did not need to add this option nor to add any additional library (I noticed there is already libiconv installed on the system when I run '/usr/sbin/swlist -l product': Libiconv 1.6.1.13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Libiconv - Character set conversion library).&lt;BR /&gt;&lt;BR /&gt;Now if I execute the 'ldd' command on the binary of my program, I can see that it has a dependency to libiconv:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;/usr/local/lib/hpux32/libiconv.a (libiconv.so.2)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It seems like a static librairy cause it's a '.a' file but it behaves like a shared library. I mean my program is dependent of the libiconv.&lt;BR /&gt;&lt;BR /&gt;My questions: Why libiconv from GNU is a shared library whereas it is a static librairy which is embedded in the binaries of the program when compiling with the IBM compiler ? Is there a way to also use libiconv as a static librairy when compiling with GNU ?&lt;BR /&gt;&lt;BR /&gt;PS: I also compiled the same program on linux with gcc and I did not need to add the '-liconv' option in the compile command line. It seems like a problem specific to HP-UX.&lt;BR /&gt;&lt;BR /&gt;Please don't hesitate to ask for any additional information.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 02:20:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798486#M494719</guid>
      <dc:creator>maxime2</dc:creator>
      <dc:date>2015-10-02T02:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: GNU libiconv for HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798514#M494720</link>
      <description>&lt;P&gt;&amp;gt;I noticed there is already libiconv installed on the system when I run '/usr/sbin/swlist -l product': Libiconv 1.6.1.13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Libiconv - Character set conversion library).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is probably only for /opt/gnome/.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;It seems like a static&amp;nbsp;library cause it's a '.a' file but it behaves like a shared library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somebody pulled a fast one.&amp;nbsp; ldd(1) will only show shlibs.&amp;nbsp; And file(1) will tell you it's a shlib.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Is there a way to also use libiconv as a static&amp;nbsp;library when compiling with GNU?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may have to build it yourself:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.14/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.14/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;gt;It seems like a problem specific to HP-UX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using archive system libs is frowned upon on HP-UX.&amp;nbsp; libc, etc only come in shared flavor.&lt;/P&gt;&lt;P&gt;Perhaps GNU agreed with that when porting to HP-UX?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 05:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798514#M494720</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-10-02T05:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: GNU libiconv for HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798544#M494721</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;Somebody pulled a fast one.&amp;nbsp; ldd(1) will only show shlibs.&amp;nbsp; And file(1) will tell you it's a shlib.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"shlibs" stands for "shared librairies", right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am still not sure if these info tell me whether the library is shared or static.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; You may have to build it yourself:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.14/" target="_blank" rel="nofollow"&gt;http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.14/&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ah yes, this is the link I posted in my first post. But it doesn't include the sources. However I think I can build from here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="ftp://ftp.mirrorservice.org/pub/gnu/libiconv/" target="_blank"&gt;ftp://ftp.mirrorservice.org/pub/gnu/libiconv/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I will give it a try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still don't get why I did not need this library when compiling with the IBM compiler and I need it when compiling with GCC...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: I am very sorry to post from a different account. I lost my password, so I asked for an email to recreate it but nothing came in my mailbox. Then I recreated an account with the same email (I was said the email is free so I thought my old account may have been deleted). Now when I connect using my email it brings me to my old account.. very strange..&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 09:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798544#M494721</guid>
      <dc:creator>maxime1</dc:creator>
      <dc:date>2015-10-02T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: GNU libiconv for HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798807#M494722</link>
      <description>&lt;P&gt;&amp;gt;I am still not sure if these info tell me whether the library is shared or archive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've told you two ways to confirm that it is a shlib.&amp;nbsp; ldd(1) and file(1).&amp;nbsp; And you can also use elfdump(1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;it doesn't include the sources.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Huh?&amp;nbsp; At the bottom of the page is: Tarred/Gzipped Source Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;I still don't get why I did not need this library when compiling with the IBM compiler and I need it when compiling with GCC...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is nothing to get, that's just the way the compiler tool chain and run time architecture works on both machines.&amp;nbsp; Perhaps it is included in libc on IBM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 23:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gnu-libiconv-for-hp-ux/m-p/6798807#M494722</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-10-02T23:20:43Z</dc:date>
    </item>
  </channel>
</rss>

