Here's why:

[EMAIL PROTECTED] codingprojects]$ grep "myhostname\[" dbmail/*
dbmail/lmtp.c:char myhostname[64];
dbmail/pop3.c:  char myhostname[64];
dbmail/timsieve.c:char myhostname[64];

[EMAIL PROTECTED] codingprojects]$ grep "\*myhostname" dbmail/*
dbmail/lmtpd.c:char *myhostname;
dbmail/pop3d.c:char *myhostname;
dbmail/timsieved.c:char *myhostname;

If I'm not mistaken, in the -d side of each of these pairs we can declare
hostname as extern and still keep all of the semantics of a static array.

For example, lmtpd.c: extern char myhostname[64];

Aaron


Larry Rosenman <[email protected]> said:

> On Thu, 3 Jun 2004, Larry Rosenman wrote:
> 
> > Also, I get the following:
> >
> > LD_RUN_PATH="/usr/local/lib:/usr/local/lib/dbmail:$LD_RUN_PATH" cc -g -o 
> > .libs/dbmail-lmtpd lmtp.o lmtpd.o  ./.libs/libdbmail.so 
> > /home/ler/dbmail-cvs/dbmail/pgsql/.libs/libpgsqldbmail.so 
> > /home/ler/dbmail-cvs/dbmail/sort/.libs/libsortdbmail.so 
> > /home/ler/dbmail-cvs/dbmail/auth/.libs/libauthdbmail.so 
> > -L/usr/local/pgsql/lib pgsql/.libs/libpgsqldbmail.so 
> > sort/.libs/libsortdbmail.so auth/.libs/libauthdbmail.so -lpq
> > UX:ld: WARNING: lmtpd.o: symbol 'myhostname' has different size in file 
> > lmtp.o
> > creating dbmail-lmtpd
> > gmake[2]: Leaving directory `/home/ler/dbmail-cvs/dbmail'
> > gmake[1]: Leaving directory `/home/ler/dbmail-cvs/dbmail'
> > $
> >
> >
> > Not sure what's going on with that, will investigate.
> 
> Here is what I found, and y'all need to look at it:
> 
> lmtp.o
> [71]      |4         |64        |OBJT |GLOB |0    |COMMON |myhostname
> lmtpd.o
> [40]      |4         |4         |OBJT |GLOB |0    |COMMON |myhostname
> pop3d.o
> [38]      |4         |4         |OBJT |GLOB |0    |COMMON |myhostname
> $
> 
> >
> > The SHUT_RDWR might be an include bug, which I'll whine to SCO about.
> 
> I've whined to SCO about this (the SHUT_RDWR issue), and am awaiting 
> a reply.
> 
> 
> >
> > LER
> >
> >
> 
> -- 
> Larry Rosenman                     http://www.lerctr.org/~ler
> Phone: +1 972-414-9812                 E-Mail: [email protected]
> US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
> _______________________________________________
> Dbmail-dev mailing list
> [email protected]
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> 



-- 



Reply via email to