When i try to emerge ncftp i get build error during compiling of DNSUtil.c causing the emerge to crash compleatly Reproducible: Always Steps to Reproduce: 1. install gentoo for OS X 2. emerge --sync 3. emerge ncftp Actual Results: Compiling USendtoByName.c: [OK] Compiling DNSUtil.c: [ERROR] gcc -D_REENTRANT -D_LARGEFILE64_SOURCE -O2 -pipe -Wno-format-y2k -DMACOSX=104 00 -I/private/var/tmp/portage/ncftp-3.1.8-r1/work/ncftp-3.1.8 -I/private/var/ tmp/portage/ncftp-3.1.8-r1/work/ncftp-3.1.8/libncftp -I/private/var/tmp/porta ge/ncftp-3.1.8-r1/work/ncftp-3.1.8/sio -I/private/var/tmp/portage/ncftp-3.1.8 -r1/work/ncftp-3.1.8/Strn -DHAVE_CONFIG_H -DMACOSX=10400 DNSUtil.c -c DNSUtil.c:20: error: conflicting types for 'getdomainname' /usr/include/unistd.h:502: error: previous declaration of 'getdomainname' was here Expected Results: ncftp should have built and installed on my system g33k:/Users/g33k root# emerge info !!! Relying on the shell to locate gcc, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 2.0.51.19 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.0.0 Power Macintosh) =============================================================== == System uname: 8.0.0 Power Macintosh powerpc macos-20041118 Python: [2.3.5 (#1, Mar 20 2005, 20:38:20)] distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" 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/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks strict userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc emboss ppc-macos userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
OK, this is a horrible hack, but it works ;-) In file: /var/tmp/portage/ncftp-3.1.8-r1/work/ncftp-3.1.8/configure change: #define gethostname_size_t $wi_cv_gethostname_size_t to: #define gethostname_size_t int Until a fix gets worked into portage, just hit ctrl+z right after emerge says "source unpacked", edit the file and continue emerge by typing "fg" and hitting enter.
Confirmed with the following system information: Portage 2.0.51.22-r2 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power Macintosh) ================================================================= System uname: 8.2.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" 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/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks sfperms strict userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc emboss ppc-macos userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
ncftp-3.1.9 compiles fine for me here. Portage 2.0.51.22-r2 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.2.0 Power Macintosh) ================================================================= System uname: 8.2.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" 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/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks sfperms strict userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc emboss nls ppc-macos userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY # equery list ncftp [ Searching for package 'ncftp' in all categories among: ] * installed packages [I--] [ ] net-ftp/ncftp-3.1.9 (0)
net-ftp/ncftp-3.1.9 is marked ~ppc-macos and it seems to compile for me too. seems like the bug report was on 3.1.8, so I guess this bug is out of date. Please reopen if the problem persists for version 3.1.9.
since 3.1.8-r1 is stable, I reopen the bug
The bug is caused by a typo in a define in the DNSUtil.c file. I added a patch for this, to allow compilation. This bug is now really fixed. Original reporter, sorry for the invalid close the first time.