[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AIX 5.2: compiling problems
From: |
Michael Parson |
Subject: |
Re: AIX 5.2: compiling problems |
Date: |
Wed, 4 Oct 2006 12:25:22 -0500 |
User-agent: |
Mutt/1.4.2.1i |
On Wed, Oct 04, 2006 at 07:21:33PM +0200, Karl Voit wrote:
> Hi!
>
> I want to use GNU screen on an IBM AIX 5.2 system and I could not
> compile it:
>
> ,----[ uname ]
> | address@hidden:/home/voitka/downloads/screen-4.0.2>uname -a
> | AIX uxibm275 2 5 0040801A4C00
> | address@hidden:/home/voitka/downloads/screen-4.0.2>
> `----
>
> ./configure ... no problem so far
>
> ,----[ make ]
> | misc.c:648: error: too few arguments to function `setenv'
> `----
>
> Google-URLs found matching this problem:
>
> http://savannah.gnu.org/bugs/?14277
> http://tinyurl.com/rhs6y
>
> I changed following part in order to get over it:
>
> ,----[ misc.c - original part ]
> | #else /* USESETENV */
> | # if defined(linux) || defined(__convex__) || (BSD >= 199103)
> | )
> | setenv(var, value, 1);
> | # else
> | setenv(var, value);
> | # endif /* linux || convex || BSD >= 199103 */
> | #endif /* USESETENV */
> | }
> `----
>
> First, I added the "|| defined(__aix__)" but obviously this did not
> change anything. Perhaps, "aix" is not the right term here.
Are you using gcc?
You can get the default DEFINEs out of gcc with this:
gcc -E -dM - </dev/null
Run that and grab an appropriate aix defined.
--
Michael Parson
address@hidden