Bugs item #428054, was updated on 2001-05-28 13:27
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=110493&aid=428054&group_id=10493
Category: build
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Brian D. Carlstrom (bdc)
Assigned to: Mike Sperber (sperber)
Summary: scsh-0.5.2 on RS6000 with AIX4.3 and cc
Initial Comment:
From: Daniel Ortmann <ortmann@vnet.ibm.com>
To: scsh-bugs@zurich.ai.mit.edu
Subject: scsh-0.5.2 on RS6000 with AIX4.3 and 'cc':
scsh/network1.c compilation\
problem
Date: Wed, 5 Jan 2000 16:17:46 -0600
The following error messages occur when compiling
scsh/network1.c:
neon:scsh-0.5.2$ cc -c -I./cig -I./scsh/regexp -
DHAVE_CONFIG_H -I. -I. -O -qsou\
rce -o scsh/network1.o scsh/network1.c
"scsh/network1.c", line 25.12: 1506-275 (S) Unexpected
text 'int' encountered.
"scsh/network1.c", line 25.12: 1506-275 (S) Unexpected
text ')' encountered.
"scsh/network1.c", line 25.19: 1506-276 (S) Syntax
error: possible missing ')'?
"scsh/network1.c", line 25.12: 1506-343 (S)
Redeclaration of h_errno_which diff\
ers from previous declaration on line 55
of "/usr/include/netdb.h".
"scsh/network1.c", line 25.12: 1506-050 (I) Return
type "int**" in redeclaratio\
n is not compatible with the previous return
type "void*".
"scsh/network1.c", line 36.10: 1506-045 (S) Undeclared
identifier family.
"scsh/network1.c", line 59.22: 1506-045 (S) Undeclared
identifier scheme_name.
"scsh/network1.c", line 64.21: 1506-045 (S) Undeclared
identifier sockfd.
"scsh/network1.c", line 138.62: 1506-280 (W) Function
argument assignment betwe\
en types "unsigned long*" and "int*" is not allowed.
"scsh/network1.c", line 161.63: 1506-280 (W) Function
argument assignment betwe\
en types "unsigned long*" and "int*" is not allowed.
"scsh/network1.c", line 184.63: 1506-280 (W) Function
argument assignment betwe\
en types "unsigned long*" and "int*" is not allowed.
"scsh/network1.c", line 235.51: 1506-280 (W) Function
argument assignment betwe\
en types "unsigned long*" and "int*" is not allowed.
"scsh/network1.c", line 313.50: 1506-280 (W) Function
argument assignment betwe\
en types "unsigned long*" and "int*" is not allowed.
"scsh/network1.c", line 327.50: 1506-280 (W) Function
argument assignment betwe\
en types "unsigned long*" and "int*" is not allowed.
"scsh/network1.c", line 343.50: 1506-280 (W) Function
argument assignment betwe\
en types "unsigned long*" and "int*" is not allowed.
Here is the expansion of the offending lines from the
compiler listing:
24 |
25 | extern int h_errno;
25 + extern int (*(int *)h_errno_which());
"scsh/network1.c", line 25.12: 1506-275 (S)Unexpected
text 'int' encountered.
"scsh/network1.c", line 25.12: 1506-275 (S)Unexpected
text ')' encountered.
"scsh/network1.c", line 25.19: 1506-276 (S)Syntax
error: possible missing ')'?
"scsh/network1.c", line 25.12: 1506-343 (S)
Redeclaration of h_errno_which diffe\
rs from previous declaration on line 55
of "/usr/include/netdb.h".
"scsh/network1.c", line 25.12: 1506-050 (I)Return
type "int**" in redeclaration\
is not compatible with the previous return
type "void*".
26 |
----------------------------------------------------------------------
>Comment By: Mike Sperber (sperber)
Date: 2001-06-05 01:05
Message:
Logged In: YES
user_id=43931
This is also essentially the same bug report as #407067
(which is fixed)
----------------------------------------------------------------------
Comment By: Brian D. Carlstrom (bdc)
Date: 2001-05-28 16:42
Message:
Logged In: YES
user_id=27364
Sperber, I saw you submit a fix for AIX, so presumable you
have access to a box to work on this if it is different.
----------------------------------------------------------------------
Comment By: Brian D. Carlstrom (bdc)
Date: 2001-05-28 13:29
Message:
Logged In: YES
user_id=27364
From: Daniel Ortmann <ortmann@vnet.ibm.com>
Sender: ortmann@rchland.ibm.com
To: "Brian D. Carlstrom" <bdc@ai.mit.edu>
Subject: AIX compiler options from /etc/ibmcxx.cfg
Date: 06 Jan 2000 14:11:50 -0600
"Brian D. Carlstrom" <bdc@zurich.ai.mit.edu> writes:
> if there some sort of #ifndef AIX we can use to avoid
this problem...
Here is the content of /etc/ibmcxx.cfg in case it is useful
to you. It has
all relevant AIX compiler options; e.g., this is
where "_AIX" is defined.
*
* COMPONENT_NAME: (CC) AIX XL C-C++ Compiler
*
* FUNCTIONS: C/C++ Configuration file
*
* ORIGINS: 27
*
* (C) COPYRIGHT International Business Machines Corp.
1991, 1992, 1993, 199\
4
* All Rights Reserved
* Licensed Materials - Property of IBM
*
* US Government Users Restricted Rights - Use,
duplication or
* disclosure restricted by GSA ADP Schedule Contract
with IBM Corp.
*
* ANSI C compiler, UNIX header files
xlc: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -lc
proflibs = -L/lib/profiled,-L/usr/lib/profiled
options = -qansialias
* C compiler, extended mode
cc: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -lc
proflibs = -L/lib/profiled,-L/usr/lib/profiled
options = -qlanglvl=extended,-qnoro,-
qnoroconst
xlc128: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -lc128,-lc
proflibs = -L/lib/profiled,-L/usr/lib/profiled
options = -qansialias,-qldbl128
* C compiler, extended mode
cc128: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -lc128,-lc
proflibs = -L/lib/profiled,-L/usr/lib/profiled
options = -qlanglvl=extended,-qnoro,-
qnoroconst,-qldbl128
* Strict ANSI compiler, ANSI headers
c89: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -lc
proflibs = -L/lib/profiled,-L/usr/lib/profiled
options = -D_ANSI_C_SOURCE,-qansialias,-
qnolonglong
* standard c compiler aliased as bsdcc
bsdcc: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -lbsd, -lc
proflibs = -L/lib/profiled,-L/usr/lib/profiled
options = -H512,-T512, -qlanglvl=extended, -
qnoro, -D_BSD, -D_NO\
NSTD_TYPES, -D_NO_PROTO, -D_BSD_INCLUDES, -bnodelcsect, -
U__STR__, -U__MATH__
* ANSI C compiler compatible with acc on BSD
* Like xlc, but doesn't limit includes to ANSI only
content.
acc: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -lc
proflibs = -L/lib/profiled,-L/usr/lib/profiled
options = -H512,-T512, -D_ALL_SOURCE -DNULL=0
* C++ compiler
xlC: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries2 = -L/usr/ibmcxx/lib,-lC,-lm,-
lpthreads,-lc
proflibs = -L/usr/ibmcxx/lib/profiled,-
L/lib/profiled,-L/usr/lib/\
profiled
hdlibs = -L/usr/ibmcxx/lib,-lhC,-lhmd
* C++ compiler with 128 bit long double
xlC128: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries2 = -L/usr/ibmcxx/lib,-lC128,-lC,-lm,-
lpthreads,-lc128,-lc
proflibs = -L/usr/ibmcxx/lib/profiled,-
L/lib/profiled,-L/usr/lib/\
profiled
hdlibs = -L/usr/ibmcxx/lib,-lhC,-lhmd
options = -qldbl128
* standard c compiler aliased as xlc_r (AIX Threads)
xlc_r: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -L/usr/lib/threads,-lpthreads,-
lc_r,/usr/lib/libc.a
proflibs = -L/lib/profiled,-L/usr/lib/profiled
hdlibs = -L/usr/ibmcxx/lib,-lhmd_r
options = -qansialias,-D_THREAD_SAFE
* standard c compiler aliased as cc_r (AIX Threads)
cc_r: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -L/usr/lib/threads,-lpthreads,-
lc_r,/usr/lib/libc.a
proflibs = -L/lib/profiled,-L/usr/lib/profiled
hdlibs = -L/usr/ibmcxx/lib,-lhmd_r
options = -qlanglvl=extended,-qnoro,-
qnoroconst,-D_THREAD_SAFE
* xlC C++ compiler aliased as xlC_r (AIX Threads)
xlC_r: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
options = -qansialias,-D_THREAD_SAFE
libraries2 = -L/usr/lib/threads,-
L/usr/ibmcxx/lib,-lC,-lpthreads,-l\
c_r,-lm,/usr/lib/libc.a
proflibs = -L/usr/ibmcxx/lib/profiled,-
L/lib/profiled,-L/usr/lib/\
profiled
hdlibs = -L/usr/ibmcxx/lib,-lhC,-lhmd_r
* standard c compiler aliased as xlc_r4 (DCE)
xlc_r4: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -L/usr/lib/threads,-ldcelibc_r,-
ldcepthreads,-lpthrea\
ds_compat,-lpthreads,-lc_r,-lc
proflibs = -L/lib/profiled,-
L/usr/lib/profiled
hdlibs = -L/usr/ibmcxx/lib,-lhmd_r
options = -qansialias,-D_THREAD_SAFE,-
D_AIX_PTHREADS_D7,-D_AIX3\
2_THREADS=1,-D_AES_SOURCE,-D_AIX41,-I/usr/include/dce
* standard c compiler aliased as cc_r4 (DCE)
cc_r4: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -L/usr/lib/threads,-ldcelibc_r,-
ldcepthreads,-lpthread\
s_compat,-lpthreads,-lc_r,-lc
proflibs = -L/lib/profiled,-L/usr/lib/profiled
hdlibs = -L/usr/ibmcxx/lib,-lhmd_r
options = -qlanglvl=extended,-qnoro,-
qnoroconst,-D_THREAD_SAFE,-\
D_AIX_PTHREADS_D7,-D_AIX32_THREADS=1,-D_AES_SOURCE,-
D_AIX41,-I/usr/include/dce
* xlC C++ compiler aliased as xlC_r4 (DCE)
xlC_r4: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries2 = -L/usr/lib/threads,-
L/usr/ibmcxx/lib,-lC,-ldcelibc_r,-\
ldcepthreads,-lpthreads_compat,-lpthreads,-lc_r,-
lm,/usr/lib/libc.a
proflibs = -L/usr/ibmcxx/lib/profiled,-
L/lib/profiled,-L/usr/lib/\
profiled
hdlibs = -L/usr/ibmcxx/lib,-lhC,-lhmd_r
options = -qansialias,-D_THREAD_SAFE,-
D_AIX_PTHREADS_D7,-D_AIX32\
_THREADS=1,-D_AIX41,-D_AES_SOURCE,-I/usr/include/dce
* xlC C++ compiler aliased as CC_r4 (DCE)
CC_r4: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries2 = -L/usr/lib/threads,-
L/usr/ibmcxx/lib,-lC,-ldcelibc_r,-\
ldcepthreads,-lpthreads_compat,-lpthreads,-lc_r,-
lm,/usr/lib/libc.a
proflibs = -L/usr/ibmcxx/lib/profiled,-
L/lib/profiled,-L/usr/lib/\
profiled
hdlibs = -L/usr/ibmcxx/lib,-lhC,-lhmd_r
options = -D_THREAD_SAFE,-D_AIX_PTHREADS_D7,-
D_AIX32_THREADS=1,-\
D_AIX41,-D_AES_SOURCE,-I/usr/include/dce
* standard c compiler aliased as xlc_r7 (AIX POSIX
Draft 7Threads)
xlc_r7: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -L/usr/lib/threads,-
lpthreads_compat,-lpthreads,-lc_r\
,/usr/lib/libc.a
proflibs = -L/lib/profiled,-
L/usr/lib/profiled
hdlibs = -L/usr/ibmcxx/lib,-lhmd_r
options = -qansialias,-D_THREAD_SAFE,-
D_AIX_PTHREADS_D7
* standard c compiler aliased as cc_r7 (AIX POSIX Draft
7Threads)
cc_r7: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries = -L/usr/lib/threads,-
lpthreads_compat,-lpthreads,-lc_r,\
/usr/lib/libc.a
proflibs = -L/lib/profiled,-L/usr/lib/profiled
hdlibs = -L/usr/ibmcxx/lib,-lhmd_r
options = -qlanglvl=extended,-qnoro,-
qnoroconst,-D_THREAD_SAFE,-\
D_AIX_PTHREADS_D7
* xlC C++ compiler aliased as xlC_r7 (AIX POSIX Draft
7Threads)
xlC_r7: use = DEFLT
crt = /lib/crt0.o
mcrt = /lib/mcrt0.o
gcrt = /lib/gcrt0.o
libraries2 = -L/usr/lib/threads,-
L/usr/ibmcxx/lib,-lC,-lpthreads_co\
mpat,-lpthreads,-lc_r,-lm,/usr/lib/libc.a
proflibs = -L/usr/ibmcxx/lib/profiled,-
L/lib/profiled,-L/usr/lib/\
profiled
hdlibs = -L/usr/ibmcxx/lib,-lhC,-lhmd_r
options = -qansialias,-D_THREAD_SAFE,-
D_AIX_PTHREADS_D7
* common definitions
DEFLT: cppcomp = /usr/ibmcxx/exe/xlCentry
ccomp = /usr/ibmcxx/exe/xlcentry
code = /usr/ibmcxx/exe/xlCcode
cpp = /usr/ibmcxx/exe/xlCcpp
munch = /usr/ibmcxx/exe/munch
ipa = /usr/ibmcxx/exe/ipa
dis = /usr/ibmcxx/exe/dis
cppfilt = /usr/ibmcxx/bin/c++filt
bolt = /usr/ibmcxx/exe/bolt
as = /bin/as
ld = /bin/ld
xlC = /usr/ibmcxx/bin/xlC
cppinc = /usr/ibmcxx/include
options = -D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-
D_IBMR2,-D_POWER,-bp\
T:0x10000000,-bpD:0x20000000
ldopt = "b:o:e:u:R:H:Y:Z:L:T:A:V:k:j:"
hdlibs = -L/usr/ibmcxx/lib,-lhmd
xlCcopt = -qansialias
crt_64 = /lib/crt0_64.o
mcrt_64 = /lib/mcrt0_64.o
gcrt_64 = /lib/gcrt0_64.o
smplibraries = -lxlsmp
resexp = /usr/ibmcxx/etc/res.exp
--
Daniel Ortmann, IBM Circuit Technology, Rochester, MN 55901-
7829
ortmann@vnet.ibm.com or ortmann@us.ibm.com and 507.253.6795
(external)
ortmann@rchland.ibm.com and tieline 8.553.6795 (internal)
ortmann@isl.net and 507.288.7732 (home)
"The answers are so simple, and we all know where to look,
but it's easier just to avoid the question." -- Kansas
----------------------------------------------------------------------
Comment By: Brian D. Carlstrom (bdc)
Date: 2001-05-28 13:27
Message:
Logged In: YES
user_id=27364
From: Daniel Ortmann <ortmann@vnet.ibm.com>
Sender: ortmann@rchland.ibm.com
To: "Brian D. Carlstrom" <bdc@ai.mit.edu>
Subject: Re: scsh-0.5.2 on RS6000 with AIX4.3 and 'cc':
scsh/network1.c compila\
tion problem
Date: 06 Jan 2000 11:06:17 -0600
"Brian D. Carlstrom" <bdc@zurich.ai.mit.edu> writes:
> if there some sort of #ifndef AIX we can use to avoid
this problem...
The following prints "symbol '_AIX' is defined!"
#include <stdio.h>
int
main()
{
#ifdef _AIX
printf( "symbol '_AIX' is defined!\n" );
#else
printf( "symbol '_AIX' is NOT defined!\n" );
#endif
exit( 0 );
}
--
Daniel Ortmann, IBM Circuit Technology, Rochester, MN 55901-
7829
ortmann@vnet.ibm.com or ortmann@us.ibm.com and 507.253.6795
(external)
ortmann@rchland.ibm.com and tieline 8.553.6795 (internal)
ortmann@isl.net and 507.288.7732 (home)
"The answers are so simple, and we all know where to look,
but it's easier just to avoid the question." -- Kansas
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=110493&aid=428054&group_id=10493
|