[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [magicmail-users] Magicmail-0.8.4-2 Compilation Problem



>>> I'm having a problem compiling version 0.8.4-2 on a Ubuntu 5.10 (Debian)
>>> system.  I see the following error:
>>>
>>> make[1]: Entering directory `/home/pete/magicmail-0.8.4-2/magic-smtpd'
>>> gcc -g -Wall -W -O2 -fPIC -DOPENSOURCE -DRELEASE_VERSION -I../
>>> -DUSE_TLS -I../lmlibs -c -o magic-smtpd.o magic-smtpd.c
>>> magic-smtpd.c:178: error: static declaration of âsmtp_from_addrâ follows
>>> non-static declaration
>>> magic-smtpd.h:42: error: previous declaration of âsmtp_from_addrâ was
>>> here
>>> make[1]: *** [magic-smtpd.o] Error 1
>>> make[1]: Leaving directory `/home/pete/magicmail-0.8.4-2/magic-smtpd'
>>> make: *** [all] Error 2

    It looks like this can be resolved by simply removing the following
line (line 42) from the magicmail-0.8.4-2/magic-smtpd/magic-smtpd.h
file:

extern lm_string_t smtp_from_addr;

after removing this line, I was able to compile with gcc4 on a Debian
unstable box.  Please let me know whether this works for you.  I will
plan to remove this line from the source for the next version.

    Thanks,
      Josh

-- 
Josh Wilsdon <josh@wizard.ca> Programmer Analyst
Wizard IT Services - http://www.wizard.ca
Linux Support Specialist - http://linuxmagic.com
Unix Administration, Website Hosting, Network Services, Programming
(604) 589-0037 Beautiful British Columbia, Canada
LinuxMagic is a TradeMark of Wizard Tower TechnoServices Ltd.
--------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which
they are addressed.  If you have received this email in error please
notify the system manager.  Please note that any views or opinions
presented in this email are solely those of the author and do not
necessarily represent those of the company.