dingopride / iredmail

Automatically exported from code.google.com/p/iredmail
0 stars 0 forks source link

freebsd 7.2 postfix instalation fail #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. update ports tree 
2. begin installation
3. have fail

What is the expected output? What do you see instead?
..............................................................................
[src/util]
cc -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" 
-DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" 
-DDEF_COMMAND_DIR=\"/usr/local/sbin\" 
-DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" 
-DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" 
-DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" 
-DDEF_README_DIR=\"/usr/local/share/doc/postfix\" 
-DDEF_HTML_DIR=\"/usr/local/share/doc/postfix\" 
-DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" 
-DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -DHAS_PCRE 
-I/usr/local/include -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" 
-DUSE_TLS -I/usr/include -I/usr/local/include/db46 -DHAS_MYSQL 
-I/usr/local/include/mysql -DHAS_LDAP -I/usr/local/include -DHAS_CDB 
-I/usr/local/include NO -O2 -fno-strict-aliasing -pipe -mmmx -msse -msse2 
-msse3 -s -march=pentium4 -DLDAP_DEPRECATED -I. -DFREEBSD7 -c alldig.c
cc: NO: No such file or directory
*** Error code 1

Stop in /usr/ports/mail/postfix26/work/postfix-2.6.7/src/util.
*** Error code 1
.............................................................................

look
>>-I/usr/local/include -DHAS_CDB -I/usr/local/include NO -O2
>>-I/usr/local/include NO
>>NO
>>cc: NO: No such file or directory

what the "NO"?

What version of the product are you using? On what operating system?

iRedMail-0.6.1
FreeBSD 7.2-RELEASE i386
fresh ports
it's happen in jail

Please provide any additional information below.

iRedMail run several times, and i have some garbage in my make.conf

[root@mx ~/iRedMail-0.6.1]# cat /etc/make.conf
FORCE_PKG_REGISTER=YES
# Without X-Window/GUI.
WITHOUT_X11=yes
CPUTYPE?=pentium4
CFLAGS= -O2 -fno-strict-aliasing -pipe -mmmx -msse -msse2 -msse3 -s 
CXXFLAGS+= -fconserve-space
MAKE_SHELL?=sh
DOC_LANG=   en_US.ISO8859-1 ru_RU.KOI8-R

# added by use.perl 2010-11-14 11:54:19
PERL_VERSION=5.10.1
# Without X-Window/GUI.
WITHOUT_X11=yes
# Use MySQL-5.0.x as default.
WANT_MYSQL_VER=50
# Use python-2.6 as default.
PYTHON_DEFAULT_VERSION=python2.6
# Use apache-2.2.
APACHE_PORT=www/apache22
# Use OpenLDAP 2.4.
WANT_OPENLDAP_VER=24
WITH_SASL=yes
WANT_BDB_VER=46
LDAP_R_COMPILE=1
# Without X-Window/GUI.
WITHOUT_X11=yes
# Use MySQL-5.0.x as default.
WANT_MYSQL_VER=50
# Use python-2.6 as default.
PYTHON_DEFAULT_VERSION=python2.6
# Use apache-2.2.
APACHE_PORT=www/apache22
# Use OpenLDAP 2.4.
WANT_OPENLDAP_VER=24
WITH_SASL=yes
WANT_BDB_VER=46
LDAP_R_COMPILE=1
# Without X-Window/GUI.
WITHOUT_X11=yes
# Use MySQL-5.0.x as default.
WANT_MYSQL_VER=50
# Use python-2.6 as default.
PYTHON_DEFAULT_VERSION=python2.6
# Use apache-2.2.
APACHE_PORT=www/apache22
# Use OpenLDAP 2.4.
WANT_OPENLDAP_VER=24
WITH_SASL=yes
WANT_BDB_VER=46
LDAP_R_COMPILE=1
# Without X-Window/GUI.
WITHOUT_X11=yes
# Use MySQL-5.0.x as default.
WANT_MYSQL_VER=50
# Use python-2.6 as default.
PYTHON_DEFAULT_VERSION=python2.6
# Use apache-2.2.
APACHE_PORT=www/apache22
# Use OpenLDAP 2.4.
WANT_OPENLDAP_VER=24
WITH_SASL=yes
WANT_BDB_VER=46
LDAP_R_COMPILE=1
[root@mx ~/iRedMail-0.6.1]# 

Original issue reported on code.google.com by 0x800cc...@gmail.com on 14 Nov 2010 at 11:32

GoogleCodeExporter commented 9 years ago
I suppose the "NO" is some typo somewhere...
Experiencing same bug with /etc/make.conf

Here's not a solution but a bypass:
http://www.iredmail.org/forum/topic1171-installation-failing-in-freebsd80-with-i
redmail061.html

Original comment by nichtbar...@gmail.com on 27 Dec 2010 at 1:07

GoogleCodeExporter commented 9 years ago
I also ran into this issue while installing 0.7.0-beta2. This will require a 
fix before .7 is released. Here is what I did to fix it based on directions 
from link above.

cd /usr/ports/mail/postfix26
make deinstall reinstall clean

Once complete, edit iRedMail-0.7.0-beta2/.iRedMail.installation.status and add 
the following line:

export status_install_port_mailpostfix26='DONE'

Original comment by Future...@gmail.com on 21 Feb 2011 at 12:00

GoogleCodeExporter commented 9 years ago
having same issue.
Why is it not resolved in latest version of iredmail :( :( :(

Original comment by farhan....@gmail.com on 10 Jul 2011 at 4:05

GoogleCodeExporter commented 9 years ago
Honestly, i don't know how to solve it in iRedMail shell scripts. Sorry. :(

Original comment by michaelb...@gmail.com on 10 Jul 2011 at 4:10

GoogleCodeExporter commented 9 years ago
Issue 62 has been merged into this issue.

Original comment by michaelb...@gmail.com on 10 Jul 2011 at 4:10

GoogleCodeExporter commented 9 years ago
i am doing a Trace of all the scripts, lets see if i will see that what causes 
the issue.

Original comment by farhan....@gmail.com on 10 Jul 2011 at 4:23

GoogleCodeExporter commented 9 years ago
FYI. iRedMail-0.7.3 on FreeBSD 8.2-RELEASE is having the same issue. 

Original comment by leila.ke...@kemeryconsulting.com on 8 Sep 2011 at 3:12

GoogleCodeExporter commented 9 years ago
still the same problem with postfix27, i think its a problem with the port and 
early installed components. maby u can use the port "postfix-current"

Original comment by phein...@googlemail.com on 18 Oct 2011 at 10:18

GoogleCodeExporter commented 9 years ago
The problem is in the Makefiles in work/postfix-2.7.6/src/*/Makefile:
CCFLAGS=${DEBUG} ${OPT} ${DEFS}

The macro DEBUG is defined as NO
if ${DEBUG} is removed from all these lines in the Makefiles postfix compiles 
fine.
However there should be an other way to fix this...

Original comment by henkinzu...@gmail.com on 19 Nov 2011 at 3:32

GoogleCodeExporter commented 9 years ago
I can confirm the issue persists with current (0.7.4) version of iRedMail and 
FreeBSD 8.2

Removing DEBUG=NO from the Makefiles as stated above makes postfix build fine.

Please fix this in iRedMail.sh

Original comment by m.jedra...@gmail.com on 1 Apr 2012 at 1:47

GoogleCodeExporter commented 9 years ago
Confirmed: It was caused by global variable 'DEBUG' in iRedMail.sh.
Fixed: Rename DEBUG to _DEBUG. and all global variables end with '_FLAG' were 
renamed to start with '_' too (e.g. INFO_FLAG -> _INFO_FLAG)
Commit log: https://bitbucket.org/zhb/iredmail/changeset/c01036c7882a

Original comment by michaelb...@gmail.com on 1 Apr 2012 at 4:34