* [uml-devel] compile failure on uml-2.6.15-bs3-tls (and an easy fix)
@ 2006-03-17 18:57 Erik Paulson
2006-03-17 19:39 ` Blaisorblade
0 siblings, 1 reply; 2+ messages in thread
From: Erik Paulson @ 2006-03-17 18:57 UTC (permalink / raw)
To: user-mode-linux-devel
Hello,
On a CentOS 4.2 machine, I had the same failure that Bill Stearns had
back in January in this message:
http://www.mail-archive.com/user-mode-linux-devel@lists.sourceforge.net/msg02943.html
(the failure:
arch/um/os-Linux/tls.c:48: error: syntax error before 'get_thread_area'
arch/um/os-Linux/tls.c:48: warning: type defaults to 'int' in declaration
of '_syscall1'
)
The small addition of #include <linux/unistd.h> fixed it for me.
Here's how I built my kernel:
tar xvfz /p/mirror/pub/mirrors/linux/kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.6.tar.gz
wget http://www.user-mode-linux.org/~blaisorblade/patches/guest/uml-2.6.15-bs3-tls/uml-2.6.15-bs3-tls.patch.bz2
wget http://uml.nagafix.co.uk/kernels/kernel32-2.6.15.6-bs3-tls.config
bunzip2 uml-2.6.15-bs3-tls.patch.bz2
cd linux-2.6.15.6/
patch -p1 < ../uml-2.6.15-bs3-tls.patch
make mrproper ARCH=um
cp ../kernel32-2.6.15.6-bs3-tls.config .config
make ARCH=um oldconfig
make linux ARCH=um
vi arch/um/os-Linux/tls.c
make linux ARCH=um
teal(37)% gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
teal(40)% rpm -qa | grep glibc
glibc-utils-2.3.4-2.13
glibc-common-2.3.4-2.13
glibc-headers-2.3.4-2.13
glibc-2.3.4-2.13
glibc-devel-2.3.4-2.13
glibc-kernheaders-2.4-9.1.98.EL
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [uml-devel] compile failure on uml-2.6.15-bs3-tls (and an easy fix)
2006-03-17 18:57 [uml-devel] compile failure on uml-2.6.15-bs3-tls (and an easy fix) Erik Paulson
@ 2006-03-17 19:39 ` Blaisorblade
0 siblings, 0 replies; 2+ messages in thread
From: Blaisorblade @ 2006-03-17 19:39 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Erik Paulson
On Friday 17 March 2006 19:57, Erik Paulson wrote:
> Hello,
>
> On a CentOS 4.2 machine, I had the same failure that Bill Stearns had
> back in January in this message:
>
> http://www.mail-archive.com/user-mode-linux-devel@lists.sourceforge.net/msg
>02943.html
Ah, ok... here's why he posted that patch. Thanks for the report, I had
integrated it anyway in my tree for next release, but I didn't know it fixed
a bug - RH headers are different so I didn't experience this problem.
Fix will be in -bb5 and subsequent release.
> (the failure:
>
> arch/um/os-Linux/tls.c:48: error: syntax error before 'get_thread_area'
> arch/um/os-Linux/tls.c:48: warning: type defaults to 'int' in declaration
> of '_syscall1'
> )
>
> The small addition of #include <linux/unistd.h> fixed it for me.
>
> Here's how I built my kernel:
> teal(40)% rpm -qa | grep glibc
> glibc-utils-2.3.4-2.13
> glibc-common-2.3.4-2.13
> glibc-headers-2.3.4-2.13
> glibc-2.3.4-2.13
> glibc-devel-2.3.4-2.13
> glibc-kernheaders-2.4-9.1.98.EL
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-17 19:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-17 18:57 [uml-devel] compile failure on uml-2.6.15-bs3-tls (and an easy fix) Erik Paulson
2006-03-17 19:39 ` Blaisorblade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox