I can't compile postfix in a uclibc env. Here is the error: ---- gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.3/readme\" -g -Os -march=i386 -pipe -fomit-frame-pointer -I. -DLINUX2 -c dict_ni.c gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.3/readme\" -g -Os -march=i386 -pipe -fomit-frame-pointer -I. -DLINUX2 -c dict_nis.c gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.3/readme\" -g -Os -march=i386 -pipe -fomit-frame-pointer -I. -DLINUX2 -c dict_nisplus.c gcc -DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DDEF_CONFIG_DIR=\"/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_PROGRAM_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DDEF_README_DIR=\"/usr/share/doc/postfix-2.1.3/readme\" -g -Os -march=i386 -pipe -fomit-frame-pointer -I. -DLINUX2 -c dict_open.c dict_nis.c:42:27: rpcsvc/ypclnt.h: No such file or directory dict_nis.c: In function `dict_nis_strerror': dict_nis.c:99: error: `YPERR_BADARGS' undeclared (first use in this function) dict_nis.c:99: error: (Each undeclared identifier is reported only once dict_nis.c:99: error: for each function it appears in.) dict_nis.c:101: error: `YPERR_RPC' undeclared (first use in this function) dict_nis.c:103: error: `YPERR_DOMAIN' undeclared (first use in this function) dict_nis.c:105: error: `YPERR_MAP' undeclared (first use in this function) dict_nis.c:107: error: `YPERR_KEY' undeclared (first use in this function) dict_nis.c:109: error: `YPERR_YPERR' undeclared (first use in this function) dict_nis.c:111: error: `YPERR_RESRC' undeclared (first use in this function) dict_nis.c:113: error: `YPERR_NOMORE' undeclared (first use in this function) dict_nis.c:115: error: `YPERR_PMAP' undeclared (first use in this function) dict_nis.c:117: error: `YPERR_YPBIND' undeclared (first use in this function) dict_nis.c:119: error: `YPERR_YPSERV' undeclared (first use in this function) dict_nis.c:121: error: `YPERR_NODOM' undeclared (first use in this function) dict_nis.c:123: error: `YPERR_BADDB' undeclared (first use in this function) dict_nis.c:125: error: `YPERR_VERS' undeclared (first use in this function) dict_nis.c: In function `dict_nis_lookup': dict_nis.c:186: error: `YPERR_KEY' undeclared (first use in this function) make: *** [dict_nis.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [update] Error 1 !!! ERROR: mail-mta/postfix-2.1.3 failed. !!! Function src_compile, Line 146, Exitcode 2 !!! compile problem ---- Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r10 (x86, gcc-3.3.4, glibc-0.9.26-r5, 2.6.8-gentoo-r1) ================================================================= System uname: 2.6.8-gentoo-r1 i686 AMD Athlon(TM) XP 2500+ Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-Os -march=i386 -pipe -fomit-frame-pointer" CHOST="i386-pc-linux-uclibc" COMPILER="gcc3" CONFIG_PROTECT="/etc /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="-Os -march=i386 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.switch.ch/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.4.11/gentoo-portage" USE="berkdb crypt gdbm hardened hostap-noplx justify multicall mysql ncurses pcmcia perl pic pie png python readline snmp ssl tcpd uclibc x86 zlib"
Created attachment 38090 [details, diff] just a little hack to compile postfix on uclibc env just a little hack to compile postfix on uclibc env (we don't need NIS on an embedded)
i dont want to go hacking in a package we dont maintain ... mail guys: can you turn this patch into 'use nis' instead of 'use uclibc' ? nis is a valid global USE flag, and we kind of want to minimize [ab]use of USE=uclibc
Created attachment 45873 [details, diff] updated patch (now it uses nis USE flag)
re comment #3 the logic for your patch is inverted.
Created attachment 45885 [details, diff] updated patch (now it uses nis USE flag) - FIXED ...now the patch has the right order ;)
Hm, looks like Tuan forgot to close this bug - the 2.2.20041221 ebuild already has this modification. Thanks for reporting.
*** Bug 85433 has been marked as a duplicate of this bug. ***
*** Bug 111221 has been marked as a duplicate of this bug. ***