[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Buffer size mismatch
From: |
Chip Seraphine |
Subject: |
Buffer size mismatch |
Date: |
Fri, 05 Nov 2004 13:34:48 -0600 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20040916) |
in 2.1.11, I get the following error when compiling cfenvgraph
(gcc,solaris2.9,i386):
ld: warning: symbol `VFQNAME' has differing sizes:
(file cfenvgraph.o value=0x1000; file globals.o value=0x400);
cfenvgraph.o definition taken
Grepping around, I see:
cf.extern.h:228:extern char VFQNAME[];
cfenvgraph.c:85:char VFQNAME[CF_BUFSIZE];
globals.c:375: PROTECTED char VFQNAME[CF_MAXVARSIZE];
The last two concern me:
address@hidden:32:18-..gine-2.1.11.i386/src$ grep 'define
CF_MAXVARSIZE' *.h
cf.defs.h:#define CF_MAXVARSIZE 1024
address@hidden:32:20-..gine-2.1.11.i386/src$ grep 'define CF_BUFSIZE' *.h
cf.defs.h:#define CF_BUFSIZE 4096
whoops!
I would guess that CF_MAXVARSIZE' should maybe be replaced with
CF_BUFSIZE in all occurances? (Or at least #defined to it?) Or is
VFQNAME in cfenvgraph.c a totally different variable that just happened
to collide with a global, and it should maybe be renamed?
--
Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
address@hidden
- Buffer size mismatch,
Chip Seraphine <=