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

You're right, they're not even being used! No extern for you! ;-)

Aaron


Ilja Booij <[EMAIL PROTECTED]> said:

> Larry Rosenman wrote:
> > 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
> > $
> 
> Aha. It was one of those pesky globals, which don't even need to be 
> global. I've removed myhostname from lmtpd.c, and added the static 
> keyword where appropriate (also added this to some other variables that 
> were needlessly exported.
> 
> the changes are in CVS
> 
> Ilja
> 
> _______________________________________________
> Dbmail-dev mailing list
> Dbmail-dev@dbmail.org
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> 



-- 



Reply via email to