From: bill@bcserv.wustl.edu (Eldridge (Bill))
Newsgroups: fj.mail-lists.x-window
Subject: more of gcc-2.2.2 & X11R5 problems
Date: 10 Sep 92 03:43:49 GMT
Distribution: fj
Organization: Washington University in Saint Louis, MO USA

Date: 9 Sep 92 17:46:29 GMT
Message-Id: <bill.716060789@bcserv>
Newsgroups: comp.windows.x

i'll try to be specific on this.  i've got a sparcstation ipx
running SunOS 4.1.2, and i've having problems compiling
X11R5 using gcc-2.2.2
 
doing a "make World" (no flags), i get lots of "handle_x_errors",
"comparison is always 1 due to limited range of data type", and
 a "warning: cast from pointer to integer of 
different size".  this is at patch-level-6: i've been having
a lot of problems with it, so i copied over the currently 
running version, did a make clean, and then a make World.
i had tried doing this from scratch, ran into problems, tried
moving around the malloc.h, calloc.h and realloc.h files like
the release notes say, and i continue to get about the same
messages after recompiling this about 6 or 7 times, with
small changes.
there's a later patch that could fix this, i'd gladly install
up to patch 17.  it's just the 3-4 hours to compile each
attempt has me wanting to avoid this.  
 
i'm compiling in /usra/local/X11R5_new
 
i enclose the errors, since someone's previous question on this
matter had not had enough documentation to decipher - sorry if 
it's overkill.
 
thanks,
bill  (bill@bcserv.wustl.edu)
________________________________________________________
 
# cat world.log | grep : | more
Wed Sep  9 04:51:50 CDT 1992
cc -c    -I../../.     -DINCLUDE_ALLOCA_H  -DXFILESEARCHP
ATHDEFAULT=\"/usra/local/X11R5_new/lib/X11/%L/%T/%N%C%S:/
usra/local/X11R5_new/lib/X11/%l/%T/%N%C%S:/usra/local/X11
R5_new/lib/X11/%T/%N%C%S:/usra/local/X11R5_new/lib/X11/%L
/%T/%N%S:/usra/local/X11R5_new/lib/X11/%l/%T/%N%S:/usra/l
ocal/X11R5_new/lib/X11/%T/%N%S\" -DSUNSHLIB -DSHAREDCODE 
-pic -O Intrinsic.c
cc -c -O    -I../../.     -DINCLUDE_ALLOCA_H  -DXFILESEAR
CHPATHDEFAULT=\"/usra/local/X11R5_new/lib/X11/%L/%T/%N%C%
S:/usra/local/X11R5_new/lib/X11/%l/%T/%N%C%S:/usra/local/
X11R5_new/lib/X11/%T/%N%C%S:/usra/local/X11R5_new/lib/X11
/%L/%T/%N%S:/usra/local/X11R5_new/lib/X11/%l/%T/%N%S:/usr
a/local/X11R5_new/lib/X11/%T/%N%S\" Intrinsic.c
pexPc.c: In function `PEXGetPipelineContext':
pexPc.c:1372: warning: cast from pointer to integer of di
fferent size
miInquire.c: In function `inquirePSurfaceChars':
miInquire.c:1233: warning: cast from pointer to integer o
f different size
XTouch.c: In function `handle_x_errors':
XTouch.c:1861: warning: comparison is always 1 due to lim
ited range of data type
XPErrors.c: In function `handle_x_errors':
XPErrors.c:1990: warning: comparison is always 1 due to l
imited range of data type
XSelInput.c: In function `handle_x_errors':
XSelInput.c:970: warning: comparison is always 1 due to l
imited range of data type
XSendEv.c: In function `handle_x_errors':
XSendEv.c:1239: warning: comparison is always 1 due to li
mited range of data type
gc.c: In function `DoChangeGC':
gc.c:104: warning: comparison is always 1 due to limited 
range of data type
gc.c:135: warning: comparison is always 1 due to limited 
range of data type
gc.c:146: warning: comparison is always 1 due to limited 
range of data type
gc.c:157: warning: comparison is always 1 due to limited 
range of data type
gc.c:167: warning: comparison is always 1 due to limited 
range of data type
gc.c:178: warning: comparison is always 1 due to limited 
range of data type
gc.c:390: warning: comparison is always 1 due to limited 
range of data type
Handlers.c: In function `DragOnePointHandler':
Handlers.c:75: warning: cast from pointer to integer of d
ifferent size
Handlers.c:88: warning: cast from pointer to integer of d
ifferent size
Handlers.c: In function `DragTwoPointsHandler':
Handlers.c:585: warning: cast from pointer to integer of 
different size
bmtoa.c: In function `copy_stdin':
bmtoa.c:51: warning: comparison between pointer and integ
er
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
actions.c: In function `PopdownFileDialogAction':
actions.c:195: warning: cast to pointer from integer of d
ifferent size
handler.c: In function `SendTree':
handler.c:92: warning: cast from pointer to integer of di
fferent size
handler.c: In function `AnyChosen':
handler.c:341: warning: cast from pointer to integer of d
ifferent size
handler.c: In function `SetResourceString':
handler.c:472: warning: cast from pointer to integer of d
ifferent size
handler.c: In function `SetOnlyMatchingWidgets':
handler.c:871: warning: cast to pointer from integer of d
ifferent size
utils.c: In function `_PopdownFileDialog':
utils.c:477: warning: cast from pointer to integer of dif
ferent size
wtree.c: In function `TreeToggle':
wtree.c:156: warning: cast from pointer to integer of dif
ferent size
wtree.c: In function `_TreeSelectNode':
wtree.c:404: warning: cast to pointer from integer of dif
ferent size
In file included from twm.h:297, from gram.c:44:
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.2/2.2.2/include
/stdlib.h:29: conflicting types for `malloc'
gram.c:1: previous declaration of `malloc'
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.2/2.2.2/include
/stdlib.h:33: conflicting types for `realloc'
gram.c:1: previous declaration of `realloc'
add_window.c: In function `AddWindow':
add_window.c:798: warning: assignment makes integer from 
pointer without a castadd_window.c: In function `GrabButt
ons':
add_window.c:933: warning: comparison between pointer and
 integer
menus.c:57: warning: initialization of `RootFunction' mak
es integer from pointer without a cast
menus.c: In function `InitMenus':
menus.c:116: warning: assignment makes integer from point
er without a cast
menus.c:120: warning: assignment makes integer from point
er without a cast
menus.c:121: warning: assignment makes integer from point
er without a cast
menus.c: In function `ExecuteFunction':
menus.c:1344: warning: assignment makes integer from poin
ter without a cast
menus.c:1468: warning: comparison between pointer and int
eger
menus.c: In function `DeIconify':
menus.c:2430: warning: comparison between pointer and int
eger
menus.c: In function `Iconify':
menus.c:2510: warning: comparison between pointer and int
eger
events.c: In function `InitEvents':
events.c:133: warning: assignment makes integer from poin
ter without a cast
events.c:134: warning: assignment makes integer from poin
ter without a cast
events.c: In function `RedoIconName':
events.c:952: warning: comparison between pointer and int
eger
events.c: In function `HandleMotionNotify':
events.c:1490: warning: comparison between pointer and in
teger
events.c: In function `HandleButtonRelease':
events.c:1605: warning: assignment makes integer from poi
nter without a cast
events.c:1609: warning: comparison between pointer and in
teger
events.c:1614: warning: comparison between pointer and in
teger
events.c:1643: warning: comparison between pointer and in
teger
events.c:1662: warning: comparison between pointer and in
teger
events.c:1667: warning: comparison between pointer and in
teger
events.c: In function `HandleButtonPress':
events.c:1810: warning: comparison between pointer and in
teger
events.c:1870: warning: comparison between pointer and in
teger
events.c:1887: warning: assignment makes integer from poi
nter without a cast
events.c:1907: warning: assignment makes integer from poi
nter without a cast
events.c:1922: warning: assignment makes integer from poi
nter without a cast
 There are 73 lines left (65%). Press <space> for more, oevents.c:1928: warning: comparison between pointer and in
teger
events.c:1935: warning: comparison between pointer and in
teger
events.c: In function `HandleEnterNotify':
events.c:2143: warning: comparison between pointer and in
teger
make: Warning: Target `all' not remade because of errors
viewres.c: In function `variable_labeltype_callback':
viewres.c:440: warning: cast from pointer to integer of d
ifferent size
viewres.c: In function `toggle_callback':
viewres.c:701: warning: cast from pointer to integer of d
ifferent size
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
gcc -fstrength-reduce -fpcc-struct-return -c -O    -I../.
./.     -DBINDIR=\"/usra/local/X11R5_new/bin\" -DXDMDIR=\
"/usra/local/X11R5_new/lib/X11/xdm\"    -DSECURE_RPC   -D
TCPCONN -DUNIXCONN  -DOSMAJORVERSION=4  -DOSMINORVERSION=
2  '-DDEF_SERVER_LINE=":0 local /usra/local/X11R5_new/bin
/X :0"'  '-DXRDB_PROGRAM="/usra/local/X11R5_new/bin/xrdb"
'  '-DDEF_SESSION="/usra/local/X11R5_new/bin/xterm -ls"' 
 '-DDEF_USER_PATH=":/bin:/usr/bin:/usra/local/X11R5_new/b
in:/usr/ucb"'  '-DDEF_SYSTEM_PATH="/etc:/bin:/usr/bin:/us
ra/local/X11R5_new/bin:/usr/ucb"'  '-DDEF_SYSTEM_SHELL="/
bin/sh"'  '-DDEF_FAILSAFE_CLIENT="/usra/local/X11R5_new/b
in/xterm"'  '-DDEF_XDM_CONFIG="/usra/local/X11R5_new/lib/
X11/xdm/xdm-config"'  '-DDEF_CHOOSER="/usra/local/X11R5_n
ew/lib/X11/xdm/chooser"'  '-DDEF_AUTH_DIR="/usra/local/X1
 There are 49 lines left (77%). Press <space> for more, 1R5_new/lib/X11/xdm"' resource.c
xdmcp.c: In function `all_query_respond':
xdmcp.c:519: warning: comparison is always 0 due to limit
ed range of data type
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
ld: Undefined symbol
make: Warning: Target `all' not remade because of errors
chamber.c: In function `labInit':
chamber.c:27: warning: passing arg 3 of `XCreateGC' makes
 integer from pointer without a cast
main.c: In function `Setup':
main.c:552: warning: comparison between pointer and integ
er
text.c: In function `change_text':
text.c:182: warning: initialization of `textargs[0].value
' makes integer from pointer without a cast
bif_lex.c: In function `yylex':
bif_lex.c:398: warning: initialization of `yylex_info.ch1
' makes integer from pointer without a cast
bif_lex.c:398: warning: initialization of `yylex_info.ch1
_group' makes integer from pointer without a cast
bif_lex.c:398: warning: initialization of `yylex_info.yac
c_pack_not_done integer from pointer without a cast
bif_lex.c:398: warning: initialization of `yylex_info.new
_yacc_pack' makes integer from pointer without a cast
bif_lex.c:398: warning: initialization of `yylex_info.las
t_char_unused' makes integer from pointer without a cast
bif_lex.c:398: warning: initialization of `yylex_info.ret
urn_code' makes integer from pointer without a cast
bif_lex.c:398: warning: initialization of `yylex_info.ini
t_flag' makes integer from pointer without a cast
t_flag' makes integer from pointer without a cast
bif_lex.c:398: warning: initialization of `yylex_info.lin
e_no' makes integer from pointer without a cast
In file included from brf_trv.c:97:
brf_set.h:45: warning: initialization of `total_with_data
.entity_type' makes integer from pointer without a cast
init_bench.c: In function `GetWorkstationInfo':
init_bench.c:858: warning: assignment makes integer from 
pointer without a castinit_bench.c:858: warning: assignme
nt makes integer from pointer without a castinit_bench.c:
858: warning: assignment makes integer from pointer witho
ut a castinit_b
 
   .
        .
        .
        .
        . (edited - many repeats)
 
brf_except.c:191: warning: assignment makes integer from 
pointer without a castbrf_except.c:191: warning: assignme
nt makes integer from pointer without a castld: Undefined
 symbol
make: Warning: Target `all' not remade because of errors
Wed Sep  9 07:45:11 CDT 1992
# 
 

-- 
William M. Eldridge			bill@bcserv.wustl.edu
Biochemistry Department Box 8231	(314) 362-3436
Washington Univ. School of Medicine	(314) 362-7183 (fax)
660 S. Euclid, St. Louis, MO 63110