Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205380 - dev-lang/perl-5.8.8-r4 compile fails - syntax error near unexpected token `('
Summary: dev-lang/perl-5.8.8-r4 compile fails - syntax error near unexpected token `('
Status: VERIFIED DUPLICATE of bug 141475
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-12 00:21 UTC by Lars
Modified: 2008-01-12 14:55 UTC (History)
0 users

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 Lars 2008-01-12 00:21:43 UTC
I installed Gentoo following the Gentoo Linux x86 manual

After finishing Chapter A. Installing Gentoo I did

# emerge --sync
# emerge --update --deep --newuse world

When portage tries to emerge 

dev-lang/perl-5.8.8-r4

it failes with 

emake -j1 || die "Unable to make"

Reproducible: Always

Steps to Reproduce:
Wether I do 

# emerge --update --deep --newuse world

or

emerge perl

or 

cd /var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8
make clean
./configure.gnu
make depend
make install

or

emerge libperl
[and after failing to build perl:  ]
emerge --resume --skipfirst

build always fails
Actual Results:  
This is the some shortened output of emerge perl:

emerge perl

>>> Unpacking source...
>>> Unpacking perl-5.8.8.tar.bz2 to /var/tmp/portage/dev-lang/perl-5.8.8-r4/work

[...]

Looking for extensions...
What extensions do you wish to load dynamically?
[B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared]  
What extensions do you wish to load statically? [none]  
Stripping down executable paths...

...
As far as I can tell, everything is fine untill:
...

Creating config.sh...
./config.sh: line 91: syntax error near unexpected token `('
./config.sh: line 91: `d_Gconvert='gcvt((x),(n),(b))''
Doing variable substitutions on .SH files...
Extracting cflags (with variable substitutions)

[...]

Run make depend now? [y]  
sh ./makedepend MAKE=make
./config.sh: line 91: syntax error near unexpected token `('
./config.sh: line 91: `d_Gconvert='gcvt((x),(n),(b))''
./makedepend: line 53: -f: command not found
cp: missing destination file operand after `Makefile'
Try `cp --help' for more information.
./makedepend: line 78: $mf: ambiguous redirect
./makedepend: line 87: -d: command not found
mkdir: cannot create directory `UU': File exists
make[1]: Entering directory `/var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8'
make depend MAKEDEPEND=
make[2]: Entering directory `/var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8'
sh ./makedepend MAKE=make
./makedepend: Already running, exiting.
test -s perlmain.c && touch perlmain.c
make[2]: [depend] Error 1 (ignored)
cd x2p; make depend

[...command not found in all lines till...]

./makedepend: line 217: .new: command not found
./makedepend: line 218: $mf: ambiguous redirect
./makedepend: line 219: -rf: command not found
test -s perlmain.c && touch perlmain.c
cd x2p; make depend
make[1]: Entering directory `/var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8/x2p'
sh ../makedepend MAKE=make
../config.sh: line 91: syntax error near unexpected token `('
../config.sh: line 91: `d_Gconvert='gcvt((x),(n),(b))''
../makedepend: line 53: -f: command not found
cp: missing destination file operand after `Makefile'
Try `cp --help' for more information.
../makedepend: line 78: $mf: ambiguous redirect
../makedepend: line 87: -d: command not found
mkdir: cannot create directory `UU': File exists
make[2]: Entering directory `/var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8/x2p'
echo hash.c  str.c util.c walk.c | tr ' ' '\n' >.clist
make[2]: Leaving directory `/var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8/x2p'
../makedepend: line 109: Finding dependencies for hash.o.: command not found
../makedepend: line 110: #line 1 "hash.c": command not found

[...and some more lines with "command not found" and...]

./config.sh: line 91: syntax error near unexpected token `('
./config.sh: line 91: `d_Gconvert='gcvt((x),(n),(b))''
./makedepend: line 53: -f: command not found
cp: missing destination file operand after `Makefile'
Try `cp --help' for more information.
./makedepend: line 78: $mf: ambiguous redirect
./makedepend: line 87: -d: command not found

[ a lot of textblocks starting with "./config.sh: line 91: syntax error near unexpected token `('" and finally:] 

make[1]: Leaving directory `/var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8/utils'
 
	Making x2p stuff
make[1]: Entering directory `/var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8/x2p'
You haven't done a "make depend" yet!
make[1]: *** [hash.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-lang/perl-5.8.8-r4/work/perl-5.8.8/x2p'
make: *** [translators] Error 2
 [31;01m*[0m 
 [31;01m*[0m ERROR: dev-lang/perl-5.8.8-r4 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m              ebuild.sh, line 1701:  Called dyn_compile
 [31;01m*[0m              ebuild.sh, line 1039:  Called qa_call 'src_compile'
 [31;01m*[0m              ebuild.sh, line   44:  Called src_compile
 [31;01m*[0m   perl-5.8.8-r4.ebuild, line  292:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   	emake -j1 || die "Unable to make"
 [31;01m*[0m  The die message:
 [31;01m*[0m   Unable to make
...


emerge -vp perl

These are the packages that would be merged, in order:
Calculating dependencies   ... done!
[ebuild     U ] dev-lang/perl-5.8.8-r4 [5.8.8-r2] USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid" 0 kB


emerge --info

Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-suspend2-r2lars0 i686)
=================================================================
System uname: 2.6.22-suspend2-r2lars0 i686 Intel(R) Pentium(R) III Mobile CPU 866MHz
Timestamp of tree: Thu, 10 Jan 2008 20:47:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl acpi alsa bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread encode fam firefox fortran gdbm gif gpm gstreamer hal iconv ipv6 isdnlog jpeg kerberos ldap mad md5sum midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session skey spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis vram win32codecs x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-12 08:23:14 UTC
`hostname --fqdn` output, please.
Comment 2 Lars 2008-01-12 12:50:53 UTC
(In reply to comment #1)

# hostname --fqdn
hostname: Host name lookup failure

According to the Installation Guide I set a custom hostname in /etc/conf.d/hostname. If I set my hostname to "localhost":

# hostname localhost
# hostname --fqdn
localhost

Is this behaviour expected? Shall I try to emerge perl with hostname set to "localhost"?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-12 12:53:58 UTC
You need a valid hostname. If you need support, then see http://www.gentoo.org/main/en/support.xml, bugzilla is not a proper place for this.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-12 12:54:12 UTC

*** This bug has been marked as a duplicate of bug 141475 ***
Comment 5 Lars 2008-01-12 14:55:35 UTC
(In reply to comment #3)
> You need a valid hostname.
OK. Then this is a "bug" in the Gentoo Linux x86 Handbook
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap8
since even 
man hostname
gives me no clue what a valid hostname may look like. But don't worry I will figuere it out.

> If you need support, then see
> http://www.gentoo.org/main/en/support.xml, bugzilla is not a proper place for
> this.
That's understood. I already tried to solve this issue there without success:
http://forums.gentoo.org/viewforum-f-8.html

Thanks for your help.