postfix compile successfully but it doesn't merge. Here's the output: >>> Test phase [not enabled]: mail-mta/postfix-2.1.5-r1 >>> Install postfix-2.1.5-r1 into /var/tmp/portage/postfix-2.1.5-r1/image/ category mail-mta postfix-install: Error: "" should be "no" or an absolute path name. !!! ERROR: mail-mta/postfix-2.1.5-r1 failed. !!! Function src_install, Line 161, Exitcode 1 !!! postfix-install failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1.emerge postfix 2. 3. Actual Results: Postfix doesn't install itself Expected Results: Having postfix installed Portage 2.0.51-r2 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.5 i686) ================================================================= System uname: 2.6.5 i686 Celeron (Coppermine) Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium2 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium2 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks fixpackages sandbox sfperms" GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://gentoo.oregonstate.edu" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apache2 avi berkdb bitmap-fonts crypt cups esd evms2 f77 fam foomaticdb gdbm gif gpm gtk gtk2 imap imlib java jpeg junit ldap libg++ libwww mad maildir motif mpeg ncurses nls pam pdflib perl postgres python qt readline samba sasl slang ssl svga tcltk tcpd tiff truetype x86 xml2 xv zlib"
Is this a upgrade or fresh install? I can't reproduce with a fresh install?
It's an upgrade. I'm already running mail-mta/postfix-2.1.3 I've tried to unmerge postfix-2.1.3 and then emerge the newer one but nothig changed: still the same error
please post the output of `grep -vE '^#|^$' /etc/postfix/main.cf`.
Here's the output: queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/lib/postfix mail_owner = postfix myhostname = unixum.unixum.no-ip.org mydomain = unixum.no-ip.org inet_interfaces = all mydestination = $myhostname, $mydomain, $myhostname.$mydomain, localhost, localhost.localdomain, localhost.$mydomain unknown_local_recipient_reject_code = 550 mynetworks = 192.168.10.0/24, 127.0.0.0/8 relay_domains = $mydestination relayhost = [smtp.tiscali.it] alias_maps = hash:/etc/mail/aliases alias_database = hash:/etc/mail/aliases home_mailbox = .maildir/ mailbox_command = /usr/bin/procmail -a $DOMAIN header_checks = regexp:/etc/postfix/header_checks content_filter = smtp-amavis:[127.0.0.1]:10024 debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /etc/postfix readme_directory = /usr/share/doc/postfix-2.0.16-r1/readme smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname broken_sasl_auth_clients = yes smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains, reject smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/saslpass smtp_sasl_security_options = noanonymous smtpd_use_tls = yes smtpd_tls_auth_only = yes smtpd_tls_key_file = /etc/postfix/newreq.pem smtpd_tls_cert_file = /etc/postfix/newcert.pem smtpd_tls_CAfile = /etc/postfix/cacert.pem smtpd_tls_loglevel = 3 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_daemon_random_source = dev:/dev/urandom tls_random_source = dev:/dev/urandom
Created attachment 43358 [details] postfix-2.1.5-r1.ebuild Please try the attached ebuild. If you have FEATURES="strict" in /etc/make.conf, you have to run `ebuild /path/to/postfix-2.1.5-r1.ebuild digest` again.
Created attachment 43359 [details] postfix-2.1.5-r1.ebuild oops. missing a "\"
I've downloaded your second ebuild. I'm aware of "local-ebuild" procedure, so I created a ney postfix's dir under my /urs/local/portage. Next I made an ebuild xxx digest but I got a problem: using latest stable portage (2.0.51-r2) I wasn't able to digest the files 'cause of miissing patch files. So I made an emerge -f /.../xxx.ebuild to fetch this missing files but it didn't fetch anything because there was no digest file. It seems a dog eating his tail... Do you now how to solve this problem without copying teh original dir and then replacing the original ebuild with the mofied one? However I tested the new ebuild and I got the same error... :(
please do this assumed you didn't change any of the default PORTAGE paths. # cd /usr/portage/mail-mta/postfix/ #not the local overlay. # FEATURES="-userpriv -usersanbox" ebuild postfix-2.1.5-r1.ebuild clean install # cd /var/tmp/portage/postfix-2.1.5-r1/work/postfix-2.1.5/ # /bin/sh -x postfix-install -non-interactive install_root=/var/tmp/portage/postfix-2.1.5-r1/image/ daemon_directory=/usr/lib/postfixprogram_directory=/usr/lib/postfix config_directory=/usr/share/doc/postfix-2.1.5-r1/defaults readme_directory=/usr/share/doc/postfix-2.1.5-r1/readme manpage_directory=/usr/share/man mail_owner=postfix setgid_group=postdrop > /tmp/postfix-install.log 2>&1 then attached the /tmp/postfix-install.log here. Thanks.
Created attachment 43457 [details] postfix installation log Here's the wanted log
In previous comment, I did a copy and paste and I lost a space. Please try again and attach the new log here. Sorry. cd /usr/portage/mail-mta/postfix/ FEATURES="-userpriv -usersanbox" ebuild postfix-2.1.5-r1.ebuild clean install cd /var/tmp/portage/postfix-2.1.5-r1/work/postfix-2.1.5/ /bin/sh -x postfix-install -non-interactive \ install_root=/var/tmp/portage/postfix-2.1.5-r1/image/ \ daemon_directory=/usr/lib/postfix \ program_directory=/usr/lib/postfix \ config_directory=/usr/share/doc/postfix-2.1.5-r1/defaults \ readme_directory=/usr/share/doc/postfix-2.1.5-r1/readme \ manpage_directory=/usr/share/man \ mail_owner=postfix \ setgid_group=postdrop > /tmp/postfix-install.log 2>&1
Created attachment 43517 [details] postfix install log - correct version
for some unknown reasons, your system doesn't set the default value for variables that have not been specified. So please try this and post back the install log. Thanks for your patient. /bin/sh -x postfix-install -non-interactive \ install_root=/var/tmp/portage/postfix-2.1.5-r1/image/ \ daemon_directory=/usr/lib/postfix \ command_directory=/usr/sbin \ queue_directory=/var/spool/postfix \ mail_owner=postfix \ setgid_group=postdrop \ sendmail_path=/usr/sbin/sendmail \ newaliases_path=/usr/bin/newaliases \ mailq_path=/usr/bin/mailq \ manpage_directory=/usr/share/man \ html_directory=/usr/share/doc/postfix-2.1.5-r1/html \ readme_directory=/usr/share/doc/postfix-2.1.5-r1/readme \ program_directory=/usr/lib/postfix \ config_directory=/usr/share/doc/postfix-2.1.5-r1/defaults \ > /tmp/postfix-install.log 2>&1
Created attachment 43543 [details] postfix latest output Here's the latest output
quoted from the latest log. + bin/postconf -c /var/tmp/portage/postfix-2.1.5-r1/image//usr/share/doc/postfix-2.1.5-r1/defaults -e 'daemon_directory = /usr/lib/postfix' 'command_directory = /usr/sbin' 'queue_directory = /var/spool/postfix' 'mail_owner = postfix' 'setgid_group = postdrop' 'sendmail_path = /usr/sbin/sendmail' 'mailq_path = /usr/bin/mailq' 'newaliases_path = /usr/bin/newaliases' 'html_directory = /usr/share/doc/postfix-2.1.5-r1/html' 'manpage_directory = /usr/share/man' 'sample_directory = ' 'readme_directory = /usr/share/doc/postfix-2.1.5-r1/readme' postfix-install: line 717: 22632 Illegal instruction bin/postconf -c $CONFIG_DIRECTORY -e "daemon_directory = $daemon_directory" "command_directory = $command_directory" "queue_directory = $queue_directory" "mail_owner = $mail_owner" "setgid_group = $setgid_group" "sendmail_path = $sendmail_path" "mailq_path = $mailq_path" "newaliases_path = $newaliases_path" "html_directory = $html_directory" "manpage_directory = $manpage_directory" "sample_directory = $sample_directory" "readme_directory = $readme_directory" + exit 1 the Illegal instruction error doesn't look good. It looks like something wrong with your CFLAGS settings or ccache. To narrow down the problem please emerge postfix as: # FEATURES="-ccache" CFLAGS="-O2 -march=i686 -pipe" CXXFLAGS=${CFLAGS} emerge postfix If you have access to IRC, please join #gentoo-dev on irc.freenode.net and /msg langthang. I am still there in 3 more hours. It's easier/faster to help you on IRC.
Thanks, emerged without ccache and with O2 as compiler flag and postfix emerged successfully ;)
glad that it works for you. You may want to check your `cat /proc/cpuinfo` output. It could be that your Celeron is not a pentium2. If it is the case, change your CFLAGS so -march=pentium should be beeter or you will have a lot more problem with other packages, not just postfix.