<?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: make w/gcc--need help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496829#M20188</link>
    <description>Unfortunately, you may need to go back to wherever you got this source code in order  to "fix" your remaining problems.  I don't have any experience with programming the PAM stuff, and the remaining errors appear to be syntax related.&lt;BR /&gt;&lt;BR /&gt;I would imagine that the source code you're trying to compile came with several different README's and maybe an INSTALL file.  I would look through these carefully to see if they have any pointers on compiling your source under HP-UX.</description>
    <pubDate>Wed, 21 Feb 2001 21:24:44 GMT</pubDate>
    <dc:creator>James A. Donovan</dc:creator>
    <dc:date>2001-02-21T21:24:44Z</dc:date>
    <item>
      <title>make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496820#M20179</link>
      <description />
      <pubDate>Wed, 21 Feb 2001 18:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496820#M20179</guid>
      <dc:creator>Richard Mertz</dc:creator>
      <dc:date>2001-02-21T18:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496821#M20180</link>
      <description>It looks like you are not picking up the type definitions from the /usr/include/security/pam_appl.h file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2001 19:04:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496821#M20180</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-02-21T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496822#M20181</link>
      <description>What do you mean--I am not a "C" guy.  &lt;BR /&gt;&lt;BR /&gt;It looks like everytime there is an * in a declaration, gcc doesn't like it--the following is an excerpt from pam_modules.h&lt;BR /&gt;&lt;BR /&gt;extern int&lt;BR /&gt;pam_sm_authenticate(&lt;BR /&gt;        pam_handle_t    *pamh,&lt;BR /&gt;        int     flags,&lt;BR /&gt;        int     argc,&lt;BR /&gt;        const char      **argv);&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2001 19:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496822#M20181</guid>
      <dc:creator>Richard Mertz</dc:creator>
      <dc:date>2001-02-21T19:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496823#M20182</link>
      <description>gcc is not complaining about the "*".  It's complaining that it doesn't know what a "pam_handle_t" is.  This structure is defined in the /usr/include/security/pam_appl.h file.&lt;BR /&gt;&lt;BR /&gt;If you are using a Makefile, then try and find a line in it that contains the string "-I /usr/include" and append "-I /usr/include/security" to it.&lt;BR /&gt;&lt;BR /&gt;If you're running gcc from the command line, then try,&lt;BR /&gt;&lt;BR /&gt;# gcc -I /usr/include/security -Wall -fPIC -c pam_radius_auth.c -o pam_radius_auth.o</description>
      <pubDate>Wed, 21 Feb 2001 20:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496823#M20182</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-02-21T20:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496824#M20183</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;Can you point out which line is #19 in the pam_modules.h snippet that you included?&lt;BR /&gt;&lt;BR /&gt;I believe that Jim is suggesting that the pam_handle_t typedef isn't being defined prior to it use in pam_modules.h.&lt;BR /&gt;&lt;BR /&gt;So you'll have to find which header file defines pam_handle_t and make sure that it gets included before pam_modules.h.&lt;BR /&gt;&lt;BR /&gt;I wish I could be more help, but I haven't built this package myself.&lt;BR /&gt;&lt;BR /&gt;-sam</description>
      <pubDate>Wed, 21 Feb 2001 20:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496824#M20183</guid>
      <dc:creator>Sam Nicholls</dc:creator>
      <dc:date>2001-02-21T20:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496825#M20184</link>
      <description>Line 19 is:&lt;BR /&gt;&lt;BR /&gt;pam_handle_t    *pamh,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;from the above snippet.&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2001 20:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496825#M20184</guid>
      <dc:creator>Richard Mertz</dc:creator>
      <dc:date>2001-02-21T20:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496826#M20185</link>
      <description>Jim,&lt;BR /&gt;&lt;BR /&gt;I added the -I/usr/include/security and got the same results.&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 21 Feb 2001 20:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496826#M20185</guid>
      <dc:creator>Richard Mertz</dc:creator>
      <dc:date>2001-02-21T20:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496827#M20186</link>
      <description>Ok, try this then:&lt;BR /&gt;&lt;BR /&gt;Modify /usr/include/security/pam_modules.h&lt;BR /&gt;by adding on line 5 the following,&lt;BR /&gt;&lt;BR /&gt;#include &lt;BR /&gt;&lt;BR /&gt;*** Caveat, this modification is unlikely to be supported by HP, but I think it should work to get the needed type definitions.</description>
      <pubDate>Wed, 21 Feb 2001 20:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496827#M20186</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-02-21T20:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496828#M20187</link>
      <description>Jim--we have progress.  Now, I get:&lt;BR /&gt;&lt;BR /&gt;pam_radius_auth.c: In function `ipstr2long':&lt;BR /&gt;pam_radius_auth.c:145: warning: subscript has type `char'&lt;BR /&gt;pam_radius_auth.c: In function `good_ipaddr':&lt;BR /&gt;pam_radius_auth.c:181: warning: subscript has type `char'&lt;BR /&gt;pam_radius_auth.c: In function `host2server':&lt;BR /&gt;pam_radius_auth.c:235: warning: subscript has type `char'&lt;BR /&gt;pam_radius_auth.c: In function `rad_converse':&lt;BR /&gt;pam_radius_auth.c:921: warning: passing arg 3 of `pam_get_item' from incompatibl&lt;BR /&gt;e pointer type&lt;BR /&gt;pam_radius_auth.c:924: warning: passing arg 2 of pointer to function from incomp&lt;BR /&gt;atible pointer type&lt;BR /&gt;pam_radius_auth.c: At top level:&lt;BR /&gt;pam_radius_auth.c:957: syntax error before `int'&lt;BR /&gt;pam_radius_auth.c: In function `pam_sm_authenticate':&lt;BR /&gt;pam_radius_auth.c:980: warning: passing arg 2 of `pam_get_user' from incompatibl&lt;BR /&gt;e pointer type&lt;BR /&gt;pam_radius_auth.c:1008: warning: passing arg 3 of `pam_get_item' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c:1022: warning: passing arg 3 of `pam_get_item' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c:1064: warning: passing arg 3 of `pam_get_item' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c:1067: warning: passing arg 3 of `add_attribute' discards quali&lt;BR /&gt;fiers from pointer target type&lt;BR /&gt;pam_radius_auth.c: At top level:&lt;BR /&gt;pam_radius_auth.c:1161: syntax error before `int'&lt;BR /&gt;pam_radius_auth.c: In function `pam_sm_setcred':&lt;BR /&gt;pam_radius_auth.c:1168: warning: passing arg 3 of `pam_get_data' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c: In function `pam_private_session':&lt;BR /&gt;pam_radius_auth.c:1193: warning: passing arg 2 of `pam_get_user' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c:1214: warning: passing arg 3 of `pam_get_item' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c: At top level:&lt;BR /&gt;pam_radius_auth.c:1261: syntax error before `int'&lt;BR /&gt;pam_radius_auth.c:1268: syntax error before `int'&lt;BR /&gt;pam_radius_auth.c:1279: syntax error before `int'&lt;BR /&gt;pam_radius_auth.c: In function `pam_sm_chauthtok':&lt;BR /&gt;pam_radius_auth.c:1299: warning: passing arg 2 of `pam_get_user' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c:1320: warning: passing arg 3 of `pam_get_item' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c:1329: warning: passing arg 3 of `pam_get_item' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;pam_radius_auth.c:1334: warning: passing arg 3 of `pam_get_item' from incompatib&lt;BR /&gt;le pointer type&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2001 21:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496828#M20187</guid>
      <dc:creator>Richard Mertz</dc:creator>
      <dc:date>2001-02-21T21:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496829#M20188</link>
      <description>Unfortunately, you may need to go back to wherever you got this source code in order  to "fix" your remaining problems.  I don't have any experience with programming the PAM stuff, and the remaining errors appear to be syntax related.&lt;BR /&gt;&lt;BR /&gt;I would imagine that the source code you're trying to compile came with several different README's and maybe an INSTALL file.  I would look through these carefully to see if they have any pointers on compiling your source under HP-UX.</description>
      <pubDate>Wed, 21 Feb 2001 21:24:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496829#M20188</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-02-21T21:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496830#M20189</link>
      <description>Jim:&lt;BR /&gt;&lt;BR /&gt;Thanks for trying.  Unfortunately, I got the source from freradius.org and they said that the only thing it had been used on was Red Hat and Solaris.  No one was interested in HP-UX.&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 21 Feb 2001 21:47:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496830#M20189</guid>
      <dc:creator>Richard Mertz</dc:creator>
      <dc:date>2001-02-21T21:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: make w/gcc--need help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496831#M20190</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;I don't know if it will work, but you can try this.&lt;BR /&gt;Change following part in pam_radius_auth.h:&lt;BR /&gt;#ifdef sun&lt;BR /&gt;#define PAM_EXTERN extern&lt;BR /&gt;#define CONST&lt;BR /&gt;#else&lt;BR /&gt;#define CONST const&lt;BR /&gt;#endif&lt;BR /&gt;----&amp;gt;&lt;BR /&gt;#define PAM_EXTERN&lt;BR /&gt;#define CONST&lt;BR /&gt;&lt;BR /&gt;Hope this helps a little bit,&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Thu, 22 Feb 2001 07:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/make-w-gcc-need-help/m-p/2496831#M20190</guid>
      <dc:creator>Thomas Kollig</dc:creator>
      <dc:date>2001-02-22T07:45:48Z</dc:date>
    </item>
  </channel>
</rss>

