Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61482 - [linux26-headers] sash/mac-fdisk/kbd fail to compile
Summary: [linux26-headers] sash/mac-fdisk/kbd 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: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
: 61488 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-24 02:34 UTC by Markus Rothe (RETIRED)
Modified: 2004-10-31 07:52 UTC (History)
2 users (show)

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


Attachments
Patch (linux26-headers-bug61482.patch,1.08 KB, patch)
2004-09-28 09:00 UTC, Tim Yamin (RETIRED)
Details | Diff
sash output using 2.6.8.1 (sash.output.2.6.8.1,11.65 KB, text/plain)
2004-10-03 03:43 UTC, Markus Rothe (RETIRED)
Details
sash output with 2.6.8.1 and "sed ..." (sash.output-2.6.8.1,2.54 KB, text/plain)
2004-10-03 04:21 UTC, Markus Rothe (RETIRED)
Details
/usr/include/asm/iSeries/ItLpPaca.h (ItLpPaca.h,6.67 KB, text/plain)
2004-10-03 06:09 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 02:34:55 UTC
Hi,

app-shells/sash-3.6 will fail when using linux26-headers-2.6.7-r4:

>>> emerge (1 of 74) app-shells/sash-3.6 to /
>>> md5 src_uri ;-) sash-3.6.tar.gz
>>> Unpacking source...
>>> Unpacking sash-3.6.tar.gz to /var/tmp/portage/sash-3.6/work
 * Applying sash-3.6-fix-includes.patch...                                                                       [ ok ]
readline
 * Applying sash-3.6-readline.patch...                                                                           [ ok ]
ppc64
 * Applying sash-3.6-ppc64-includes.patch...                                                                     [ ok ]
>>> Source unpacked.
gcc -mtune=970 -O3 -pipe -fsigned-char -mabi=altivec -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 
-DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o sash.o sash.c
sash.c: In function `fileman_completion':
sash.c:536: warning: implicit declaration of function `completion_matches'
sash.c:536: warning: assignment makes pointer from integer without a cast
sash.c: In function `command_generator':
sash.c:561: warning: suggest parentheses around assignment used as truth value
sash.c: At top level:
sash.c:1454: warning: 'showPrompt' defined but not used
gcc -mtune=970 -O3 -pipe -fsigned-char -mabi=altivec -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 
-DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmds.o cmds.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 cmds.c:21:
/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 cmds.c:21:
/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: *** [cmds.o] Error 1

!!! ERROR: app-shells/sash-3.6 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! (no error message)

Just an enhancement bug! ;-)

Markus
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2004-08-24 04:38:54 UTC
add: using gcc-3.4.1
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2004-08-24 05:30:19 UTC
works fine with linux26-headers-2.6.3-r1

Markus
Comment 3 Tom Gall (RETIRED) gentoo-dev 2004-09-22 20:22:50 UTC
and is broken with linux26-headers2.6.7 :-/
Comment 4 SpanKY gentoo-dev 2004-09-27 23:01:35 UTC
what about 2.6.8.1 ?
Comment 5 SpanKY gentoo-dev 2004-09-27 23:02:20 UTC
*** Bug 61488 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2004-09-27 23:02:24 UTC
*** Bug 61493 has been marked as a duplicate of this bug. ***
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-09-28 09:00:38 UTC
Created attachment 40636 [details, diff]
Patch

Please try this patch on your headers (apply to /usr/include/asm). Thanks!
Comment 8 Markus Rothe (RETIRED) gentoo-dev 2004-10-03 01:15:30 UTC
the patch works with linux26-headers-2.6.7-r4, but it gives some new errors with 2.6.8.1. So 2.6.7 are the way to go.. :-)

Markus
Comment 9 Tim Yamin (RETIRED) gentoo-dev 2004-10-03 03:30:10 UTC
Would you mind pasting the errors with 2.6.8.1 please?
Comment 10 Markus Rothe (RETIRED) gentoo-dev 2004-10-03 03:43:27 UTC
Created attachment 40974 [details]
sash output using 2.6.8.1

sure... here it is.

Markus
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2004-10-03 03:57:36 UTC
Try running (in bash/zsh):

%> sed -i -e "s/\([ "$'\t'"]\)u32/\1__u32/g;s/\([ "$'\t'"]\)u16/\1__u16/g;s/\([ "$'\t'"]\)u8/\1__u8/g;s/\([ "$'\t'"]\)u64/\1__u64/g;" /usr/include/asm/iSeries/*
%> sed -i -e "s/\([ "$'\t'"]\)u32/\1__u32/g;s/\([ "$'\t'"]\)u16/\1__u16/g;s/\([ "$'\t'"]\)u8/\1__u8/g;s/\([ "$'\t'"]\)u64/\1__u64/g;" /usr/include/asm/*
Comment 12 Markus Rothe (RETIRED) gentoo-dev 2004-10-03 04:21:48 UTC
Created attachment 40976 [details]
sash output with 2.6.8.1 and "sed ..."

the command reduces the errors! :-)

Markus
Comment 13 Tim Yamin (RETIRED) gentoo-dev 2004-10-03 06:00:23 UTC
Hrm, can you attach /usr/include/asm/iSeries/ItLpPaca.h ?
Comment 14 Markus Rothe (RETIRED) gentoo-dev 2004-10-03 06:09:59 UTC
Created attachment 40989 [details]
/usr/include/asm/iSeries/ItLpPaca.h
Comment 15 Tim Yamin (RETIRED) gentoo-dev 2004-10-03 06:15:13 UTC
Hrm, weird. Looks like the sed didn't pick up line 101 and 102 of /usr/include/asm/iSeries/ItLpPaca.h for you, but it did here. Want to change those from "volatile u64" to "volatile __u64"? Then make the following change on /usr/include/asm/page.h:

@@ -90,6 +91,8 @@
 /* to align the pointer to the (next) page boundary */
 #define PAGE_ALIGN(addr)       _ALIGN(addr, PAGE_SIZE)

+typedef struct { unsigned long pte; } pte_t;
+
 #ifdef __KERNEL__
 #ifndef __ASSEMBLY__
 #include <asm/naca.h>
@@ -128,7 +131,6 @@
  * These are used to make use of C type-checking.
  * Entries in the pte table are 64b, while entries in the pgd & pmd are 32b.
  */
-typedef struct { unsigned long pte; } pte_t;
 typedef struct { unsigned int  pmd; } pmd_t;
 typedef struct { unsigned int  pgd; } pgd_t;
 typedef struct { unsigned long pgprot; } pgprot_t;

... and tell me how that goes.
Comment 16 Markus Rothe (RETIRED) gentoo-dev 2004-10-03 06:23:29 UTC
Hi,

sash-3.6, mac-fdisk-0.1-r2 and kbd-1.12-r2 all compile now! :-)

Markus
Comment 17 Markus Rothe (RETIRED) gentoo-dev 2004-10-03 06:28:30 UTC
should I build a patch which includes all changes or are you willing to do it?

Markus
Comment 18 Tim Yamin (RETIRED) gentoo-dev 2004-10-03 06:33:03 UTC
I'm doing it - it should be in CVS in a few minutes and reach the rsync servers within an hour. Please test linux26-headers-2.6.8.1-r1 when it appears and please tell me if things work/fail :-)
Comment 19 Markus Rothe (RETIRED) gentoo-dev 2004-10-03 07:57:46 UTC
I cannot emerge it:

(...)
  CRC32c CRC algorithm (CRYPTO_CRC32C) [N/m/y/?] (NEW) n
  Testing module (CRYPTO_TEST) [M/n/y/?] m
*
* Library routines
*
CRC-CCITT functions (CRC_CCITT) [M/y/?] (NEW) m
CRC32 functions (CRC32) [Y/?] y
CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [N/m/y/?] 
(NEW) n
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/bin2c
  CC      arch/ppc64/kernel/asm-offsets.s
In file included from include/asm/system.h:13,
                 from include/linux/list.h:6,
                 from include/linux/signal.h:4,
                 from arch/ppc64/kernel/asm-offsets.c:17:
include/asm/page.h:152: error: conflicting types for 'pte_t'
include/asm/page.h:94: error: previous declaration of 'pte_t' was here
make[1]: *** [arch/ppc64/kernel/asm-offsets.s] Error 1
make: *** [arch/ppc64/kernel/asm-offsets.s] Error 2

!!! ERROR: sys-kernel/linux26-headers-2.6.8.1-r1 failed.
!!! Function src_compile, Line 81, Exitcode 2
!!! prepare failed

Markus
Comment 20 Tim Yamin (RETIRED) gentoo-dev 2004-10-03 08:42:07 UTC
Ok, should be fixed now... You want a sys-kernel/linux26-headers/files/linux26-headers-2.6.8.1-appCompat.patch with a MD5 of a7fc9c7093167bfa5e435df748e0cce5.
Comment 21 Markus Rothe (RETIRED) gentoo-dev 2004-10-03 09:22:54 UTC
Finally it works like a charm! :-)

linux26-headers-2.6.8.1-r1 merges succesfully and sash/mac-fdisk/kbd also compiles.

Changeing status to FIXED.

Markus
Comment 22 Tom Gall (RETIRED) gentoo-dev 2004-10-31 07:52:58 UTC
time to stick a fork in it!