Linux-Development-Sys Digest #227, Volume #8     Fri, 20 Oct 00 11:13:10 EDT

Contents:
  Re: C++ compiler tools (Aaron C Coday)
  PDA using Linux? ("Mick")
  Re: !!!URGENT !!!  Printer driver (Toby Haynes)
  How to control ide bus with linux? ("NTUST News")
  Re: C++ compiler tools (Philip Armstrong)
  kgcc/Redhat7.0 - unresolved symbol (Sean Bose)
  lilo and minimize linux ("Hung P. Tran")
  Re: broadcast of ifconfig on Linux (patrick Lottier)
  Re: What is Linux equivalent of Mac Toolbox? (Christopher Browne)
  bind the same address/port pair 2 times in linux ("Miles.Hu")
  Building a Driver ("Programmer")
  making a boot disk (Dave)
  Re: Building a Driver ("Quiney, Philip [HAL02:HH00:EXCH]")
  rebooting linux without physikal reset (Daniel Goergen)
  Need infos on Journaling Filesystem (David Vidal =?iso-8859-1?Q?Rodr=EDguez?=)
  Re: Building a Driver ([EMAIL PROTECTED])
  Re: possible tcpd bug (Chris J/#6)
  /proc i need help ("Keith")
  Re: rebooting linux without physikal reset (Mike McDonald)
  Re: rebooting linux without physikal reset (Karl-Heinz Herrmann)
  RE: mounted dos partition ("Raymond Mroz")

----------------------------------------------------------------------------

From: Aaron C Coday <[EMAIL PROTECTED]>
Crossposted-To: 
alt.linux,alt.linux.redhat,alt.os.linux,alt.os.linux.redhat,comp.linux,comp.linux.os,comp.os.linux.development,linux.redhat,linux.redhat.devel,linux.redhat.development
Subject: Re: C++ compiler tools
Date: Thu, 19 Oct 2000 09:22:54 -0700

David Steinhoff wrote:

> We are beginning to port our C++ applications from NT to Linux (Redhat) and
> are looking for opinions/recommendations for compilers.  One important
> consideration is that the compiler must be close to the C++ standard in its
> language support.  Our products use the STL heavily, so the implementation
> it works with must be supported and robust.  We have a lot of code and would
> like to find a fast compiler that comes with a good debugger and generates
> fast code.  Lastly, some of our 3rd party code does not support gcc, so it
> is not an option for us.
>
> Thanks,
> Dave
>
> =================================================
> David Steinhoff
> Vice President, Software Development
> Clareos, Inc.
> 209 S. Ashley St.
> Ann Arbor, MI 48104
> [EMAIL PROTECTED]
> O: (734)827-1254
> CP: (734)649-1304

You might want to check out KAI 's compiler.  There compiler has always been
extremely close to the standard and they're multi-platform.

Aaron

=========
My views are my own.....


------------------------------

From: "Mick" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: PDA using Linux?
Date: Fri, 20 Oct 2000 01:35:20 -0700

New PDA using Linux open source!!
Has anyone touched one yet?

http://www.agendacomputing.com/



------------------------------

From: Toby Haynes <[EMAIL PROTECTED]>
Subject: Re: !!!URGENT !!!  Printer driver
Date: 19 Oct 2000 13:45:04 -0400

!! "Johan" == Johan Leroy <[EMAIL PROTECTED]> writes:

  Johan> Hi there, I want to optimize the linux printer driver (HP1120C) but
  Johan> I'cant find the source code. I'm running RH7.0 and to print a simple
  Johan> text file it takes to much time.

Depends on which driver you are using. For printing info for linux, visit

http://www.linuxprinting.org/

For the HP Deskjet 1120C, you can either use the cdj850 driver or the
gnome-print stp driver which should give (eventually) better results. 

http://www.linuxprinting.org/database.html

has the details on all the printers.

Cheers,
Toby Haynes

-- 

Toby Haynes
The views and opinions expressed in this message are my own, and do
not necessarily reflect those of IBM Canada.

------------------------------

From: "NTUST News" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.development.apps,comp.os.linux.hardware,comp.os.linux.misc,comp.os.linux.networking,tw.bbs.comp.linux
Subject: How to control ide bus with linux?
Date: Fri, 20 Oct 2000 02:10:36 +0800

hello all

    I wanna control one chip  with linux.
    This chip supports 8 bit IDE bus
    So....If I wanna program in linux.
    How can I do that?
    Please give me some solutions .....thanks....





------------------------------

From: [EMAIL PROTECTED] (Philip Armstrong)
Crossposted-To: 
alt.linux,alt.linux.redhat,alt.os.linux,alt.os.linux.redhat,comp.linux,comp.linux.os,comp.os.linux.development,linux.redhat,linux.redhat.devel,linux.redhat.development
Subject: Re: C++ compiler tools
Date: 19 Oct 2000 23:01:45 +0100

In article <z%CH5.857$[EMAIL PROTECTED]>,
David Steinhoff <[EMAIL PROTECTED]> wrote:
>We are beginning to port our C++ applications from NT to Linux (Redhat) and
>are looking for opinions/recommendations for compilers.  One important
>consideration is that the compiler must be close to the C++ standard in its
>language support.  Our products use the STL heavily, so the implementation
>it works with must be supported and robust.  We have a lot of code and would
>like to find a fast compiler that comes with a good debugger and generates
>fast code.  Lastly, some of our 3rd party code does not support gcc, so it
>is not an option for us.

gcc follows the standard as closely as possible (if it doesn't, then
its a bug and you should report it to the gcc developers) in -ansi
mode. I presume your third party code is sufficiently non-ansi that
gcc refuses to compile it? 

I detect a slight dissonance here with your otherwise commendable
standards :) But if you have to use some non-compliant 3rd party code
then that's the way it is...

Its possible that your third party code is using features missing from
the stl which ships with gcc. If so, note that a more recent port of
the stl is slightly more fully featured. Check http://www.boost.org/
for some details.

Phil
-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt


------------------------------

From: Sean Bose <[EMAIL PROTECTED]>
Subject: kgcc/Redhat7.0 - unresolved symbol
Date: Thu, 19 Oct 2000 15:31:27 -0700
Reply-To: [EMAIL PROTECTED]

Hi
I am facing this problem in Redhat 7.0 kernel 2.2.16

While trying to load a driver module, it complains 
of unresolved symbols for sprintf, memcpy and handle_sysrq. 
I have compiled this module using 'kgcc'.  On previous 
versions, using 'gcc' use to work fine.  Please help.

Sean

------------------------------

From: "Hung P. Tran" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: lilo and minimize linux
Date: Thu, 19 Oct 2000 22:35:54 GMT

I am trying to fit linux onto a 60 MB harddrive. Obviously, the
drive is too small for a standard linux installation.

My first question is how to install lilo on the drive and make it
boot linux. I tried to partition the drive using: fdisk /dev/hdc (the
drive is connected as secondary IDE master). I just assign
a single partition #1 (hdc1). Then I make the file system using mkfs, and
then mount the harddrive as /mnt/d. Then I copy a few file from
my original RedHat 6.1 over. Here is an output from  "ls -l /mnt/d"

total 927
-rw-r--r--   1 root     root         4568 Oct 17 14:33 boot.b
-rw-r--r--   1 root     root       285018 Oct 17 16:19 initrd.img
-rw-r--r--   1 root     root          250 Oct 17 17:17 lilo.conf
drwxr-xr-x   2 root     root        12288 Oct 17 14:30 lost+found
-rw-------   1 root     root        13312 Oct 17 16:21 map
-rw-r--r--   1 root     root       622784 Oct 17 16:18 vmlinuz

The new modified lilo.config is as followed:

boot=/dev/hdc
map=/mnt/d/map
install=/mnt/d/boot.b
prompt
timeout=50
default=linux

image=/mnt/d/vmlinuz
 label=linux
 initrd=/mnt/d/initrd.img
 read-only
 root=/dev/hdc1

I then run: /sbin/lilo -C /mnt/d/lilo.conf

I then reboot the system and configure the BIOS to boot from the
secondary master IDE (it can boot up fine from a secondary master IDE
with DOS). However, I only get a bunch of 01 01 01 ... on the screen.

What did I do wrong ? What am I missing ?

I apologize for the long email. Any advice is appreciated.

Thank you in advance,

hung





------------------------------

From: patrick Lottier <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,fj.os.linux.networking
Subject: Re: broadcast of ifconfig on Linux
Date: Mon, 16 Oct 2000 11:09:32 +0200

You're on a class B network, so the default netmask is 255.255.0.0, and it's
logical: the default broadcast is based on the default netmask.
So, you *must* manually set broadcast if you want to use a sub-net.

patrick Lottier
System Administrator
[EMAIL PROTECTED]
http://www.qc-ns.com

Bin Zhou wrote:

> hello there,
>
> Im using Debian GUN/Linux 2.2--with 2.2.16 kernel. It seems to me that, the
> /sbin/ifconfig command(version 1.39) performs strange. If I set all IP,MASK
> and
> broadcast values, everything go OK, but if I only set IP and MASK, not set
> the
> broadcast, the default broadcast is determinded by the class of the IP,
> not the correct value(IP | ^MASK). ex. the broadcast of
> 172.31.0.1/255.255.255.0
> is set to 172.31.255.255, not the 172.31.0.255. Is this the specification or
> a bug?
>
> thank you
>
> [EMAIL PROTECTED]


------------------------------

From: [EMAIL PROTECTED] (Christopher Browne)
Crossposted-To: comp.os.linux.x,comp.os.linux.development.apps
Subject: Re: What is Linux equivalent of Mac Toolbox?
Reply-To: [EMAIL PROTECTED]
Date: Fri, 20 Oct 2000 01:21:11 GMT

In our last episode (Tue, 17 Oct 2000 19:20:50 GMT),
the artist formerly known as Thatcher Ulrich said:
>John Hasler <[EMAIL PROTECTED]> wrote:
>
>> I don't know what "bluster" you are referring to, but if
>> "pragmatic" means "I want to use Qt in a closed source project", I
>> don't see why you shouldn't have to pay Troll.
>
>Stop!  Pay Troll.

I should observe, as the one that initially suggested "bluster," that
the disputing over Qt/KDE has historically included a sizable
population of people that _don't program_ that, for whatever reason,
decided that they felt GNOME was Their One True Answer, and that used
the licensing of Qt as an _excuse_ for "blustering" about it.

There were also people [particularly associated with Debian] that were
_concerned_ about the licensing of KDE and Qt, concerned that the GPL
was not compatible with the TrollTech license.

There is a distinct difference between these two groups; the latter
have been happy enough to let KDE enter the "blessing" of Debian once
their perceived licensing issue was sorted out.  

In contrast, those that were "blustering against KDE" were _really_
holding to a dogmatic position that "Qt/KDE are Bad," and that dogma
doesn't change just because of a license change.

That may not clear things up, but it's worth a try...
-- 
(concatenate 'string "cbbrowne" "@" "ntlug.org")
<http://www.ntlug.org/~cbbrowne/xdesktop.html>
"Well, it's assembly language, you know.  You don't want to have too much
taste..."  -- Dave Moon

------------------------------

From: "Miles.Hu" <[EMAIL PROTECTED]>
Subject: bind the same address/port pair 2 times in linux
Date: Fri, 20 Oct 2000 02:14:04 GMT

Hello,

I want to bind the same address/port pair 2 times for diffrent sockets, and
found that there is not SO_REUSEPORT option in setsockopt(), so I used
SO_REUSEADDR, but system told me "Address already in use", how can I do for
this problem? Linux does not support reusing the same address/port bind?

Thanks a lot!



------------------------------

From: "Programmer" <[EMAIL PROTECTED]>
Subject: Building a Driver
Date: Thu, 19 Oct 2000 20:51:52 -0500

Howdy,
    This is my first time developing in Linux; I used to develop for Windows
(so I've made an improvment :-).  Does anyone know where to find
documentation to help me develop drivers in Linux?  I've already visted
linuxdoc.org and I didn't find very useful information.  I'd appreciate any
help.  Thanks.



------------------------------

From: Dave <[EMAIL PROTECTED]>
Subject: making a boot disk
Date: Fri, 20 Oct 2000 05:30:07 -0000

 I am trying to make a boot disk from a 2.2.16 kernel I obtained from 
www.kernel.org. I follow their directions exactly and everything compiles, 
no errors. I am using the command "make bzdisk" to compile the final 
kernel. Every time I try and boot from the floppy I get a kernel panic.

     VFS:Cannot open root device 00:11
     Kernel panic: VFS:Unable to mount root fs on 00:11

 This apparently means that it cannot find my file system. I want it to 
use my hard drive's filesystem, rather than create one on a floppy. I've 
tried using the "rdev" command to fix this but I get the same error. The 
hard drives are both scsi, hdb1 and hda. Right now the system is running 
RedHat 6.2. (In case anyone is wondering, I need 2.2.16 to compile some 
modules for my LRP box which runs 2.2.16. RedHat's RPM kernel of 2.2.16-3 
will not work.) I've read through the documentation HOW-TO on creating a 
boot disk, but some of it is still foreign to me. Any help on how to fix 
this would be greatly appreciated

--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: "Quiney, Philip [HAL02:HH00:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: Building a Driver
Date: Fri, 20 Oct 2000 09:08:13 +0100

Programmer wrote:
> 
> Howdy,
>     This is my first time developing in Linux; I used to develop for Windows
> (so I've made an improvment :-).  Does anyone know where to find
> documentation to help me develop drivers in Linux?  I've already visted
> linuxdoc.org and I didn't find very useful information.  I'd appreciate any
> help.  Thanks.
Hi,

A good starting point would be to get hold of a copy of "Linux Device
Drivers" by Allessandro Rubini (ISBN 1-56592-292-1) at a bookshop near
you.

Failing that have a look at the source code for say one of Don Becker's
ethernet drivers in /usr/src/linux/drivers/net.

Another useful repository of information is the Linux cross-reference
site (http://lxr.linux.no/). With this you can piece together what calls
what and find macro/function definitions etc.

Here is a simple 'hello world' for a module...

#define MODULE
#include <linux/module.h>
 
int init_module(void)
{
    printk("Hello World from modulespace\n");
    return(0);
}
 
void cleanup_module(void)
{
    printk("<1>Goodbye....\n");
}

Compile with:
 gcc -c -o hello_mod.o hello_mod.c

Then (as root) install it with:

insmod hello_mod.o

Check it is there with

lsmod

& remove it with 
rmmod hello_mod

Note: the printk statements will appear on the root console so if
running from an X term (or other such terminal from X) you won't see any
output but you should see them in the system log file
(/var/log/messages).

HTH

Regards

Phil Q

-- 

Phil Quiney                             CSIP Demonstrator
[EMAIL PROTECTED]              Nortel Networks,
Telephone: +44 (0)1279 402363           London Rd, Harlow,
Fax:       +44 (0)1279 402885           Essex CM17 9NA,
                                        United Kingdom.

"This message may contain information proprietary to Northern 
Telecom so any unauthorised disclosure, copying or distribution
of its contents is strictly prohibited."

------------------------------

From: Daniel Goergen <[EMAIL PROTECTED]>
Subject: rebooting linux without physikal reset
Date: Fri, 20 Oct 2000 10:32:28 +0200
Reply-To: [EMAIL PROTECTED]

Is it possible to reboot linux without letting the computer make a
physical reset?
(I have to store data in RAM (we have no FS) before und read it after
the reboot)

------------------------------

From: David Vidal =?iso-8859-1?Q?Rodr=EDguez?= <[EMAIL PROTECTED]>
Subject: Need infos on Journaling Filesystem
Date: Fri, 20 Oct 2000 11:15:36 +0200

Hi! I am looking for technical information on the journaling filesystem,
which is actually being implemented in the ext2 fs. Do you have any
addresses / contact persons / white papers that could interest me?


Thanks in advance,
 
========================================================================
 David Vidal R. ([EMAIL PROTECTED])

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: Building a Driver
Date: 20 Oct 2000 09:31:06 GMT

This is a multipart message in MIME format.
--=_alternative 003443AE8025697E_=
Content-Type: text/plain; charset="us-ascii"

I know you said that you've already been there but there is a document at

http://www.linuxdoc.org/guides.html

entitled "The Linux Programmers Guide" - just in case you missed that one. 
 Don't know what it's like though!
--=_alternative 003443AE8025697E_=
Content-Type: text/html; charset="us-ascii"


<br><font size=1 face="sans-serif">I know you said that you've already been there but 
there is a document at</font>
<br>
<br><font size=1 face="sans-serif">http://www.linuxdoc.org/guides.html</font>
<br>
<br><font size=1 face="sans-serif">entitled &quot;The Linux Programmers Guide&quot; - 
just in case you missed that one. &nbsp;Don't know what it's like though!</font>
--=_alternative 003443AE8025697E_=--

------------------------------

From: [EMAIL PROTECTED] (Chris J/#6)
Subject: Re: possible tcpd bug
Reply-To: [EMAIL PROTECTED]
Date: 20 Oct 2000 10:57:17 +0100

Matthew Patterson  <[EMAIL PROTECTED]> wrote:
>
>There seems to be some confusion, mostly because of my error. the hosts.allow
>shows:
>in.telnetd:127.
>in.telnetd:192.168.0.
>
>and hosts.deny is:
>ALL:ALL
>
>my concern is because i was making the telnet connection from an address within
>192.168.0. Again, the IP's have been changed to protect my company. 
>
>Sorry for the lack of full information.
>
>MHP

Try this instead...in hosts.allow put:
        in.telnetd: 127.0.0.0: ALLOW
        in.telnetd: 192.168.0.0: ALLOW
        ALL: ALL: DENY

Then delete hosts.deny. The read the man page hosts_options(5), which defines
a number of extensions to the ACL, like the ALLOW and DENY keywwords, and
essentially does away with hosts.deny. This is how my system is setup, using
just hosts.allow, and it makes things much easier to manage.

Note that in hosts.allow I've given the full network address (ie, all four
octets). This may also have been a problem, but its what I do here and it
works :) 

Chris...

-- 
Chris Johnson            \  "If not for me then, do it for yourself. If not
[EMAIL PROTECTED]        \  for then do it for the world." -- Stevie Nicks
www.nccnet.co.uk/~sixie/   ~---------------------------------------+
Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000   \______

------------------------------

From: "Keith" <[EMAIL PROTECTED]>
Subject: /proc i need help
Date: Fri, 20 Oct 2000 10:38:29 -0400

I am trying to register data with the /proc filesystem. The code I'm using
is the below:

The problems are being caused by the proc_register(&proc_root,
&Our_Proc_File) line.

The error I get is this:  proc_entry_R02343 undefined

If anyone has experience registering to the proc system, please HELPPPPP.


#include <linux/kernel.h>   /* We're doing kernel work */
#include <linux/module.h>   /* Specifically, a module */

/* Deal with CONFIG_MODVERSIONS */
#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif

#include <linux/proc_fs.h>

#ifndef KERNEL_VERSION
#define KERNEL_VERSION(a,b,c) ((a)*65536+(b)*256+(c))
#endif

int procfile_read(char *buffer,
    char **buffer_location,
    off_t offset,
    int buffer_length,
    int zero)
{
  int len;  /* The number of bytes actually used */
  static char my_buffer[80];

  static int count = 1;

  if (offset > 0)
    return 0;

  len = sprintf(my_buffer,
    "For the %d%s time, go away!\n", count,
    (count % 100 > 10 && count % 100 < 14) ? "th" :
      (count % 10 == 1) ? "st" :
        (count % 10 == 2) ? "nd" :
          (count % 10 == 3) ? "rd" : "th" );
  count++;

  *buffer_location = my_buffer;

  return len;
}


struct proc_dir_entry Our_Proc_File =
  {
    0, /* Inode number - ignore, it will be filled by
        * proc_register[_dynamic] */
    4, /* Length of the file name */
    "test", /* The file name */
    S_IFREG | S_IRUGO, /* File mode - this is a regular
                        * file which can be read by its
                        * owner, its group, and everybody
                        * else */
    1, /* Number of links (directories where the
         * file is referenced) */
    0, 0,  /* The uid and gid for the file - we give it
            * to root */
    80, /* The size of the file reported by ls. */
    NULL, /* functions which can be done on the inode
           * (linking, removing, etc.) - we don't
           * support any. */
    procfile_read, /* The read function for this file,
                    * the function called when somebody
                    * tries to read something from it. */
    NULL /* We could have here a function to fill the
          * file's inode, to enable us to play with
          * permissions, ownership, etc. */
  };

/* Initialize the module - register the proc file */
int init_module()
{
  /* Success if proc_register[_dynamic] is a success,
   * failure otherwise. */
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,2,0)
  /* In version 2.2, proc_register assign a dynamic
   * inode number automatically if it is zero in the
   * structure , so there's no more need for
   * proc_register_dynamic
   */
  return proc_register(&proc_root, &Our_Proc_File);
#else
  return proc_register_dynamic(&proc_root, &Our_Proc_File);
#endif

  /* proc_root is the root directory for the proc
   * fs (/proc). This is where we want our file to be
   * located.
   */
}

/* Cleanup - unregister our file from /proc */
void cleanup_module()
{
  proc_unregister(&proc_root, Our_Proc_File.low_ino);
}




------------------------------

Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Mike McDonald)
Subject: Re: rebooting linux without physikal reset
Date: Fri, 20 Oct 2000 14:46:57 GMT

In article <[EMAIL PROTECTED]>,
        Daniel Goergen <[EMAIL PROTECTED]> writes:
> Is it possible to reboot linux without letting the computer make a
> physical reset?
> (I have to store data in RAM (we have no FS) before und read it after
> the reboot)

  You might want to look at two kernel monty at scyld.com.

  Mike McDonald
  [EMAIL PROTECTED]

------------------------------

From: Karl-Heinz Herrmann <[EMAIL PROTECTED]>
Subject: Re: rebooting linux without physikal reset
Date: 20 Oct 2000 16:43:00 +0200

Daniel Goergen <[EMAIL PROTECTED]> writes:
> Is it possible to reboot linux without letting the computer make a
> physical reset?  (I have to store data in RAM (we have no FS) before
> und read it after the reboot)

Since the only 'reboot' (i.e. "shutdown -r now") I know in linux will
start with the boot message of the Graphics card followed by counting
and testing the RAM this is probably not what you want. 

And I see no way of doing a real reboot and keeping RAM untouched (How
would you know where you put your data?)

But do you really need a reboot? What would the reboot be for? Maybe a
switching down to single user mode and back up and restarting all
demons and services is enough?

K.-H.


-- 
=================================== 
Karl-Heinz Herrmann 
E-Mail: [EMAIL PROTECTED]
===================================

------------------------------

From: "Raymond Mroz" <[EMAIL PROTECTED]>
Subject: RE: mounted dos partition
Date: Fri, 20 Oct 2000 11:59:45 -0300

Hello,

We are running a Linux OS in a product and are required to access a FAT32
filesystem.  This is set up to mount in the fstab file.  My question is
this:  If the product is repeatedly and ungracefully shutdown, can the FAT32
filesystem which is being mounted (and ungracefully unmounted) become
corrupted over time.  Are there any other problems which may arise?

Thanks

Raymond Mroz



------------------------------


** 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
******************************

Reply via email to