screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AIX 5.2: compiling problems


From: Karl Voit
Subject: AIX 5.2: compiling problems
Date: Wed, 4 Oct 2006 19:21:33 +0200
User-agent: Mutt/1.5.11

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.

Then I used the dirty hack by adding ", 1" to the second
setenv-statement directly.

,----[ misc.c - altered part ]
| #else /* USESETENV */
| # if defined(linux) || defined(__convex__) || (BSD >= 199103) || 
defined(__aix__)
|   setenv(var, value, 1);
| # else
|   setenv(var, value, 1);
| # endif /* linux || convex || BSD >= 199103 */
| #endif /* USESETENV */
| }
`----

That "solved" the error-message above.

,----[ current problem ]
| address@hidden:/home/voitka/downloads/screen-4.0.2>make
| [...]
|         gcc -c -I. -I.    -g -O2 socket.c
| In file included from screen.h:38,
|                  from socket.c:37:
| osdef.h:92: error: conflicting types for `naccept'
| /usr/include/sys/socket.h:424: error: previous declaration of `naccept'
| make: 1254-004 The error code from the last command is 1.
|
|
| Stop.
| address@hidden:/home/voitka/downloads/screen-4.0.2>
`----

Google could not help me with the second problem above. So perhaps
someone is using GNU screen on an old AIX box and can provide a little
of help ...


TNX 4 help!

PS: For those who will ask: No, I could not find any precompiled
binary package of GNU screen for AIX.


-- 
Karl VOIT                                  http://www.Karl-Voit.at/howtos/#email




reply via email to

[Prev in Thread] Current Thread [Next in Thread]