Gentoo Archives: gentoo-user

From: John covici <covici@××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] cannot compile net-fs/mount-cifs using gcc 4.3.1
Date: Mon, 11 Aug 2008 00:36:59
Message-Id: 18591.35225.587054.514173@ccs.covici.com
1 Hi. I tried to compile net-fs/mount-cifs because when I used smbfs I
2 got a very prominent message from the kernel saying that smbfs would
3 be removed in 2.6.27 and I should use cifs instead. However when I
4 tried to compile it, I got the following error:
5
6 >>> Compiling source in
7 >>> /var/tmp/portage/net-fs/mount-cifs-3.0.28/work/mount-cifs-3.0.28
8 >>> ...
9 mount.cifs.c: In function 'main':
10 mount.cifs.c:1095: error: 'PATH_MAX' undeclared (first use in this
11 function)
12 mount.cifs.c:1095: error: (Each undeclared identifier is reported only
13 once
14 mount.cifs.c:1095: error: for each function it appears in.)
15 *
16 * ERROR: net-fs/mount-cifs-3.0.28 failed.
17 * Call stack:
18 * ebuild.sh, line 49: Called src_compile
19 * environment, line 2041: Called die
20 * The specific snippet of code:
21 * $(tc-getCC) ${CFLAGS} mount.cifs.c -o mount.cifs || die "make
22 * mount.cifs failed";
23 * The die message:
24 * make mount.cifs failed
25 *
26 * If you need support, post the topmost build error, and the call
27 stack if relevant.
28 * A complete build log is located at
29 '/var/log/portage/net-fs:mount-cifs-3.0.28:20080810-213024.log'.
30 * The ebuild environment file is located at
31 '/var/tmp/portage/net-fs/mount-cifs-3.0.28/temp/environment'.
32 *
33 ccs:/usr/src# script -c 'CFLAGS="-O2 -mtune=nocona -pipe
34 -D_GNU_SOURCE" emerge net-fs/mount-cifs' temp.txt
35 Script started, file is temp.txt
36
37 These are the packages that would be merged, in order:
38
39 Calculating dependencies ... done!
40 [ebuild N ] net-fs/mount-cifs-3.0.28 0 kB
41
42 Total: 1 package (1 new), Size of downloads: 0 kB
43
44 Would you like to merge these packages? [Yes/No] y
45 >>> Verifying ebuild manifests
46 >>> Building (1 of 1) net-fs/mount-cifs-3.0.28 for /
47 * mount-cifs-3.0.28.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...
48 [ ok ]
49 * checking ebuild checksums ;-) ...
50 [ ok ]
51 * checking auxfile checksums ;-) ...
52 [ ok ]
53 * checking miscfile checksums ;-) ...
54 [ ok ]
55 >>> cfg-update-1.8.2-r1: Checksum index is up-to-date ...
56 >>> Unpacking source...
57 >>> Unpacking mount-cifs-3.0.28.tar.bz2 to
58 >/var/tmp/portage/net-fs/mount-cifs-3.0.28/work
59 * Applying user-unmount-ioctl-fix-bug4784.diff ...
60 [ ok ]
61 >>> Source unpacked.
62 >>> Compiling source in
63 >/var/tmp/portage/net-fs/mount-cifs-3.0.28/work/mount-cifs-3.0.28 ...
64 mount.cifs.c: In function 'main':
65 mount.cifs.c:1095: error: 'PATH_MAX' undeclared (first use in this
66 function)
67 mount.cifs.c:1095: error: (Each undeclared identifier is reported only
68 once
69 mount.cifs.c:1095: error: for each function it appears in.)
70 *
71 * ERROR: net-fs/mount-cifs-3.0.28 failed.
72 * Call stack:
73 * ebuild.sh, line 49: Called src_compile
74 * environment, line 2041: Called die
75 * The specific snippet of code:
76 * $(tc-getCC) ${CFLAGS} mount.cifs.c -o mount.cifs || die "make
77 * mount.cifs failed";
78 * The die message:
79 * make mount.cifs failed
80 *
81 * If you need support, post the topmost build error, and the call
82 stack if relevant.
83 * A complete build log is located at
84 '/var/log/portage/net-fs:mount-cifs-3.0.28:20080811-002815.log'.
85 * The ebuild environment file is located at
86 '/var/tmp/portage/net-fs/mount-cifs-3.0.28/temp/environment'.
87 *
88
89 My emerge --info is below -- any assistance would be appreciated.
90
91 I did try adding -DGNU_SOURCE to CFLAGS which made a few other
92 packages work, but no joy for this one.
93
94 Portage 2.2_rc3 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r6 i686)
95 =================================================================
96 System uname: Linux-2.6.25-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-glibc2.0
97 Timestamp of tree: Sun, 10 Aug 2008 20:36:01 +0000
98 app-shells/bash: 3.2_p39
99 dev-java/java-config: 1.3.7, 2.1.6-r1
100 dev-lang/python: 2.4.4-r13, 2.5.2-r5
101 dev-python/pycrypto: 2.0.1-r6
102 sys-apps/baselayout: 1.12.11.1
103 sys-apps/sandbox: 1.2.18.1-r3
104 sys-devel/autoconf: 2.13, 2.62-r1
105 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
106 sys-devel/binutils: 2.18-r3
107 sys-devel/gcc-config: 1.4.0-r4
108 sys-devel/libtool: 1.5.26
109 virtual/os-headers: 2.6.25-r4
110 ACCEPT_KEYWORDS="x86"
111 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"
112 ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
113 ANT_HOME="/usr/share/ant-core"
114 APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"
115 APACHE2_MPMS="prefork"
116 ARCH="x86"
117 AUTOCLEAN="yes"
118 BASH_ENV="/root/.bashrc"
119 CBUILD="i686-pc-linux-gnu"
120 CFLAGS="-O2 -mtune=nocona -pipe"
121 CHOST="i686-pc-linux-gnu"
122 CLASSPATH="."
123 CLEAN_DELAY="5"
124 CONFIG_PROTECT="/etc /var/bind"
125 CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
126 CVS_RSH="ssh"
127 CXXFLAGS="-O2 -mtune=nocona -pipe"
128 DISTDIR="/usr/portage/distfiles"
129 EDITOR="/usr/bin/emacs"
130 ELIBC="glibc"
131 EMERGE_DEFAULT_OPTS="--ask --color=n --verbose --nospinner"
132 EMERGE_WARNING_DELAY="10"
133 FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
134 FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
135 GCC_SPECS=""
136 GDK_USE_XFT="1"
137 GENERATION="2"
138 GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo http://distfiles.gentoo.org"
139 HOME="/root"
140 HUSHLOGIN="FALSE"
141 INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/info"
142 INPUT_DEVICES="keyboard mouse evdev"
143 JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
144 JAVA_HOME="/etc/java-config-2/current-system-vm"
145 JDK_HOME="/etc/java-config-2/current-system-vm"
146 KERNEL="linux"
147 KERNELRELEASE=""
148 LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
149 LDFLAGS="-Wl,-O1"
150 LESS="-R -M --shift 5"
151 LESSOPEN="|lesspipe.sh %s"
152 LOGNAME="root"
153 LS_COLORS="rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
154 MAIL="/var/mail/root"
155 MAILMAN_MAILGID="2"
156 MAKEOPTS="-j2"
157 MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/man:/opt/sun-jdk-1.4.2.13/man:/etc/java-config/system-vm/man/:/usr/lib/php5/man/:/usr/qt/3/doc/man"
158 NOCOLOR="true"
159 OLDPWD="/audio/xv6800_card"
160 OPENGL_PROFILE="nvidia"
161 PAGER="/usr/bin/less"
162 PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.1:/opt/sun-jdk-1.4.2.13/bin:/opt/sun-jdk-1.4.2.13/jre/bin:/opt/sun-jdk-1.4.2.13/jre/javaws:/usr/qt/3/bin:/root/bin"
163 PKGDIR="/usr/portage/packages"
164 PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
165 PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
166 PORTAGE_BINHOST_CHUNKSIZE="3000"
167 PORTAGE_BIN_PATH="/usr/lib/portage/bin"
168 PORTAGE_CONFIGROOT="/"
169 PORTAGE_DEBUG="0"
170 PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
171 PORTAGE_ELOG_CLASSES="log warn error"
172 PORTAGE_ELOG_MAILFROM="portage@localhost"
173 PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
174 PORTAGE_ELOG_MAILURI="covici /usr/sbin/sendmail"
175 PORTAGE_ELOG_SYSTEM="save mail_summary"
176 PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
177 PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
178 PORTAGE_GID="250"
179 PORTAGE_INST_GID="0"
180 PORTAGE_INST_UID="0"
181 PORTAGE_PYM_PATH="/usr/lib/portage/pym"
182 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
183 PORTAGE_RSYNC_RETRIES="3"
184 PORTAGE_TMPDIR="/var/tmp"
185 PORTAGE_WORKDIR_MODE="0700"
186 PORTDIR="/usr/portage"
187 PORT_LOGDIR="/var/log/portage"
188 PRELINK_PATH_MASK="/usr/lib/klibc"
189 PS1="\h:\w\$ "
190 PWD="/usr/src"
191 PYTHONDOCS="/usr/share/doc/python-docs-2.5.1/html/lib"
192 QMAKESPEC="linux-g++"
193 QTDIR="/usr/qt/3"
194 RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
195 ROOT="/"
196 ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.1:/opt/sun-jdk-1.4.2.13/bin:/opt/sun-jdk-1.4.2.13/jre/bin:/opt/sun-jdk-1.4.2.13/jre/javaws:/usr/qt/3/bin"
197 RPMDIR="/usr/portage/rpm"
198 SHELL="/bin/bash"
199 SHLVL="1"
200 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
201 TERM="linux"
202 USE="X accessibility acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emboss encode esd evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" 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="nvidia"
203 USER="root"
204 USERLAND="GNU"
205 USERNAME="root"
206 USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
207 USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
208 USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
209 UUCPLOCK="/var/lock/LCK.."
210 VIDEO_CARDS="nvidia"
211 VMHANDLE="sun-jdk-1.4"
212 _="/usr/bin/emerge"
213
214
215 --
216 Your life is like a penny. You're going to lose it. The question is:
217 How do
218 you spend it?
219
220 John Covici
221 covici@××××××××××.com

Replies

Subject Author
[gentoo-user] Re: cannot compile net-fs/mount-cifs using gcc 4.3.1 Nikos Chantziaras <realnc@×××××.de>