Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61493 - [linux26-headers] sys-fs/mac-fdisk-0.1 will fail to compile
Summary: [linux26-headers] sys-fs/mac-fdisk-0.1 will fail to compile
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High enhancement (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 64739
  Show dependency tree
 
Reported: 2004-08-24 04:35 UTC by Markus Rothe (RETIRED)
Modified: 2004-11-03 07:59 UTC (History)
0 users

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


Attachments
-r3 (?) ebuild (mac-fdisk-0.1-r3.ebuild,1.37 KB, text/plain)
2004-08-31 05:49 UTC, Markus Rothe (RETIRED)
Details
the patch (mac-fdisk-0.1-r3-ppc64.patch,16.23 KB, text/plain)
2004-08-31 05:50 UTC, Markus Rothe (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2004-08-24 04:35:21 UTC
Hi,

just another package, which won't compile with linux26-headers-2.6.7-r4: sys-fs/mac-fdisk-0.1

Compile error:

>>> emerge (1 of 30) sys-fs/mac-fdisk-0.1 to /
>>> md5 src_uri ;-) mac-fdisk_0.1.orig.tar.gz
>>> md5 src_uri ;-) mac-fdisk_0.1-8.diff.gz
>>> Unpacking source...
>>> Unpacking mac-fdisk_0.1.orig.tar.gz to 
/var/tmp/portage/mac-fdisk-0.1/work
patching file dump.c
patching file io.c
patching file partition_map.c
patching file partition_map.h
patching file pdisk.c
patching file fdisk.c
patching file fdisklabel.c
patching file fdisklabel.h
patching file Makefile
patching file debian/README.debian
patching file debian/postinst.debhelper
patching file debian/changelog
patching file debian/prerm.debhelper
patching file debian/copyright
patching file debian/pmac-fdisk.substvars
patching file debian/control
patching file debian/rules
patching file debian/postinst
patching file debian/pmac-fdisk.postinst.debhelper
patching file debian/pmac-fdisk.prerm.debhelper
patching file mac-fdisk.8.in
patching file pmac-fdisk.8.in
>>> Source unpacked.
gcc -mtune=970 -O3 -pipe -fsigned-char -mabi=altivec   -c -o pdisk.o 
pdisk.c
gcc -mtune=970 -O3 -pipe -fsigned-char -mabi=altivec   -c -o dump.o 
dump.c
gcc -mtune=970 -O3 -pipe -fsigned-char -mabi=altivec   -c -o 
partition_map.o partition_map.c
In file included from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/fs.h:12,
                 from pdisk.c:43:
/usr/include/asm/processor.h:550: error: parse error before "vector128"
/usr/include/asm/processor.h:556: error: parse error before '}' token
In file included from /usr/include/linux/fs.h:12,
                 from pdisk.c:43:
/usr/include/linux/wait.h: In function `init_waitqueue_head':
/usr/include/linux/wait.h:58: error: `SPIN_LOCK_UNLOCKED' undeclared 
(first use in this function)
/usr/include/linux/wait.h:58: error: (Each undeclared identifier is 
reported only once
/usr/include/linux/wait.h:58: error: for each function it appears in.)
make: *** [pdisk.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/fs.h:12,
                 from partition_map.c:38:
/usr/include/asm/processor.h:550: error: parse error before "vector128"
/usr/include/asm/processor.h:556: error: parse error before '}' token
In file included from /usr/include/linux/fs.h:12,
                 from partition_map.c:38:
/usr/include/linux/wait.h: In function `init_waitqueue_head':
/usr/include/linux/wait.h:58: error: `SPIN_LOCK_UNLOCKED' undeclared 
(first use in this function)
/usr/include/linux/wait.h:58: error: (Each undeclared identifier is 
reported only once
/usr/include/linux/wait.h:58: error: for each function it appears in.)
make: *** [partition_map.o] Error 1

!!! ERROR: sys-fs/mac-fdisk-0.1 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! (no error message)

Markus
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2004-08-24 04:37:37 UTC
add: using gcc-3.4.1
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2004-08-24 05:32:57 UTC
mhh.. using linux26-headers-2.6.3-r1 and sys-fs/mac-fdisk-0.1 won't work...

but linux26-headers-2.6.3-r1 and sys-fs/mac-fdisk-0.1-r2 works just fine...

Markus
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2004-08-31 04:12:11 UTC
UPDATE:

I am now using linux26-headers-2.6.8.1 and mac-fdisk-0.1-r2 is marked stable, but -r2 will not compile with this version of linux26-headers.

The problems when using linux26-headers are solved with latest debian patch (mac-fdisk_0.1-11.diff.gz), but mac-fdisk-ppc64.patch will fail when being applied. I don't know if the ppc64 patch is needed when using latest debian patch, because mac-fdisk starts, when the ppc64 patch is not applied! (but there might be problems, when writing partitions or something else..)

Markus
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2004-08-31 05:49:08 UTC
I got the latest debian patch _and_ the ppc64 patches working! :-)

Maybe this becomes -r3? ;-)

Markus
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2004-08-31 05:49:44 UTC
Created attachment 38573 [details]
-r3 (?) ebuild

This is the ebuild
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2004-08-31 05:50:42 UTC
Created attachment 38574 [details]
the patch

the patch (mainly the "old" patches, but some changes by me)
Comment 7 Philippe Trottier (RETIRED) gentoo-dev 2004-09-06 12:09:03 UTC
Yep, this latest patch looks good and tests good for me too ...
Comment 8 SpanKY gentoo-dev 2004-09-27 23:02:23 UTC

*** This bug has been marked as a duplicate of 61482 ***
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2004-10-10 11:44:51 UTC
this patch should be included to portage and is independend of the linux26-headers bug.

Markus
Comment 10 Joshua Root 2004-10-20 22:28:36 UTC
Did this patch ever get committed? Bug 64739 is fixed now in any case.
Comment 11 Markus Rothe (RETIRED) gentoo-dev 2004-10-20 23:25:13 UTC
no, this patch was never commited.. :-/

Even if it is fixed, I think it is a good idea to commit it, because it updates the changes which are made by debian to latest patchset.

Markus
Comment 12 Markus Rothe (RETIRED) gentoo-dev 2004-11-03 07:58:50 UTC
new ebuild added to portage as 0.1-r3 and added the ~ppc64 keyword.

Markus
Comment 13 Markus Rothe (RETIRED) gentoo-dev 2004-11-03 07:59:28 UTC
closing...