Linux-Development-Sys Digest #121, Volume #8      Sun, 3 Sep 00 15:13:15 EDT

Contents:
  trivial module question... ("Joris Vankerschaver")
  Re: Threads on Linux ([EMAIL PROTECTED])
  Re: PHP installation problems ([EMAIL PROTECTED])
  Re: PHP installation problems ([EMAIL PROTECTED])
  automount problem on kernel 2.3.99-pre9 (Benny Li)
  Re: Alocate a memory location above 4G of memory (Karl Heyes)
  Re: Rc.d file -- HELP!!! (Frank Haverkamp)
  Re: How arp processed in a 2_ethernet_card machine ? ([EMAIL PROTECTED])
  Re: Linux, XML, and assalting Windows ([EMAIL PROTECTED])
  Re: New nVidia drivers on 2.4 kernel (herman dumont)
  using the /proc interface ([EMAIL PROTECTED])
  help: type devpts not supported (dan)
  kernel 2.4.0-test7 modules loading problem (root)
  Re: kernel 2.4.0-test7 modules loading problem (Robert Lynch)

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

From: "Joris Vankerschaver" <[EMAIL PROTECTED]>
Subject: trivial module question...
Date: Sat, 02 Sep 2000 22:21:04 +0000

Hello, 

I understand (allmost) everything from the "linux module programming guide",
but I can't compile all but the most simple modules.  Here's a sample of what
doesn't work:


#include <linux/kernel.h>
#include <linux/module.h>

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

#include <linux/proc_fs.h>              /* Causes the problem */

int init_module() { return 0; }
void cleanup_module() {}



I compile with the following flags (gcc 2.7.2.3, as suggested): -0 
-D__KERNEL -DMODULE -DLINUX

The linux/proc_fs.h messes everything up: i get tons of errors (really!) on 
ridiculous errors like "parse error before clock_t in 
/usr/include/linux/time.h".  When I go and look at those supposed errors, 
I can't find any...  (btw the problem occurs with other headers too....)

I'm using kernel 2.4.0test4 (When using 2.2.16 I just got some warnings with
-Wall turned on, but the compiling worked.  I only couldn't insert the 
module.)

Is this a) a kernel problem (not very likely), b) a gcc problem (not very 
likely), c) my own fault (very likely)?

Any help - or guidance would be appreciated a lot! 
thanks.


Joris Vankerschaver

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

From: [EMAIL PROTECTED]
Subject: Re: Threads on Linux
Date: Sat, 02 Sep 2000 23:08:25 GMT

Tom Anderson <[EMAIL PROTECTED]> wrote:

> Anyone able to recommend a good book/web page/??? that has a lot of good
> low level information about programming with threads on Linux?  I am
> trying to port some software to Linux, but the fact that each
> "thread" has it's own PID is causing me no end of trouble.  Any
> chance the library will be re-worked to eliminate this "feature"?

There's alot of "lively" discussion of this issue, but the bottom line
is don't hold your breath. Right now, I'm looking at a tentative plan
to make a go at it in 2.5. I want to wait until 2.4 is stable and out
for a bit to avoid dumping too much on people's plates though.

> My other alternative appears to be to throw out my existing pthreads
> based code and write a special Linux one-off that uses "clone()"
> directly, setting the flags so that the "children" retain the PID of
> the parent to try and get it to behave like every other threads
> implementation.  Anyone played around with this and have some
> success/horror stories they are willing to share?

You can give that up too. CLONE_PID isn't usable from user space. For
right now, your best bet is to replace Linux with FreeBSD.

-- 
Matt Gauthier <[EMAIL PROTECTED]>

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

From: [EMAIL PROTECTED]
Crossposted-To: 
comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.help
Subject: Re: PHP installation problems
Date: Sat, 02 Sep 2000 23:43:18 GMT

In order to add any dso modules to php, you have to have the apxs rpm
installed.  During your installation of Redhat you must not have
choosen this option. I think that you can recover by downloading the
rpm and starting the process all over again.  it is probably named
apxs /apache or some derivation of those words(it may even be on your
cd).

Hope this helps.
Rodney

In article <8olf2l$a4n$[EMAIL PROTECTED]>,
  "Nils M. Lunde" <[EMAIL PROTECTED]> wrote:
> I'm trying to install PHP4 on a computer running RedHat Linux 6.0,
Apache
> 1.3.12 and the latest version of MySQL. I'm using mod_so to "compile"
the
> PHP module into Apache.
> The problem arises after I've ran the "./configure --with-mysql --
with-apxs"
> command and then "make".
> When I try to run "make install" I get the following message:
>
> "apxs -i -a -n php4 libs/libphp4.so
>  cp libs/libphp4.so /usr/lib/apache/libphp4.so
>  cp: libs/libphp4.so: No such file or directory
>  apxs:Break: Command failed with rc=65536"
>
> Anyone who knows what this means?
> Isn't the apxs command supposed to make the libphp.so-file?
>
> Nils Magne Lunde
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: [EMAIL PROTECTED]
Crossposted-To: 
comp.os.linux.development,comp.os.linux.development.apps,comp.os.linux.help
Subject: Re: PHP installation problems
Date: Sat, 02 Sep 2000 23:47:30 GMT

In order to add any dso modules to php, you have to have the apxs rpm
installed.  During your installation of Redhat you must not have
choosen this option. I think that you can recover by downloading the
rpm and starting the process all over again.  it is probably named
apxs /apache or some derivation of those words(it may even be on your
cd).

Hope this helps.
Rodney

In article <8olf2l$a4n$[EMAIL PROTECTED]>,
  "Nils M. Lunde" <[EMAIL PROTECTED]> wrote:
> I'm trying to install PHP4 on a computer running RedHat Linux 6.0,
Apache
> 1.3.12 and the latest version of MySQL. I'm using mod_so to "compile"
the
> PHP module into Apache.
> The problem arises after I've ran the "./configure --with-mysql --
with-apxs"
> command and then "make".
> When I try to run "make install" I get the following message:
>
> "apxs -i -a -n php4 libs/libphp4.so
>  cp libs/libphp4.so /usr/lib/apache/libphp4.so
>  cp: libs/libphp4.so: No such file or directory
>  apxs:Break: Command failed with rc=65536"
>
> Anyone who knows what this means?
> Isn't the apxs command supposed to make the libphp.so-file?
>
> Nils Magne Lunde
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: Benny Li <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: automount problem on kernel 2.3.99-pre9
Date: Sun, 03 Sep 2000 00:47:36 GMT

hi,

    I just built this kernel on RH6.1
    Everything was fine until i did "shutdown -r now"................

    The system hung at the point where it said it cannot unmount /proc
because automount is not present.

    Then, I rebuild the kernel with automount enabled, now it cannot
recognize partitions /dev/hda5, 6, 7, 8, 9

    can somebody suggest why?


thanks
ben


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

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: Alocate a memory location above 4G of memory
Date: Sun, 03 Sep 2000 05:08:35 +0000

In article <[EMAIL PROTECTED]>, David Wu <[EMAIL PROTECTED]> wrote:
> In linux 2.4, ( since it supports up to 64G of memory) is it possible is
> specify a physical address of greater than 4G bytes in mmap's address parm. ?
> My basic problem is that I need to address a specific memory location which
> is  above the 4G bytes.  If mmap cannot do it , can I write a device driver
> to do the allocation for the application.  ( I'm thinking about the Intel's
> PSE36 driver in Window NT which allows an user to address memory above 4G)
> 


the mmap interface is 32 bit.  you would have to use mmap64 to address bigger
areas of memory. try and avoid going back to the segmented model.


karl




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

From: Frank Haverkamp <[EMAIL PROTECTED]>
Subject: Re: Rc.d file -- HELP!!!
Date: Mon, 28 Aug 2000 19:44:17 +0200

Hi,

documentation of code is nice, but too much is not good. It can
confuse sometimes. Make shure that your file is executable
(chmod a+x filename). Invoking the perl interpreter should
happen in the first line and not in the second.
Otherwise your code is treated like a shell scipt. It would be a
good idea to test your code before you put it in the rc.d startup
scripts. I doubt that you can execute it on the command line
with ./filename?

Try:

#!/usr/bin/perl
...

Hope that helps,

Frank

> #######################
> #!/usr/bin/perl
>
> print STDOUT "\n Enter username:  ";
> $username = <STDIN>;
> chop $username;
>
> print STDOUT "\n Enter password:  ";
> $password = <STDIN>;
> chop $password;


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

From: [EMAIL PROTECTED]
Subject: Re: How arp processed in a 2_ethernet_card machine ?
Date: Sun, 03 Sep 2000 09:06:59 GMT

On Fri, 01 Sep 2000 09:27:49 +0800 wolf <[EMAIL PROTECTED]> wrote:

| I get two ethernet card (in the same subnet, eth0 with .14, eth1 with
| .55) in my machine (host A) and have a test:
|
| I ping  host A (.14 or .55) from another host (host B), at the same time
| try to capture the arp packets using "tcpdump  arp".
|
| From the output of the tcpdump, two arp packets (containing the MACs of
| eth0 and eth1) from host A arrives at  host B almost at the same time,
| eth1's arrives a little time latter. Then, check the arp table of host B
| using "arp -a", the hardware address of eth0's is stored. It seems that
| the latter arrived arp packet is rejected.
|
| Why ?

The latter arp is rejected because at that point the original pending arp
request has been resolved and an entry exists in the arp table.

Two are probably being sent because proxy arp is enabled.

-- 
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil  (at)  ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux,comp.text.xml,comp.os.linux.misc
Subject: Re: Linux, XML, and assalting Windows
Date: Sun, 03 Sep 2000 09:12:59 GMT

In comp.os.linux.development.system Christopher Browne <[EMAIL PROTECTED]> wrote:

| XML buys you the ability to get a "cheap parser."  

"Cheap" seems to be the operative rule, at least in the C language.

-- 
| Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
| phil  (at)  ipal.net +----------------------------------------------------
| Dallas - Texas - USA | [EMAIL PROTECTED]

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

From: herman dumont <[EMAIL PROTECTED]>
Subject: Re: New nVidia drivers on 2.4 kernel
Date: Sun, 03 Sep 2000 11:19:43 +0200

[EMAIL PROTECTED] wrote:
> 
>   Anybody managed to get these working yet? Looks
> like some of the paging calls need to be changed.
> 
>   Just thought I would see if anyone else has done
> it before I give it a shot.
Hi,
i got a patch from:
[EMAIL PROTECTED]



HTH

-- 
web.wanadoo.be/herman.dumont
Linux herman 2.4.0-test7 #2 Fri Sep 1 
gcc version egcs-2.91.66 
libc.so.6

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

From: [EMAIL PROTECTED]
Subject: using the /proc interface
Date: Sun, 03 Sep 2000 13:55:08 GMT

I'm looking for help on how to implement a two way interface for
configuring/querying a kernel module threw the /proc filesystem. where can I
find the relevant documentation. thanks Eran <[EMAIL PROTECTED]>


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: dan <[EMAIL PROTECTED]>
Subject: help: type devpts not supported
Date: Mon, 04 Sep 2000 01:05:06 +1000

Hi,

    when compiling my kernel (2.2.12) I set all the options using one of
the config programs (xconfig) compile it, and
copy it to /boot directory... I add a new entry in the lilo.conf file to
run this kernel.

When the kernel starts I get this error message:

    mounting filesystem - type devpts not supported.

This doesn't seem to cause any trouble, everything runs fine.. I'd just
like to know what it is and what config option changes it.
thanks

dan.


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

From: root <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.seutp
Subject: kernel 2.4.0-test7 modules loading problem
Date: Sun, 03 Sep 2000 17:53:58 GMT

hi,

    I just built kernel 2.4.0-test7, but seems like it cannot load ANY
module
    modutils version is 2.3.9

    ie.    modprobe xxx  --returns--> can't locate module xxx

    /lib/modules/2.4.0-test7 is there....
    but the modules.dep is of size 0(zero)

    Can somebody solve this?

thanks,
ben


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

From: Robert Lynch <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.seutp
Subject: Re: kernel 2.4.0-test7 modules loading problem
Date: Sun, 03 Sep 2000 11:33:03 -0700
Reply-To: [EMAIL PROTECTED]

root wrote:
> 
> hi,
> 
>     I just built kernel 2.4.0-test7, but seems like it cannot load ANY
> module
>     modutils version is 2.3.9
> 
>     ie.    modprobe xxx  --returns--> can't locate module xxx
> 
>     /lib/modules/2.4.0-test7 is there....
>     but the modules.dep is of size 0(zero)
> 
>     Can somebody solve this?
> 
> thanks,
> ben

Have you got the latest modutils?  The arrangement of the modules
directories has changed. I am running this kernel, and modules
work fine (mostly; I had to do something special for sound).
modutils I have is:

$ rpm -qv modutils
modutils-2.3.14-2

HTH, Bob L.
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]

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


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