Linux-Development-Sys Digest #53, Volume #7 Sun, 15 Aug 99 03:13:50 EDT
Contents:
Re: GCC Cross Compiling ("Renji Panicker")
Re: How to compile C++ in Linux? (Vic Mulyk)
Re: Cross-compiling kernel ->PowerPC (Vic Mulyk)
Re: Seeking Linux UDP broadcast forwarding solution ([EMAIL PROTECTED])
Re: Used Sun 3000 ("K. A. Wilson")
Re: Seriel-programming (Terry)
Source code licenses allow sharing between Linux and BSDs? (Randall Parker)
Re: reading kernel symbols (Kaz Kylheku)
reading kernel symbols (Robin Becker)
Re: Broken Select (Kaz Kylheku)
Re: [kernel] how to measure running time in nanosecond? (Juergen Heinzl)
Re: minimum linux for playing sound ([EMAIL PROTECTED])
RH6.0: process start time is wrong in 'ps aux' with SMP kernel
([EMAIL PROTECTED])
Re: Stupid question re: sound config ([EMAIL PROTECTED])
Re: Seriel-programming (Mark Hahn)
Re: threads (Sami Tikka)
Re: Stupid question re: sound config (David T. Blake)
Re: reading kernel symbols (Robin Becker)
----------------------------------------------------------------------------
From: "Renji Panicker" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: GCC Cross Compiling
Date: Sat, 14 Aug 1999 12:41:22 +0530
<...>
>pentium motherboard, which just collects dust in dark corner, but it is
>perfectly suitable as Linux workstation without GUI just for compiling
>and debugging (if your program needs GUI you can still use headless box
>installing some X server on NT)
Is there any XServer for Windows available under GNU?
-/renji
------------------------------
Date: Sat, 14 Aug 1999 01:57:28 -0400
From: Vic Mulyk <[EMAIL PROTECTED]>
Subject: Re: How to compile C++ in Linux?
David Schwartz wrote:
>
> "David T. Blake" wrote:
> >
> > Ryan Michaels <[EMAIL PROTECTED]> wrote:
> >
> > >I'm fairly new to Linux development.. most of the time I just use Perl. Is
> > >making a C/C++ program in Linux similar to that of Windows (DOS) where you
> > >write the program in a file, then compile it, or does Linux interpret it
> > >like Perl?
> >
> > What makes you think PERL in linux is interpreted ??
>
> It _is_ intepreted. It is compiled at the beginning of execution, and
> then compiled code is interpreted until the program terminates.
>
> DS
But it's blazingly fast compared to languages like TCL or Java.
-Vic
------------------------------
Date: Sat, 14 Aug 1999 01:54:59 -0400
From: Vic Mulyk <[EMAIL PROTECTED]>
Subject: Re: Cross-compiling kernel ->PowerPC
Michael Meissner wrote:
>
> Robin Smith <[EMAIL PROTECTED]> writes:
>
> > BRIOLE <[EMAIL PROTECTED]> writes:
> >
> > > Hello all,
> > >
> > > I would like to use Linux on IBM rs6k model 250 workstations
> > > (power pc 601 based), but I need to cross-compile Linux
> > > for these workstations from a 80x86 based Linux PC.
> > > How can I do this? (I'm a new in cross-compiling)
> > >
> > > I thank you in advance,
> > >
> > > Sylvain.
> > >
> > > --
> > > Sylvain Briole (aka Eclice sur IRC / supaero)
> > > Lille - Nord - France
> > > EMail InterNet : [EMAIL PROTECTED] / [EMAIL PROTECTED]
> >
> > I did this sort of thing many years ago when I wanted to compile Atari
> > ST programs on Suns when Suns were based on the 68000 series of chips.
> >
> > The simple solution is to get the C compiler for your target platform
> > ( Power PC ) and compile this on the 80x86 platform. The
> > compiler/assembler only produces files of numbers. I'm not sure if you
> > will have big-endian/little-endian problems but give this a try.
>
> Another way is to start with either LinuxPPC or Yellowdog releases that contain
> prebuilt linuxes (assuming they support they IBM platform -- I suspect you can
> use the COFF kernel for those boxes).
>
> If you still need to build a cross compiler, you need to get an appropriate
> egcs compiler release and a binutils release. You use an --prefix= switch to
> specify where to install the compiler and tools and a --target=powerpc-linux
> switch to configure the cross compiler. You probably need to copy over the
> libraries and include files and use the --with-includes= and --with-libs=
> switches (the normal cross compilers I build use the Cygnus one tree mechanisim
> and are targeted to embedded platforms, so I'm blanking on all of the steps
> needed to make a cross compiler with the egcs tools).
>
> The only cross endian bug I'm aware was fixed some time ago (if you compiled
> code that used floating point constants that fit a certain pattern and used the
> -msoft-float, and if the target endian was different from the host endian as it
> is in this case, it would generate the wrong constant).
>
> --
> Michael Meissner, Cygnus Solutions
> PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886
> email: [EMAIL PROTECTED] phone: 978-486-9304 fax: 978-692-4482
Just for fun I built the powerpc-linux cross compiler using newlib in
addition
to what Michael talked about. The compiler built without too much
hassle.
The LegOS site actually has some very informative links on building the
h8/300
cross compiler and most all of the steps apply to powerpc-linux as
well. It's
at http://www.noga.de/legOS/
But trying to build a linux-wrs-powerpc cross for the MPC860 is another
story, sigh :-(.
(anything using va_args, varargs, etc seems to fail compiling in a bad
way)
-Vic
formerly, in a Cygnus compiler support role at Nortel for
i960/SunOS/Solaris
now a C/C++ VxWorks embedded systems developer
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.networking
Subject: Re: Seeking Linux UDP broadcast forwarding solution
Date: 14 Aug 1999 23:15:05 +1000
In comp.os.linux.networking epadin <[EMAIL PROTECTED]> wrote:
> The Cisco router has a 'udp forward' command whereby you specify the
> UDP port and it will forward all UDP broadcast traffic seen on the
You're probably looking for udprelay, which can be found at
ftp://coast.cs.purdue.edu/pub/tools/unix/udprelay-0.2.tar.gz
Unfortunately, it doesn't compile on my box (RH6), but the following
patch seems to work (disclaimer: I didn't test it much).
-Daz.
diff -C2 udprelay-0.2.orig/Makefile udprelay-0.2/Makefile
*** udprelay-0.2.orig/Makefile Sat Oct 30 12:40:46 1993
--- udprelay-0.2/Makefile Sat Aug 14 22:54:33 1999
***************
*** 11,16 ****
# for ODT 2.0
CC=gcc
! OPTS=-DSYSV
! LIBS=-lsocket
# for AIX
# OPTS=-DAIX
--- 11,17 ----
# for ODT 2.0
CC=gcc
! OPTS=-DLINUX
! #OPTS=-DSYSV
! #LIBS=-lsocket
# for AIX
# OPTS=-DAIX
diff -C2 udprelay-0.2.orig/udprelay.c udprelay-0.2/udprelay.c
*** udprelay-0.2.orig/udprelay.c Sat Oct 30 12:12:51 1993
--- udprelay-0.2/udprelay.c Sat Aug 14 22:59:46 1999
***************
*** 78,81 ****
--- 78,85 ----
#include <sys/ioctl.h>
#endif
+ #ifdef LINUX
+ #include <fcntl.h>
+ #define FIONBIO O_NONBLOCK
+ #endif
#include <pwd.h>
#include "udprelay.h"
--
Darren Tucker. (dtucker at the domain zip dot com dot au)
A programmer is a device for converting caffeine into source code.
------------------------------
From: "K. A. Wilson" <[EMAIL PROTECTED]>
Subject: Re: Used Sun 3000
Date: Sat, 14 Aug 1999 08:51:38 -0700
I have a chance to rent to own a Sun 3000 with 3.5 Gig of Ram and 16
gigHD runing solaris. I need to know if this is a good system. I want
to do webhosting and be a small ISP. Any advice will be greatly
appreciated.
------------------------------
From: Terry <[EMAIL PROTECTED]>
Subject: Re: Seriel-programming
Date: Sat, 14 Aug 1999 10:33:07 -0400
[EMAIL PROTECTED] wrote:
>
> I am going to write som programs that communicates trough the seriel
> port.
> Unfortunately I can't find any detaild and good-explaining documentation
> on the subject (I don't think the Seriel.HOWTO and
> Seriel-programming.HOWTO explains that part - it just showing examples).
>
> I'm sure there exists some libraries of some kind. What are they called?
> --
> Rasmus Resen Amossen | http://w1.1444.telia.com/~u144400001
> stud.mat.dat |
> Steng�rdsv�nge 76, 2800 Lyngby | http://www.math.ku.dk/~moh
There is a package called "libserial" on metalab.unc.edu in the
directory /pub/Linux/libs. I haven't tried it so I don't know
how well it works. If you try it, let us know how it is.
Hope this helps.
Terry
------------------------------
From: [EMAIL PROTECTED] (Randall Parker)
Crossposted-To:
comp.unix.bsd.freebsd.misc,comp.unix.bsd.netbsd.misc,comp.unix.bsd.openbsd.misc
Subject: Source code licenses allow sharing between Linux and BSDs?
Date: Sat, 14 Aug 1999 08:52:33 -0700
I had a developer mention to me in private e-mail that the reason that
Linux's threading model is a separate patch add-on to the BSDs is that
there are some sort of licensing issues that cloud whether it can be
added directly as part of the regular shipping releases.
So I want to know as a legal question:
1) Can source code from Linux be added into the regular releases of any
of the BSDs?
2) Can source code from any of the BSDs be added into the regular
releases of Linux?
3) Can the various BSDs all get source code from each other, again
without any licensing restrictions?
To what extent can these different groups of freeware/open source OS
developers freely share source code with each other?
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: reading kernel symbols
Date: Sat, 14 Aug 1999 17:22:00 GMT
On Sat, 14 Aug 1999 17:11:04 +0100, Robin Becker <[EMAIL PROTECTED]>
wrote:
>Can any one explain how RH 6.0 + lilo manages to read it's kernel
>symbols from the boot volume /boot at a time before /boot is mounted?
>The read takes place as klogd starts up.
The kernel knows its own symbols. See /proc/ksyms
------------------------------
From: Robin Becker <[EMAIL PROTECTED]>
Subject: reading kernel symbols
Date: Sat, 14 Aug 1999 17:11:04 +0100
Can any one explain how RH 6.0 + lilo manages to read it's kernel
symbols from the boot volume /boot at a time before /boot is mounted?
The read takes place as klogd starts up.
I need to get something similar going for loadlin.
--
Robin Becker
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Broken Select
Date: Sat, 14 Aug 1999 17:20:31 GMT
On Sat, 14 Aug 1999 00:11:59 -0500, Ed Okerson <[EMAIL PROTECTED]> wrote:
>Well, I found my error and thought I would share it so other driver writers
>would not fall into the same pit. Early on in the writing of the driver I
You didn't mention that you were selecting on your own driver! You said that
the ``select functionality in 2.2.9 appears to be broken''!
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: [kernel] how to measure running time in nanosecond?
Date: Fri, 13 Aug 1999 22:23:04 GMT
In article <7p13jk$8iu$[EMAIL PROTECTED]>, ���ΪY wrote:
>
>using do_gettimeofday & timeval just can measure in microseconds
>
>does there any patchs or methods help me to do this
Just a note, to get nanoseconds you'll need a very accurate
clock and you'll hardly find such a beast in any kind of PC
hardware. In other words, numbers are a nice thing but one
ought to interpret them too.
Ta'
Juergen
--
\ Real name : J�rgen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: minimum linux for playing sound
Date: 14 Aug 1999 18:45:51 GMT
Reply-To: [EMAIL PROTECTED]
In comp.os.linux.misc Andre <[EMAIL PROTECTED]> wrote:
> My friends,
>
> What should be the minimum setup for a standalone linux box to play sound
> (mp3)?
> Can I erase /usr/bin and alike?
> Should I keep most daemons?
>
Rather than create you're own stripped=down version of
Linux, do some searches for minimal distributions on
www.linux.org and the like. Several groups have made very
small distributions that are available (Linux on a floppy,
anyone?).
_______________________________________________________________
"Can't you recognize bullshit? Don't you think it would be a
useful item to add to your intellectual toolkits to be capable
of saying, when a ton of wet steaming bullshit lands on your
head, 'My goodness, this appears to be bullshit'?
_____________Neal Stephenson, "Cryptonomicon"__________________
------------------------------
From: [EMAIL PROTECTED]
Subject: RH6.0: process start time is wrong in 'ps aux' with SMP kernel
Date: 14 Aug 1999 14:31:34 -0700
procps-2.0.2-2 reports the wrong process start time. The time
appears to be half the time since the last boot. For instance,
I booted on 8/4 and on 8/11 logged in and did a 'ps aux' which
reported that my login shell was started on 8/7. I rebooted at
14:08, logged in again at 16:59, did a 'ps aux' which reported
that my login shell was started at 15:33! I'm using kernel
2.2.5-22smp on a dual processor 200MHz Pentium Pro.
Red Hat support couldn't seem to care less.
--
Forte International, P.O. Box 1412, Ridgecrest, CA 93556-1412
Ronald Cole <[EMAIL PROTECTED]> Phone: (760) 499-9142
President, CEO Fax: (760) 499-9152
My PGP fingerprint: 15 6E C7 91 5F AF 17 C4 24 93 CB 6B EB 38 B5 E5
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Stupid question re: sound config
Date: 14 Aug 1999 14:22:30 -0700
Guilhem Tardy <[EMAIL PROTECTED]> writes:
> I would like to setup my AWE64, too.
> I use RH 6.0 upgraded with a stock kernel 2.2.11, sndconfig looks for a
> module soundcore.o, which is not installed (there's awe_wave.o, sb.o,
> sound.o and soundlow.o). Is it because I don't use the RH tree anymore?
> Should I put one of these modules in conf.modules with the appropriate
> settings and what is a typical /etc/sysconfig/sound file?
You probably hosed the kernel configuration. No doubt Red Hat will
release a 2.2.11 kernel now that Alan Cox owns the stable tree. In
the meantime, I'm using the stock 2.2.5-22 and typing "setup" and
selecting "sound card configuration" worked for me. Had to add
awemidi-0.4.3a and midiplg-0.4.1b2 to get Netscape to play midi files,
though.
--
Forte International, P.O. Box 1412, Ridgecrest, CA 93556-1412
Ronald Cole <[EMAIL PROTECTED]> Phone: (760) 499-9142
President, CEO Fax: (760) 499-9152
My PGP fingerprint: 15 6E C7 91 5F AF 17 C4 24 93 CB 6B EB 38 B5 E5
------------------------------
From: Mark Hahn <[EMAIL PROTECTED]>
Subject: Re: Seriel-programming
Date: 14 Aug 1999 22:12:28 GMT
> I am going to write som programs that communicates trough the seriel
> port.
man tcsetattr.
> Unfortunately I can't find any detaild and good-explaining documentation
> on the subject (I don't think the Seriel.HOWTO and
> Seriel-programming.HOWTO explains that part - it just showing examples).
jeez, just open the port, possibly configure it with termios.
that's all there is to it.
> I'm sure there exists some libraries of some kind. What are they called?
there's no need for libraries beyond the standard posix interface.
------------------------------
From: [EMAIL PROTECTED] (Sami Tikka)
Subject: Re: threads
Date: Sat, 14 Aug 1999 18:35:24 +0300
Reply-To: [EMAIL PROTECTED]
On Fri, 13 Aug 1999 11:58:57 -0600, Bill Burris <[EMAIL PROTECTED]> wrote:
>On Windows, muti-threading has become an important tool for me because of
>the real-time and I/O intensive nature of my applications.
Hmm... does a real-time and i/o-intensive application imply that it should
be built using threads? I don't follow.
Perhaps that is the case in Windows where, as I understand, co-operating
processes are very difficult to do.
--
Sami Tikka, [EMAIL PROTECTED], http://www.iki.fi/sti/
"One World, One Web, One Program" - Microsoft Promotional Ad
"Ein Volk, Ein Reich, Ein Fuhrer" - Adolf Hitler
------------------------------
From: [EMAIL PROTECTED] (David T. Blake)
Subject: Re: Stupid question re: sound config
Date: 14 Aug 1999 22:32:41 GMT
Reply-To: [EMAIL PROTECTED]
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Guilhem Tardy <[EMAIL PROTECTED]> writes:
> > I would like to setup my AWE64, too.
> > I use RH 6.0 upgraded with a stock kernel 2.2.11, sndconfig looks for a
> > module soundcore.o, which is not installed (there's awe_wave.o, sb.o,
> > sound.o and soundlow.o). Is it because I don't use the RH tree anymore?
> > Should I put one of these modules in conf.modules with the appropriate
> > settings and what is a typical /etc/sysconfig/sound file?
>
> You probably hosed the kernel configuration. No doubt Red Hat will
> release a 2.2.11 kernel now that Alan Cox owns the stable tree.
Alan effectively controlled the stable tree for some time.
A major problem that has these symptoms is people answering
"Y" to sound support in 2.2.* kernels instead of "M"
The easiest solution is a kernel rebuild. For sound,
select M for sound support, M for OSS modules, and M for
just about everything else, and then let sndconfig do the
rest after a make dep; make clean ; make bzImage ; make modules
rename the directory that holds your modules, and run
make modules_install
Install the new kernel, run lilo, reboot. Run sndconfig.
Also, check /usr/src/linux/Documentation/sound/
--
Dave Blake
[EMAIL PROTECTED]
------------------------------
From: Robin Becker <[EMAIL PROTECTED]>
Subject: Re: reading kernel symbols
Date: Sat, 14 Aug 1999 19:01:02 +0100
In article <[EMAIL PROTECTED]>, Kaz Kylheku
<[EMAIL PROTECTED]> writes
>On Sat, 14 Aug 1999 17:11:04 +0100, Robin Becker <[EMAIL PROTECTED]>
>wrote:
>>Can any one explain how RH 6.0 + lilo manages to read it's kernel
>>symbols from the boot volume /boot at a time before /boot is mounted?
>>The read takes place as klogd starts up.
>
>The kernel knows its own symbols. See /proc/ksyms
so what is all the stuff about Loaded xxxx symbols from
/boot/System.map-vvvv which appears in my boot messages. Don't these
come from klogd?
--
Robin Becker
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************