| Summary: | postfix 2.1.5-r1 fails to install, absolute path error | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | micron <micron> |
| Component: | [OLD] Server | Assignee: | Tuan Van (RETIRED) <langthang> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
postfix-2.1.5-r1.ebuild
postfix-2.1.5-r1.ebuild postfix installation log postfix install log - correct version postfix latest output |
||
|
Description
micron
2004-11-05 00:25:56 UTC
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. |