Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19302 - Fix for gpart-0.1h errno problem
Summary: Fix for gpart-0.1h errno problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-14 12:32 UTC by Andreas Pokorny
Modified: 2003-04-22 14:54 UTC (History)
0 users

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


Attachments
New ebuild that uses the patch (gpart-0.1h-r1.ebuild,506 bytes, text/plain)
2003-04-14 12:34 UTC, Andreas Pokorny
Details
Patch that adds errno.h to disku.c and l64seek.c (gpart-0.1h-20030923.diff,533 bytes, patch)
2003-04-14 12:35 UTC, Andreas Pokorny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Pokorny 2003-04-14 12:32:26 UTC
gpart-0.1h does not compile since errno.h is not included in to source files (src/l64seek.c and  src/disku.c )


Reproducible: Always
Steps to Reproduce:

1. emerge gpart
2.
3.

Actual Results:  
emerge gpart
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/gpart-0.1h to /
>>> md5 ;-) gpart-0.1h.tar.gz
>>> Unpacking source...
>>> Unpacking gpart-0.1h.tar.gz to /var/tmp/portage/gpart-0.1h/work
>>> Source unpacked.
make -C src
make[1]: Entering directory `/var/tmp/portage/gpart-0.1h/work/gpart-0.1h/src'
make[1]: Leaving directory `/var/tmp/portage/gpart-0.1h/work/gpart-0.1h/src'
make[1]: Entering directory `/var/tmp/portage/gpart-0.1h/work/gpart-0.1h/src'
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gpart.o gpart.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gmodules.o gmodules.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o disku.o disku.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o l64seek.o l64seek.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_ext2.o gm_ext2.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_lswap.o gm_lswap.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_fat.o gm_fat.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_bsddl.o gm_bsddl.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_ntfs.o gm_ntfs.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_hpfs.o gm_hpfs.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_s86dl.o gm_s86dl.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_minix.o gm_minix.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_rfs.o gm_rfs.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_hmlvm.o gm_hmlvm.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_qnx4.o gm_qnx4.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_beos.o gm_beos.c
gcc -Wall -O2 -pedantic -DVERSION=\"0.1h\"   -c -o gm_xfs.o gm_xfs.c
In file included from gm_xfs.c:19:
gm_xfs.h:30: warning: ISO C89 does not support `long long'
gm_xfs.h:31: warning: ISO C89 does not support `long long'
gm_xfs.c: In function `xfs_gfun':
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:70: warning: ISO C89 forbids long long integer constants
gm_xfs.c:71: warning: ISO C89 forbids long long integer constants
gm_xfs.c:71: warning: ISO C89 forbids long long integer constants
gm_xfs.c:71: warning: ISO C89 forbids long long integer constants
gm_xfs.c:71: warning: ISO C89 forbids long long integer constants
gm_xfs.c:71: warning: ISO C89 forbids long long integer constants
gm_xfs.c:71: warning: ISO C89 forbids long long integer constants
gm_xfs.c:71: warning: ISO C89 forbids long long integer constants
gm_xfs.c:71: warning: ISO C89 forbids long long integer constants
gcc -o gpart  gpart.o gmodules.o disku.o l64seek.o gm_ext2.o gm_lswap.o gm_fat.o gm_bsddl.o gm_ntfs.o 
_hpfs.o gm_s86dl.o gm_minix.o gm_rfs.o gm_hmlvm.o gm_qnx4.o gm_beos.o gm_xfs.o -ldl
disku.o(.text+0x78): In function `disk_geometry':
: undefined reference to `errno'
disku.o(.text+0xa7): In function `disk_geometry':
: undefined reference to `errno'
disku.o(.text+0x106): In function `reread_partition_table':
: undefined reference to `errno'
l64seek.o(.text+0x2f): In function `_llseek':
: undefinecollect2: ld returned 1 exit status
make[1]: *** [gpart] Error 1
make[1]: Leaving directory `/var/tmp/portage/gpart-0.1h/work/gpart-0.1h/src'
make: *** [gpart] Error 2

!!! ERROR: sys-apps/gpart-0.1h failed.
!!! Function src_compile, Line 18, Exitcode 2
!!! (no error message)

d reference to `errno'


Expected Results:  
gpart should compile ..
Comment 1 Andreas Pokorny 2003-04-14 12:34:21 UTC
Created attachment 10633 [details]
New ebuild that uses the patch
Comment 2 Andreas Pokorny 2003-04-14 12:35:50 UTC
Created attachment 10634 [details, diff]
Patch that adds errno.h to disku.c and l64seek.c

has to be saved sys-app/gpart/files/
Comment 3 Stefan Jones (RETIRED) gentoo-dev 2003-04-22 14:54:55 UTC
Thanks, I have tested / applied the patch to portage. Closing bug.