Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671860 - sys-fs/mac-fdisk-0.1-r7 - fdisk.o: In function `check_consistency': fdisk.c:(.text+0x70): undefined reference to `__swap32'
Summary: sys-fs/mac-fdisk-0.1-r7 - fdisk.o: In function `check_consistency': fdisk.c:(...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on: 686542
Blocks:
  Show dependency tree
 
Reported: 2018-11-25 12:02 UTC by ernsteiswuerfel
Modified: 2019-06-22 11:10 UTC (History)
0 users

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


Attachments
emerge --info (file_671860.txt,5.67 KB, text/plain)
2018-11-25 12:02 UTC, ernsteiswuerfel
Details
build.log (mac-fdisk-0.1-r7:20181125-115929.log,8.30 KB, text/plain)
2018-11-25 12:04 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-11-25 12:02:58 UTC
Created attachment 556228 [details]
emerge --info

/usr/include/bits/strings_fortified.h:25:3: warning: ‘__builtin___memmove_chk’ writing 276 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
   (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest));
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
powerpc-unknown-linux-gnu-gcc -Os -mcpu=7450 -mtune=7450 -pipe   -c -o dump.o dump.c
powerpc-unknown-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed  fdisk.o fdisklabel.o   -o fdisk
fdisk.o: In function `check_consistency':
fdisk.c:(.text+0x70): undefined reference to `__swap32'
fdisk.c:(.text+0x7c): undefined reference to `__swap32'
fdisk.o: In function `set_partition':
fdisk.c:(.text+0x5ac): undefined reference to `__swap32'
fdisk.c:(.text+0x5bc): undefined reference to `__swap32'
fdisk.o: In function `read_extended':
fdisk.c:(.text+0x974): undefined reference to `__swap32'
fdisk.o:fdisk.c:(.text+0x994): more undefined references to `__swap32' follow
collect2: error: ld returned 1 exit status
make: *** [<builtin>: fdisk] Error 1
emake failed
 * ERROR: sys-fs/mac-fdisk-0.1-r7::gentoo failed (compile phase):
Comment 1 ernsteiswuerfel archtester 2018-11-25 12:04:42 UTC
Created attachment 556230 [details]
build.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-11-25 15:24:10 UTC
io.c:447:11: warning: implicit declaration of function ‘lseek64’; did you mean ‘lseek’? [-Wimplicit-function-declaration]
 I think it really fails because of this one. Weird GCC.
Comment 3 ernsteiswuerfel archtester 2018-11-25 17:59:57 UTC
mac-fdisk-0.1_p16 and mac-fdisk-0.1_p18 build fine.
Comment 4 Larry the Git Cow gentoo-dev 2018-11-25 20:08:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51ea732868abe708e2fb20bfe4f6190e065847d6

commit 51ea732868abe708e2fb20bfe4f6190e065847d6
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2018-11-25 20:07:53 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2018-11-25 20:08:15 +0000

    sys-fs/mac-fdisk: Define lseek64 properly
    
    Bug: https://bugs.gentoo.org/671860
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 .../files/mac-fdisk-0.1_p18-lseek64.patch          | 43 ++++++++++++++++++++++
 sys-fs/mac-fdisk/mac-fdisk-0.1_p18.ebuild          |  9 +++--
 2 files changed, 48 insertions(+), 4 deletions(-)
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2018-11-25 20:13:45 UTC
(In reply to ernsteiswuerfel from comment #3)
> mac-fdisk-0.1_p16 and mac-fdisk-0.1_p18 build fine.

I only just added _p18 and it doesn't do much useful compared to _p16, so maybe _p16 ought to go stable.
Comment 6 ernsteiswuerfel archtester 2018-11-25 20:45:46 UTC
(In reply to Jeroen Roovers from comment #5)

> I only just added _p18 and it doesn't do much useful compared to _p16, so
> maybe _p16 ought to go stable.

Affirmative.
Comment 7 ernsteiswuerfel archtester 2019-06-22 11:10:51 UTC
Fixed in sys-fs/mac-fdisk-0.1_p18 which has gone stable.