Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295142 - sys-block/gpart fails to build
Summary: sys-block/gpart fails to build
Status: RESOLVED DUPLICATE of bug 261145
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-30 02:49 UTC by Ivan Anishchuk
Modified: 2009-12-17 08:15 UTC (History)
1 user (show)

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


Attachments
patch to fix bug (gpart-0.1h-o_create-mode.patch,354 bytes, patch)
2009-11-30 02:51 UTC, Ivan Anishchuk
Details | Diff
patch for ebuild (gpart-0.1h-r1.ebuild.patch,507 bytes, patch)
2009-11-30 02:53 UTC, Ivan Anishchuk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Anishchuk 2009-11-30 02:49:43 UTC
[ebuild  N    ] sys-block/gpart-0.1h-r1  0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-block/gpart-0.1h-r1
 * gpart-0.1h.tar.gz RMD160 SHA1 SHA256 size ;-) ...                     [ ok ]
 * gpart-0.1h-reiserfs-3.6.patch.gz RMD160 SHA1 SHA256 size ;-) ...      [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  sys-block/gpart-0.1h-r1
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking gpart-0.1h.tar.gz to /var/tmp/portage/sys-block/gpart-0.1h-r1/work
>>> Unpacking gpart-0.1h-reiserfs-3.6.patch.gz to /var/tmp/portage/sys-block/gpart-0.1h-r1/work
 * Applying gpart-0.1h-errno.patch ...                                                             [ ok ]
 * Applying gpart-0.1h-vfat.patch ...                                                              [ ok ]
 * Applying gpart-0.1h-ntfs.patch ...                                                              [ ok ]
 * Applying gpart-0.1h-PIC.patch ...                                                               [ ok ]
 * Applying gpart-0.1h-no-_syscall.patch ...                                                       [ ok ]
 * Applying gpart-0.1h-reiserfs-3.6.patch ...                                                      [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-block/gpart-0.1h-r1/work
>>> Compiling source in /var/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h ...
make -j2 
make -C src
make[1]: Entering directory `/var/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h/src'
make[1]: Leaving directory `/var/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h/src'
make[1]: Entering directory `/var/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h/src'
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o gpart.o gpart.c
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o gmodules.o gmodules.c
gpart.c:72: warning: built-in function ‘log’ declared as non-function
gmodules.c: In function ‘g_mod_addexternal’:
gmodules.c:193: warning: ISO C forbids conversion of object pointer to function pointer type
gmodules.c:195: warning: ISO C forbids conversion of object pointer to function pointer type
gmodules.c:197: warning: ISO C forbids conversion of object pointer to function pointer type
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o disku.o disku.c
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o l64seek.o l64seek.c
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o gm_ext2.o gm_ext2.c
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o gm_lswap.o gm_lswap.c
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o gm_fat.o gm_fat.c
gm_fat.c: In function ‘fat_gfun’:
gm_fat.c:63: warning: dereferencing type-punned pointer will break strict-aliasing rules
gm_fat.c:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o gm_bsddl.o gm_bsddl.c
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o gm_ntfs.o gm_ntfs.c
gcc -Wall -O2 -pipe -pedantic -DVERSION=\"0.1h\"   -c -o gm_hpfs.o gm_hpfs.c
In file included from /usr/include/fcntl.h:217,
                 from gpart.c:52:
In function ‘open’,
    inlined from ‘main’ at gpart.c:1224:
/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
make[1]: *** [gpart.o] Error 1
make[1]: *** Waiting for unfinished jobs....
gm_hpfs.c: In function ‘hpfs_gfun’:
gm_hpfs.c:61: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: Leaving directory `/var/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h/src'
make: *** [gpart] Error 2
 * ERROR: sys-block/gpart-0.1h-r1 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   49:  Called src_compile
 *   environment, line 2272:  Called _eapi0_src_compile
 *     ebuild.sh, line  595:  Called _eapi2_src_compile
 *     ebuild.sh, line  629:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-block/gpart-0.1h-r1',
 * the complete build log and the output of 'emerge -pqv =sys-block/gpart-0.1h-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-block/gpart-0.1h-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-block/gpart-0.1h-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-block/gpart-0.1h-r1/work/gpart-0.1h'

>>> Failed to emerge sys-block/gpart-0.1h-r1, Log file:

>>>  '/var/tmp/portage/sys-block/gpart-0.1h-r1/temp/build.log'


Reproducible: Always
Comment 1 Ivan Anishchuk 2009-11-30 02:51:23 UTC
Created attachment 211556 [details, diff]
patch to fix bug

This patch works for me, but i'm not sure is 644 mode proper.
Comment 2 Ivan Anishchuk 2009-11-30 02:53:06 UTC
Created attachment 211558 [details, diff]
patch for ebuild

patch for ebuild from tree
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-30 16:23:39 UTC

*** This bug has been marked as a duplicate of bug 261145 ***