<?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: configure: error: Need to know how to pack structures with this compiler in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723701#M100868</link>
    <description>FWIW, if you want to pack a structure in gcc, you can use __attribute__((packed))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;typedef struct tagX&lt;BR /&gt;{&lt;BR /&gt;    int A;&lt;BR /&gt;    int B;&lt;BR /&gt;} __attribute__((packed)) X, *pX;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Feb 2006 09:10:12 GMT</pubDate>
    <dc:creator>Stephen Keane</dc:creator>
    <dc:date>2006-02-03T09:10:12Z</dc:date>
    <item>
      <title>configure: error: Need to know how to pack structures with this compiler</title>
      <link>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723698#M100865</link>
      <description>Hi,&lt;BR /&gt; I am working on HP UX 11.11 OS. Trying to build clamAV using gcc for 11.11 64 bit version.&lt;BR /&gt;I am getting above error. How to resolve that?&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Feb 2006 04:42:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723698#M100865</guid>
      <dc:creator>ambika_1</dc:creator>
      <dc:date>2006-02-03T04:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: configure: error: Need to know how to pack structures with this compiler</title>
      <link>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723699#M100866</link>
      <description>Hi,&lt;BR /&gt;found on the WEB:&lt;BR /&gt;1.&lt;BR /&gt;&amp;gt; ....and the problem is not due to the #pragma packed test, but is due to&lt;BR /&gt;&amp;gt; configure trying to link tcpwrapper (-lwrap) in.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; You could try:&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; ./configure --without-tcpwrappers&lt;BR /&gt;&lt;BR /&gt;2.&lt;BR /&gt;Could you try compiling the attachment, and running it, and noting the&lt;BR /&gt;output. Then do it again with each of the following compiler flags&lt;BR /&gt;added, one per re-compile:&lt;BR /&gt;&lt;BR /&gt;-xmemalign=1s&lt;BR /&gt;-xmemalign=8i&lt;BR /&gt;-xmemalign=2i&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;-trog&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char **argv) {&lt;BR /&gt;#pragma pack(1)&lt;BR /&gt; struct { char c; long l; } s;&lt;BR /&gt; if (sizeof(s)==sizeof(s.c)+sizeof(s.l)) {&lt;BR /&gt;  printf("ok\n");&lt;BR /&gt; } else {&lt;BR /&gt;  printf("not ok\n");&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Please let us know if either solves your problem !&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Feb 2006 08:27:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723699#M100866</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-02-03T08:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: configure: error: Need to know how to pack structures with this compiler</title>
      <link>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723700#M100867</link>
      <description>Ambika,&lt;BR /&gt;&lt;BR /&gt;ClamAV is included in the hpuxiexpress1 A.06.00-004 package (free download)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Fri, 03 Feb 2006 08:32:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723700#M100867</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2006-02-03T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: configure: error: Need to know how to pack structures with this compiler</title>
      <link>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723701#M100868</link>
      <description>FWIW, if you want to pack a structure in gcc, you can use __attribute__((packed))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;typedef struct tagX&lt;BR /&gt;{&lt;BR /&gt;    int A;&lt;BR /&gt;    int B;&lt;BR /&gt;} __attribute__((packed)) X, *pX;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Feb 2006 09:10:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723701#M100868</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2006-02-03T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: configure: error: Need to know how to pack structures with this compiler</title>
      <link>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723702#M100869</link>
      <description>ambika,&lt;BR /&gt;any update on this?</description>
      <pubDate>Mon, 06 Feb 2006 08:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/configure-error-need-to-know-how-to-pack-structures-with-this/m-p/3723702#M100869</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-02-06T08:53:54Z</dc:date>
    </item>
  </channel>
</rss>

