Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91689 - ncftp fails to build on emerge ncftp
Summary: ncftp fails to build on emerge ncftp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-06 06:28 UTC by Zachary Falle
Modified: 2006-04-12 10:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zachary Falle 2005-05-06 06:28:20 UTC
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
Comment 1 Thomas Kjosmoen 2005-05-14 04:36:18 UTC
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.
Comment 2 Daniel Beckham 2005-07-21 11:53:17 UTC
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
Comment 3 Mike Z. 2005-08-11 00:11:55 UTC
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)
Comment 4 Fabian Groffen gentoo-dev 2005-08-11 09:06:53 UTC
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.
Comment 5 Fabian Groffen gentoo-dev 2005-09-11 00:11:20 UTC
since 3.1.8-r1 is stable, I reopen the bug
Comment 6 Fabian Groffen gentoo-dev 2005-09-11 00:25:42 UTC
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.