Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix failed to compile and install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
unixbhaskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2007
Posts: 119
Location: India

PostPosted: Thu Apr 04, 2019 3:37 pm    Post subject: Postfix failed to compile and install Reply with quote

Here is what I got:

Code:

root@GentooLinux_20:50:03_Thu Apr 04:~#emerge -av postfix

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] mail-mta/postfix-3.3.1-r1::gentoo  USE="berkdb eai ldap pam ssl -cdb -dovecot-sasl -hardened -ldap-bind -libressl -lmdb -mbox -memcached -mysql -nis -postgres -sasl (-selinux) -sqlite" 4318 KiB

Total: 1 package (1 new), Size of downloads: 4318 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) mail-mta/postfix-3.3.1-r1::gentoo
>>> Downloading 'http://distfiles.gentoo.org/distfiles/postfix-3.3.1.tar.gz'
--2019-04-04 20:50:18--  http://distfiles.gentoo.org/distfiles/postfix-3.3.1.tar.gz
Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195, 137.226.34.46, ...
Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4420912 (4.2M) [application/x-gzip]
Saving to: '/usr/portage/distfiles/postfix-3.3.1.tar.gz'

/usr/portage/distfi 100%[===================>]   4.22M  54.4KB/s    in 41s     

2019-04-04 20:51:01 (104 KB/s) - '/usr/portage/distfiles/postfix-3.3.1.tar.gz' saved [4420912/4420912]

 * postfix-3.3.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking postfix-3.3.1.tar.gz to /var/tmp/portage/mail-mta/postfix-3.3.1-r1/work
>>> Source unpacked in /var/tmp/portage/mail-mta/postfix-3.3.1-r1/work
>>> Preparing source in /var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1 ...
 * Applying postfix-libressl.patch ...                                                                                                         [ ok ]
 * Applying postfix-libressl-runtime.patch ...                                                                                                 [ ok ]
 * Applying postfix-libressl-eccurve.patch ...                                                                                                 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1 ...
make -j4 makefiles shared=yes dynamicmaps=no pie=yes shlib_directory=/usr/lib64/postfix/MAIL_VERSION DEBUG= CC=x86_64-pc-linux-gnu-gcc 'OPT=-O2 -pipe -Wno-comment' 'CCARGS=-DHAS_PCRE -DHAS_LDAP -DUSE_TLS -DNO_NIS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE' 'AUXLIBS=-Wl,-O1 -Wl,--as-needed -ldl -lpam -lssl -lcrypto' AUXLIBS_CDB= 'AUXLIBS_LDAP=-lldap -llber' AUXLIBS_LMDB= AUXLIBS_MYSQL= 'AUXLIBS_PCRE=-L/usr/lib64 -lpcre' AUXLIBS_PGSQL= AUXLIBS_SQLITE=
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
ATTENTION:
ATTENTION: Unknown system type: Linux 5.0.6-GentooLinux
ATTENTION:
make: *** [Makefile.in:31: Makefiles] Error 1
make: *** [Makefile:22: makefiles] Error 2
 * ERROR: mail-mta/postfix-3.3.1-r1::gentoo failed (configure phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=mail-mta/postfix-3.3.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-mta/postfix-3.3.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1'
 * S: '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1'

>>> Failed to emerge mail-mta/postfix-3.3.1-r1, Log file:

>>>  '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/temp/build.log'

 * Messages for package mail-mta/postfix-3.3.1-r1:
                                                                                                                                                     
 * ERROR: mail-mta/postfix-3.3.1-r1::gentoo failed (configure phase):                                                                                 
 *   emake failed                                                                                                                                     
 *                                                                                                                                                   
 * If you need support, post the output of `emerge --info '=mail-mta/postfix-3.3.1-r1::gentoo'`,                                                     
 * the complete build log and the output of `emerge -pqv '=mail-mta/postfix-3.3.1-r1::gentoo'`.                                                       
 * The complete build log is located at '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/temp/build.log'.                                                 
 * The ebuild environment file is located at '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/temp/environment'.                                           
 * Working directory: '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1'                                                                 
 * S: '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1' 


Then I did some search and bumped into it ...still

[url] http://postfix.1071664.n5.nabble.com/postfix-2-8-3-and-linux-3-0-td11579.html [/url]

Is it still required??
_________________
Musing with GNU/Linux :)

Lenovo Thinkpad x250
x86_64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz GenuineIntel GNU/Linux
RAM : 8 GB
Kernel :Latest customized kernel
OS: Gentoo/Arch/Slackware/Debian/openSUSE/Fedora
Intel 965GM Chipset
Back to top
View user's profile Send private message
unixbhaskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2007
Posts: 119
Location: India

PostPosted: Fri Apr 05, 2019 6:42 am    Post subject: Reply with quote

Here is my emerge --info

Code:


root@GentooLinux_12:06:51_Fri Apr 05:~#emerge --info
Portage 2.3.62 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop, gcc-7.3.0, glibc-2.28-r5, 5.0.6-GentooLinux x86_64)
=================================================================
System uname: Linux-5.0.6-GentooLinux-x86_64-Intel-R-_Core-TM-_i5-5200U_CPU_@_2.20GHz-with-gentoo-2.6
KiB Mem:     7987844 total,   1729204 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 26 Mar 2019 00:45:01 +0000
Head commit of repository gentoo: 670e992caee6e94bc3cf5b7baac7f40e0108816c
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.uk.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm iconv ipv6 jpeg lcms ldap libnotify libtirpc lock mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt4 qt5 readline sdl seccomp session spell ssl startup-notification svg tcpd thunar tiff truetype udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS



Build log :

Code:

root@GentooLinux_12:16:13_Fri Apr 05:~#cat /var/tmp/portage/mail-mta/postfix-3.3.1-r1/temp/build.log
 * Package:    mail-mta/postfix-3.3.1-r1
 * Repository: gentoo
 * Maintainer: net-mail@gentoo.org
 * USE:        abi_x86_64 amd64 berkdb eai elibc_glibc kernel_linux ldap mbox pam sasl sqlite ssl userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking postfix-3.3.1.tar.gz to /var/tmp/portage/mail-mta/postfix-3.3.1-r1/work
>>> Source unpacked in /var/tmp/portage/mail-mta/postfix-3.3.1-r1/work
>>> Preparing source in /var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1 ...
 * Applying postfix-libressl.patch ...                                                                                                         [ ok ]
 * Applying postfix-libressl-runtime.patch ...                                                                                                 [ ok ]
 * Applying postfix-libressl-eccurve.patch ...                                                                                                 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1 ...
make -j4 makefiles shared=yes dynamicmaps=no pie=yes shlib_directory=/usr/lib64/postfix/MAIL_VERSION DEBUG= CC=x86_64-pc-linux-gnu-gcc 'OPT=-O2 -pipe -Wno-comment' 'CCARGS=-DHAS_PCRE -DHAS_LDAP -DHAS_SQLITE -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DNO_NIS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE' 'AUXLIBS=-Wl,-O1 -Wl,--as-needed -ldl -lpam -lssl -lcrypto -lsasl2' AUXLIBS_CDB= 'AUXLIBS_LDAP=-lldap -llber' AUXLIBS_LMDB= AUXLIBS_MYSQL= 'AUXLIBS_PCRE=-L/usr/lib64 -lpcre' AUXLIBS_PGSQL= 'AUXLIBS_SQLITE=-lsqlite3 -lpthread'
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
ATTENTION:
ATTENTION: Unknown system type: Linux 5.0.6-GentooLinux
ATTENTION:
make: *** [Makefile.in:31: Makefiles] Error 1
make: *** [Makefile:22: makefiles] Error 2
 * ERROR: mail-mta/postfix-3.3.1-r1::gentoo failed (configure phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=mail-mta/postfix-3.3.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-mta/postfix-3.3.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1'
 * S: '/var/tmp/portage/mail-mta/postfix-3.3.1-r1/work/postfix-3.3.1'

_________________
Musing with GNU/Linux :)

Lenovo Thinkpad x250
x86_64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz GenuineIntel GNU/Linux
RAM : 8 GB
Kernel :Latest customized kernel
OS: Gentoo/Arch/Slackware/Debian/openSUSE/Fedora
Intel 965GM Chipset
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Fri Apr 05, 2019 7:11 am    Post subject: Reply with quote

Simply makedefs in postfix-3.3.1 has no kernel 5 support, you can unmask a postfix newer version or apply this patch
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
unixbhaskar
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2007
Posts: 119
Location: India

PostPosted: Fri Apr 05, 2019 9:03 am    Post subject: Reply with quote

fedeliallalinea wrote:
Simply makedefs in postfix-3.3.1 has no kernel 5 support, you can unmask a postfix newer version or apply this patch


Thanks a bunch...pull in higher version did the trick...precisely 3.4.4
_________________
Musing with GNU/Linux :)

Lenovo Thinkpad x250
x86_64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz GenuineIntel GNU/Linux
RAM : 8 GB
Kernel :Latest customized kernel
OS: Gentoo/Arch/Slackware/Debian/openSUSE/Fedora
Intel 965GM Chipset
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum