Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303965 - app-text/ptex-3.1.10_p20090610-r1 - /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
Summary: app-text/ptex-3.1.10_p20090610-r1 - /usr/include/bits/fcntl2.h:51: error: cal...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-08 09:33 UTC by TANABE Ken-ichi
Modified: 2011-10-06 20:16 UTC (History)
3 users (show)

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


Attachments
build log of ptex-3.1.10_p20090610-r1 (build.log,1.05 MB, text/plain)
2010-02-08 09:34 UTC, TANABE Ken-ichi
Details
LANG=C version of build log (build.log,1.02 MB, text/plain)
2010-02-10 14:45 UTC, TANABE Ken-ichi
Details
xdvik-open-mode.patch (xdvik-open-mode.patch,383 bytes, patch)
2010-02-14 06:25 UTC, MATSUU Takuto (RETIRED)
Details | Diff
pxdvik opem mode patch (pxdvik-open-mode.patch,385 bytes, patch)
2010-02-14 13:55 UTC, TANABE Ken-ichi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TANABE Ken-ichi 2010-02-08 09:33:33 UTC
app-text/ptex-3.1.10_p20090610-r1 failed to build.

Reproducible: Always

Steps to Reproduce:
1. emerge ptex
2.
3.

Actual Results:  
util.c: In function ‘my_realpath’:
util.c:581: 警告: ignoring return value of ‘fchdir’, declared with attribute warn_unused_result
util.c:591: 警告: ignoring return value of ‘fchdir’, declared with attribute warn_unused_result
util.c: In function ‘fork_process’:
util.c:1050: 警告: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
util.c:1053: 警告: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result
util.c: In function ‘find_file’:
util.c:1466: 警告: ignoring return value of ‘fchdir’, declared with attribute warn_unused_result
In file included from /usr/include/fcntl.h:217,
                 from /usr/include/sys/file.h:25,
                 from util.c:33:
In function ‘open’,
    inlined from ‘xdvi_temp_fd’ at util.c:276:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arments



Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P7350_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 08 Feb 2010 08:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r2, 2.6.4-r1, 3.1.1-r1
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.3.4, 4.4.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Broadcom PUEL dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ja_JP.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ja"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-6"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/haskell /usr/local/portage"
SYNC="rsync://nagisa.tokyo.tknetworks.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fontconfig freetype gdbm gif gpg gpm gstreamer gtk gtk2 hal iconv ipv6 jpeg kerberos latex libnotify live mad mikmod mmx mmx2 mng modules mozdevelop mp2 mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png policykit ppds pppd python qt3support quicktime readline reflection rtsp ruby sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb v4l v4l2 vorbis x264 xcb xft xinerama xml xorg xulrunner xv xvid zlib" 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" 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 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 TANABE Ken-ichi 2010-02-08 09:34:16 UTC
Created attachment 218893 [details]
build log of ptex-3.1.10_p20090610-r1
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-02-09 17:35:29 UTC
Does it help to set a sane LANG variable?
Comment 3 TANABE Ken-ichi 2010-02-10 14:45:20 UTC
ok.

 # sudo env LANG=C emerge ptex

and attached build log again.
Comment 4 TANABE Ken-ichi 2010-02-10 14:45:51 UTC
Created attachment 219103 [details]
LANG=C version of build log
Comment 5 MATSUU Takuto (RETIRED) gentoo-dev 2010-02-14 06:25:36 UTC
Created attachment 219581 [details, diff]
xdvik-open-mode.patch

Could you try to apply this patch?
this patch is provided by hiyuh.
Comment 7 TANABE Ken-ichi 2010-02-14 13:54:58 UTC
I found that pxdvik/util.c is similar to xdvik/util.c. The same is needed.
Comment 8 TANABE Ken-ichi 2010-02-14 13:55:31 UTC
Created attachment 219637 [details, diff]
pxdvik opem mode patch
Comment 9 hiyuh 2010-02-15 00:56:49 UTC
nabeken,
these open mode patches are just for compile fixes, runtime check may be required.
if you have time to check that perms (S_IRUSR|S_IWUSR) is correct, plz do.
Comment 10 Alexis Ballier gentoo-dev 2011-10-06 20:16:33 UTC
ptex is gone, texlive >=2010 provides the same functionality -> wontfix