Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't compile ftp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
petan
n00b
n00b


Joined: 18 Jan 2016
Posts: 55

PostPosted: Fri Jan 20, 2017 1:22 pm    Post subject: Can't compile ftp Reply with quote

When I try to emerge ftp I get this error, which makes me feel like ebuild is broken:

Code:
>>> Emerging (1 of 1) net-ftp/ftp-0.17-r7::gentoo
 * netkit-ftp-0.17.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                          [ ok ]
 * netkit-ftp-0.17-patches-1.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking netkit-ftp-0.17.tar.gz to /var/tmp/portage/net-ftp/ftp-0.17-r7/work
tar: A lone zero block at 420
>>> Unpacking netkit-ftp-0.17-patches-1.tar.bz2 to /var/tmp/portage/net-ftp/ftp-0.17-r7/work
 * Applying various patches (bugfixes/updates) ...
 *   000_all_ssl-0.2.patch ...                                                                                                                                                                                                                                          [ ok ]
 *   010_all_ipv6.patch ...                                                                                                                                                                                                                                             [ ok ]
 *   020_all_dont-strcpy-overlapping.patch ...                                                                                                                                                                                                                          [ ok ]
 *   030_all_acct.patch ...                                                                                                                                                                                                                                             [ ok ]
 *   040_all_locale.patch ...                                                                                                                                                                                                                                           [ ok ]
 *   050_all_runique_mget.patch ...                                                                                                                                                                                                                                     [ ok ]
 *   060_all_security.patch ...                                                                                                                                                                                                                                         [ ok ]
 *   070_all_segv.patch ...                                                                                                                                                                                                                                             [ ok ]
 *   080_all_custom-cflags.patch ...                                                                                                                                                                                                                                    [ ok ]
 *   090_all_sigseg.patch ...                                                                                                                                                                                                                                           [ ok ]
 *   100_all_arg-max.patch ...                                                                                                                                                                                                                                          [ ok ]
 *   110_all_CPPFLAGS.patch ...                                                                                                                                                                                                                                         [ ok ]
 * Done with patching
>>> Source unpacked in /var/tmp/portage/net-ftp/ftp-0.17-r7/work
>>> Compiling source in /var/tmp/portage/net-ftp/ftp-0.17-r7/work/netkit-ftp-0.17 ...
Directories: /usr/bin /usr/man
-n Looking for a C compiler...
gcc
-n Checking if gcc accepts gcc warnings...
yes
-n Checking if gcc accepts -O2...
yes
-n Whether to enable SSL support...
yes
-n Whether to enable IPv6 support...
yes
-n Search for IPv6 library...
not found
-n Checking for BSD signal semantics...
yes
-n Checking for ncurses...
yes
-n Checking for GNU libc...
yes
-n Checking for libreadline...
yes
-n Checking for socklen_t...
yes
-n Checking for snprintf declaration...
ok
-n Checking for snprintf implementation...
ok
Generating MCONFIG...
make -j10 CC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'
(cd  ftp && make)
make[1]: Entering directory '/var/tmp/portage/net-ftp/ftp-0.17-r7/work/netkit-ftp-0.17/ftp'
../MCONFIG:1: *** missing separator.  Stop.
make[1]: Leaving directory '/var/tmp/portage/net-ftp/ftp-0.17-r7/work/netkit-ftp-0.17/ftp'
Makefile:7: recipe for target 'ftp.build' failed
make: *** [ftp.build] Error 2
emake failed
 * ERROR: net-ftp/ftp-0.17-r7::gentoo failed (compile phase):
 *   make failed
 *
 * Call stack:
 *     ebuild.sh, line 115:  Called src_compile
 *   environment, line 2292:  Called die
 * The specific snippet of code:
 *       emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die "make failed"
 *
 * If you need support, post the output of `emerge --info '=net-ftp/ftp-0.17-r7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-ftp/ftp-0.17-r7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-ftp/ftp-0.17-r7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-ftp/ftp-0.17-r7/temp/environment'.
 * Working directory: '/var/tmp/portage/net-ftp/ftp-0.17-r7/work/netkit-ftp-0.17'
 * S: '/var/tmp/portage/net-ftp/ftp-0.17-r7/work/netkit-ftp-0.17'

>>> Failed to emerge net-ftp/ftp-0.17-r7, Log file:

>>>  '/var/tmp/portage/net-ftp/ftp-0.17-r7/temp/build.log'

 * Messages for package net-ftp/ftp-0.17-r7:

 * ERROR: net-ftp/ftp-0.17-r7::gentoo failed (compile phase):
 *   make failed
 *
 * Call stack:
 *     ebuild.sh, line 115:  Called src_compile
 *   environment, line 2292:  Called die
 * The specific snippet of code:
 *       emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die "make failed"

Emerge info

localhost ftp # emerge --info '=net-ftp/ftp-0.17-r7::gentoo'
Portage 2.3.0 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.22-r4, 4.8.0hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.0hardened-x86_64-Intel-R-_Core-TM-_i7-5600U_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    16309924 total,    570944 free
KiB Swap:   17592316 total,  17040464 free
Timestamp of repository gentoo: Fri, 20 Jan 2017 00:45:01 +0000
sh dash 0.5.8.2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

telred
    location: /var/lib/layman/telred
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch 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://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 bluetooth branding bzip2 cairo caps cdda cdr cli cmake consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran freerdp gdbm gif glamor glib gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify lm_sensors mad mmx mmxext mng modemmanager modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nsplugin nvidia ogg opengl openmp openssl pam pango pcre pdf phonon plasma pmu png policykit ppds pulseaudio qt3support qt4 rdesktop readline run-as-root sdl seccomp semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vaapi vorbis wifi wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Fri Jan 20, 2017 1:41 pm    Post subject: Reply with quote

Hello.

I suppose this is a matter with your LDFLAGS (LDFLAGS=-Wl,-O1 -Wl,--as-needed)

++
Gi)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Jan 20, 2017 3:03 pm    Post subject: Reply with quote

Don't think LDFLAGS are the problem; LDFLAGS="-Wl,-O1 -Wl,--as-needed" is the default value. I can emerge both stable net-ftp/ftp-ftp-0.17-r7 and testing net-ftp/ftp-0.17.23.0.2.1 with LDFLAGS="-Wl,-O1 -Wl,--as-needed". My suspicion is a defective tarball in /usr/portage/distfiles. Suggestion 1: add =net-ftp/ftp-0.17.23.0.2.1 to /etc/portage/package.keywords and then emerge -1 =net-ftp/ftp-0.17.23.0.2.1 . Or 2: remove the tarball, rm /usr/portage/distfiles/netkit-ftp-0.17-patches-2.tar.bz2 .
Wait a day or select a different mirror, emerge --sync and emerge -1 ftp.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Sat Jan 21, 2017 2:17 pm    Post subject: Reply with quote

Sorry, my bad. Never paid attention to LDFLAGS before... better had avoided replying while so unaware of the issue.
Back to top
View user's profile Send private message
Score_Under
n00b
n00b


Joined: 14 Jan 2018
Posts: 1

PostPosted: Sun Jan 14, 2018 5:38 pm    Post subject: Reply with quote

tl;dr run the command in the last code box to fix the build process

I have experienced the same issue. I looked at the file which was generated:
Code:
root@hakurei /etc/portage # cat /var/tmp/portage/net-ftp/ftp-0.17-r7/work/netkit-ftp-0.17/MCONFIG                               
-n # Generated by configure (confgen version 2) on
Sun 14 Jan 17:24:46 GMT 2018
#

BINDIR=/usr/bin
MANDIR=/usr/man
BINMODE=755
MANMODE=644
PREFIX=/usr
EXECPREFIX=/usr
INSTALLROOT=
CC=gcc
CFLAGS=-O2 -pipe -fstack-protector-strong -march=native -ggdb -DUSE_SSL -DINET6 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline
LDFLAGS=
LIBS=-lssl -lcrypto
LIBTERMCAP=-lncurses
USE_GLIBC=1
USE_READLINE=1

It looks fine at first glance... and then I took a look at the comments at the top and saw a suspicious "-n" hanging around.

This is the result of a non-standard use of the "echo" shell command. In my case, the fix is to switch from the "dash" shell to "bash":

Code:
# eselect sh set bash

This fixed the build process. I would call this a bug in the FTP package, but I know there are a lot of people who don't see a point in making their sh-scripts posix compatible.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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