Linux-Development-Sys Digest #35, Volume #8      Thu, 20 Jul 00 19:13:16 EDT

Contents:
  convert.c ("Jérôme Rigobert")
  Linking against libstdc++.so ("Timo Volkmer")
  Question about system() call malfunctioning (Was: Question: system() from C++ CGI to 
Perl with Kernel 2.2.16) (Lisa Wilcox)
  Re: Question about system() call malfunctioning (Was: Question: system() from C++ 
CGI to Perl with Kernel 2.2.16) (Lisa Wilcox)
  Re: Database Modeling Tools for Linux? (Thomas Gagne)
  CLONE_PID and -lpthread ([EMAIL PROTECTED])
  Re: Special disk format request. (David Wragg)
  COMPRESSED File System ("Ian Dichkovsky")
  Re: How to force a clean reboot from a module? ("Norm Dresner")
  Re: COMPRESSED File System (Kaz Kylheku)
  Re: new keyword export (Steve Preston)
  Re: COMPRESSED File System ("Norman Black")
  SCSI programming in Linux (David Man)
  Re: RS-232 port logger? (Tobias Anderberg)
  Mount of Zip doesn't work since linux-2.4.0-test2 (Otto Wyss)
  Re: Mount of Zip doesn't work since linux-2.4.0-test2 (David A Knight)
  bigphysarea problem ("K.V.Sukesh")
  Re: SCSI programming in Linux (Eric Smith)
  Re: How to force a clean reboot from a module? (Mario Klebsch)
  Re: Question about system() call malfunctioning (Was: Question: system() from C++ 
CGI to Perl with Kernel 2.2.16) (Mario Klebsch)
  Re: bigphysarea problem ("K.V.Sukesh")
  Re: Database Modeling Tools for Linux? ("Frank V. Castellucci")

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

From: "Jérôme Rigobert" <[EMAIL PROTECTED]>
Subject: convert.c
Date: Thu, 20 Jul 2000 15:53:13 +0200


Hello !

I search the convert.c of LINUX
Thanx
--




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

From: "Timo Volkmer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,gnu.g++.help
Subject: Linking against libstdc++.so
Date: Thu, 20 Jul 2000 14:49:57 +0200

Hi everyone,

I am having a problem linking one of my programs against libstdc++.so

I am linking the program under SuSE-Linux 6.4 using gcc 2.95.2
The link to libstc++.so exists in /usr/lib/gcc-lib/i486-suse-linux/2.95.2
When I now link the program, the linker tells me the following:

/usr/i486-suse-linux/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -
.....
..... -L /usr/lib -L/usr/lib/gcc-lib/i486-suse-linux/2.95.2 .....
..... -Bdynamic -ldl -lnsl -lstdc++ .....

After linking the program I check what the linker did with "ldd programname"
and see:

        libclntsh.so.1.0 => /usr/oracle/V8.0.5.1/lib/libclntsh.so.1.0
(0x40015000)
        libdl.so.2 => /lib/libdl.so.2 (0x40395000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40399000)
        libstdc++-libc6.1-2.so.3 => /usr/lib/libstdc++-libc6.1-2.so.3
(0x403b0000)
        libm.so.6 => /lib/libm.so.6 (0x403f8000)
        libc.so.6 => /lib/libc.so.6 (0x40416000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

The problem here is, that the linker links directly against
"libstdc++-libc6.1-2.so.3"
Should not the linker link agains libstc++.so, so that the program can work
on a different system, too??
When I try to run the program on a SuSE-6.2 machine the loader can't find
the libstdc++-libc6.1-2.so.3
because it does not exist. But how can I achieve that the loader looks for
libstc++.so??

I set up LD_LIBRARY_PATH correctly with the path
/usr/lib/gcc-lib/i486-suse-linux/2.95.2 at first (where
the softlink libstc++.so exists). I also set up ld.so.conf in this way but
it still does not work?

Does anyone have a solution??

Thanks in advance

Timo.

mailto:[EMAIL PROTECTED]



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

From: Lisa Wilcox <[EMAIL PROTECTED]>
Subject: Question about system() call malfunctioning (Was: Question: system() from C++ 
CGI to Perl with Kernel 2.2.16)
Date: Thu, 20 Jul 2000 10:09:50 -0400

Hello all,

I've done some more testing (see MORE INFO Re: Question: system() from
C++ CGI to Perl with Kernel 2.2.1) and it seems like the syscall
(system()) from my C++ CGI to my Perl module is not working.  To sum up,
the C++ CGI is working as expected, but the output from the Perl module
called by system() is not presenting back to the user.  I'm getting a
large return value from the syscall (33,000+, depending on the query
appended to the string/command).  I suspect that the Perl script is
actually being run, because malfunctioning syscalls from that are
logging to /var/log/httpd/error_log.  I resolved those and they
disappeared from the logs.  However, no other messages are being logged.

My research into what this means leads me to conclude that the program
runs the syscall, but for whatever reason it returns an error.  Could
this be because the output is going somewhere other than STDOUT?

Using strace wasn't very useful to me because I can't run the C++ CGI
from the command line.  (It's programmed to parse only GET or POST
method requests.) I did use strace on the executable file without the
arguments just to see what I
would get, and found no differences between the version that works and
the one that does not.

Any ideas on where to go from here would be appreciated.

--
Lisa Wilcox
SAGE Systems Developer
SAGE Project:  http://sage.library.emory.edu/
Woodruff Library/Emory University
Email: [EMAIL PROTECTED]
Phone: 404-727-0961



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

From: Lisa Wilcox <[EMAIL PROTECTED]>
Subject: Re: Question about system() call malfunctioning (Was: Question: system() from 
C++ CGI to Perl with Kernel 2.2.16)
Date: Thu, 20 Jul 2000 10:50:31 -0400

Thanks.  We tried popen().  Interestingly, when run from a script at the command
line (not the same script, but something we threw together fast just to see if it
would work), it worked fine.  When run from the CGI, however, we could not
retrieve the output.

STARYNKEVITCH Basile wrote:

> I did not understand all the details of your problem. However I? might
> suggest using popen instead of system (and of course copying the
> output read by popen into your CGI output)
>
> N.B. Any opinions expressed here are only mine, and not of my organization.
> N.B. Les opinions exprimees ici me sont personnelles et n engagent pas le CEA.
>
> ---------------------------------------------------------------------
> Basile STARYNKEVITCH   ----  Commissariat à l Energie Atomique
> DTA/LETI/DEIN/SLA * CEA/Saclay b.528 (p111f) * 91191 GIF/YVETTE CEDEX * France
> phone: 1,69.08.60.55; fax: 1.69.08.83.95 home: 1,46.65.45.53
> email: Basile point Starynkevitch at cea point fr



--
Lisa Wilcox
SAGE Systems Developer
SAGE Project:  http://sage.library.emory.edu/
Woodruff Library/Emory University
Email: [EMAIL PROTECTED]
Phone: 404-727-0961



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

From: Thomas Gagne <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Database Modeling Tools for Linux?
Date: Thu, 20 Jul 2000 11:20:05 -0400
Reply-To: [EMAIL PROTECTED]

dia's great for drawing pictures, but I want the modeling tool to actually
allow me to type-in information about keys and attributes--and eventually
generate the SQL for building the database.  I guess I assumed people may have
been more familiar with erwin or erstudio.

--
For Open Source Middleware Visit http://home.netcom.com/~tgagne




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

From: [EMAIL PROTECTED]
Subject: CLONE_PID and -lpthread
Date: Thu, 20 Jul 2000 16:27:31 GMT

Does anyone know if shared ID's on Linux threads will ever be a
reality in the standard kernel and library? I know that the question
provokes alot of "colorful" conversations on the kernel list, but I
have yet to find a simple yes or no answer anywhere.

-- 
Matt Gauthier <[EMAIL PROTECTED]>

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

From: David Wragg <[EMAIL PROTECTED]>
Subject: Re: Special disk format request.
Date: 20 Jul 2000 17:22:32 +0000

Steve Martin <[EMAIL PROTECTED]> writes:
> I have a special need to read 2D 3.5" floppies that have been written in
> CP/M format.  The formatted space shows 780K of free space on the CP/M
> machine I'm using.  I have looked for apps that might be able to help me
> but I can only find them for MS-DOS.  I have also tried running these
> apps using VMWare loaded with DOS 5.0 with no success.  I don't get any
> error messages.  When I issue the command to read the disk, the DOS
> window just hangs and no "disk active" light appears.  When I boot to
> DOS though, the apps run just fine.

A google search on "CP/M file system" gave me
<http://www.moria.de/~michael/cpmtools/> on the second page.  Sounds
like what you are looking for.

> Would any of you fine folks be able to point me in the direction of a
> CP/M disk format spec?  Maybe someone knows the parameters I can use for
> some utility where I can at least read the data from the disk and then
> write some code to interpret the file structure.

The CP/M file system was very simple compared to any current file
system today.  But my google search didn't turn up a spec.  You can
however get the CP/M-80 assembly source at <http://cpm.interfun.net/>.

I think Al Viro said he was looking at writing a CP/M filesystem
driver for Linux at one point, but I guess he came to his senses.


David Wragg

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

From: "Ian Dichkovsky" <[EMAIL PROTECTED]>
Subject: COMPRESSED File System
Date: Thu, 20 Jul 2000 21:09:57 -0700
Reply-To: "Ian Dichkovsky" <[EMAIL PROTECTED]>

hi all!
Sorry for bad English

Is there possible to create a compressed file system ?

I mean it would look like Stacker, or DoubleSpace file.
And kernel driver make it look like mounted directory
Bye!




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

Reply-To: "Norm Dresner" <[EMAIL PROTECTED]>
From: "Norm Dresner" <[EMAIL PROTECTED]>
Subject: Re: How to force a clean reboot from a module?
Date: Thu, 20 Jul 2000 18:18:01 GMT

I didn't make clear the environment in the original posting, but this is my
personal development machine and the target computer is (effectively) an
embedded controller.  I "always" know what's running and what'll be "lost"
if the computer shuts down.

Also, I might not keep the shutdown-mechanism in the production-code, but I
really want it for my computer.

Scott J. Bertin <[EMAIL PROTECTED]> wrote in message
news:8l6i48$9j4$[EMAIL PROTECTED]...
> [Posted and mailed]
>
> In article <cZjd5.6922$[EMAIL PROTECTED]>,
> "Norm Dresner" <[EMAIL PROTECTED]> writes:
> > I'm in the middle of developing a device driver/module for a board and I
> > occasionally run into situations in which the driver knows that its data
> > structures are fouled up and (probably) can't be removed with rmmod -f.
> >
> > Is there some way for a driver to force a safe/clean reboot which
includes
> > the normal sync-mechanism and unmounting of file systems?
>
> Even if there is, I would strongly urge you not to do it.  You don't know
> what else might be running on the machine.  I'd hate for a week long
> simulation aborted 5 minutes before completion because your driver thought
> there was a problem.  Just log an error message and fail all accesses to
> the device after that point.
>
> Scott J. Bertin
> [EMAIL PROTECTED]


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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: COMPRESSED File System
Reply-To: [EMAIL PROTECTED]
Date: Thu, 20 Jul 2000 18:17:47 GMT

On Thu, 20 Jul 2000 21:09:57 -0700, Ian Dichkovsky <[EMAIL PROTECTED]> wrote:
>hi all!
>Sorry for bad English
>
>Is there possible to create a compressed file system ?
>I mean it would look like Stacker, or DoubleSpace file.

Get an 80GB hard drive, and you will soon forget all about 1980's MSDOS hacks.

-- 
Any hyperlinks appearing in this article were inserted by the unscrupulous
operators of a Usenet-to-web gateway, without obtaining the proper permission
of the author, who does not endorse any of the linked-to products or services.

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

From: Steve Preston <[EMAIL PROTECTED]>
Crossposted-To: gnu.g++.help,comp.lang.c++,de.comp.gnu,comp.os.linux.development.apps
Subject: Re: new keyword export
Date: 20 Jul 2000 15:28:43 -0400

Except, if the 'export' function is not inlined, but comes with the
third party libraries, then this will not work (there will be
"undefined reference" errors at link time for the symbol "MyExport").

"Marco Manfredini" <[EMAIL PROTECTED]> writes:

> Either:
> 
> add
> 
> #define export MyExport
> 
> as the very first line in your source files. Now every reference to a thing
> named "export" will be compiled as MyExport
> 
> Or:
> 
> compile like that: gcc -c -Dexport=MyExport some_file.cc
> 
> does the same
> 
> ----
> Marco
"Marco Manfredini" <[EMAIL PROTECTED]> writes:


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

From: "Norman Black" <[EMAIL PROTECTED]>
Subject: Re: COMPRESSED File System
Date: Thu, 20 Jul 2000 13:03:42 -0700
Reply-To: "Norman Black" <[EMAIL PROTECTED]>

> Get an 80GB hard drive, and you will soon forget all about 1980's MSDOS
hacks.

Compressing is not a hack and has nothing to do with MSDOS, it was in use
long before DOS in the mainframe and mini world. This is where Stacker came
from before they offered the DOS product.

Adding a big HD can possibly bring other issues. I have issues with a 3 year
old machine. The IDE controller was old enough that it could only access
8GB, so I bought an IDE controller, ATA-100 cards were all they had, and
disabled the MB controller and Linux cannot run. The card is backwards
compatible and other systems work, just not Linux (Mandrake 7.1, Kernel
2.2.15).

--
Norman Black
Stony Brook Software
the reply, fubar => ix.netcom

"Kaz Kylheku" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Thu, 20 Jul 2000 21:09:57 -0700, Ian Dichkovsky <[EMAIL PROTECTED]>
wrote:
> >hi all!
> >Sorry for bad English
> >
> >Is there possible to create a compressed file system ?
> >I mean it would look like Stacker, or DoubleSpace file.
>
> Get an 80GB hard drive, and you will soon forget all about 1980's MSDOS
hacks.
>
> --
> Any hyperlinks appearing in this article were inserted by the unscrupulous
> operators of a Usenet-to-web gateway, without obtaining the proper
permission
> of the author, who does not endorse any of the linked-to products or
services.



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

From: David Man <[EMAIL PROTECTED]>
Crossposted-To: comp.periphs.scsi
Subject: SCSI programming in Linux
Date: Thu, 20 Jul 2000 19:51:11 +0000

Hi, I have a SCSI programming question.  I'm trying to write a C program
to communicate with a SCSI device that is hooked up to a Linux box.
I've managed to configure all the hardware properly and the device
driver works.

I've consulted the Linux SCSI programming HOWTO which teaches how to use
the SCSI Generic (sg) interface.  Unfortunately, it covers only inquiry
and test_unit_ready commands.  I am more interested in more common
commands such as read and write.  Does anyone have any insight into the
field of linux SCSI programming.  If so, can you give me a few pointers
or provide some good books or resoureful URLs that I can take a look at.

Thanks in advance.

David M.


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

From: [EMAIL PROTECTED] (Tobias Anderberg)
Crossposted-To: 
linux.redhat.development,alt.os.linux,comp.os.linux.misc,comp.os.linux.development.apps
Subject: Re: RS-232 port logger?
Date: Thu, 20 Jul 2000 11:05:10 +0200

Micah Lax wrote:
>I need to log all incoming data from an RS-232 port on a linux machine
>to a disk file.
>
>Can anyone point me in the right direction?

cat /dev/ttyS0 > serial.log

Pretty simple and also pretty inefficient. But it should give you an
idea on what to do.

-- 
Tobias Anderberg                "I only speak for myself"
Axis Communications AB
www.axis.com

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

From: [EMAIL PROTECTED] (Otto Wyss)
Subject: Mount of Zip doesn't work since linux-2.4.0-test2
Date: Thu, 20 Jul 2000 22:46:09 +0200

I tried to upgrade from kernel-2.4.0-test1 to kernel-2.4.0-test2 and
than again to kernel-2.4.0-test4 but in neither could I mount my
SCSI-ZIP. I allways the the error message (translated from germen):

        mount: /dev/sda4 as a wrong major or minor device number

My Zip does work correctly in kernel-2.2.15 and kernel-2.4.0-test1. I
can't believe that the major/minor numbers have change in test2/test4.
It might be just a kernel config error but I can't figure it out. 

# SCSI support
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=m
CONFIG_SD_EXTRA_DEVS=40
CONFIG_BLK_DEV_SR=m
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_SR_EXTRA_DEVS=2
CONFIG_CHR_DEV_SG=m
CONFIG_SCSI_DEBUG_QUEUES=y
CONFIG_SCSI_MULTI_LUN=y

# SCSI low-level drivers
CONFIG_SCSI_AIC7XXX=m
CONFIG_AIC7XXX_TCQ_ON_BY_DEFAULT=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=8
CONFIG_AIC7XXX_PROC_STATS=y
CONFIG_AIC7XXX_RESET_DELAY=5

# File systems
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set

O. Wyss

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

From: David A Knight <[EMAIL PROTECTED]>
Subject: Re: Mount of Zip doesn't work since linux-2.4.0-test2
Date: 20 Jul 2000 22:31:34 +0100

[EMAIL PROTECTED] (Otto Wyss) writes:

> I tried to upgrade from kernel-2.4.0-test1 to kernel-2.4.0-test2 and
> than again to kernel-2.4.0-test4 but in neither could I mount my
> SCSI-ZIP. I allways the the error message (translated from germen):
> 
>         mount: /dev/sda4 as a wrong major or minor device number

Some of the SCSI modules have changed names and are therefore probably 
not loaded.

I encountered the same problem which was that sd_mod is now just sd


David

-- 
Make your site SCREEM - Site Creating & Editing EnvironMent

URL:  http://www.screem.org/
Mail: [EMAIL PROTECTED]

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

From: "K.V.Sukesh" <[EMAIL PROTECTED]>
Subject: bigphysarea problem
Date: Thu, 20 Jul 2000 14:47:12 -0700

hi,
This is a problem i am facing .......I am trying to allocate a large amount
of physically contigous memory for a DMA ....for that i patched the kernel
with the patch
bigphysarea-2.2.13 [ kernel version is 2.2.14 on a 64mb AMD K6-2 300MHz
machine ]
now...if i boot the kernel, its stuck after one of the following messages
============
LILO boot : linux
booting linux..... <<stuck>>
=============
or

============
LILO boot : linux
booting linux.....
Uncompressing the kernel  <<stuck>>
=============

if anybody had a similar experience .....or knows the reason...please do
share..


thanx
SUKESH






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

From: Eric Smith <[EMAIL PROTECTED]>
Crossposted-To: comp.periphs.scsi
Subject: Re: SCSI programming in Linux
Date: 20 Jul 2000 15:01:57 -0700

David Man <[EMAIL PROTECTED]> writes:
> I've consulted the Linux SCSI programming HOWTO which teaches how to use
> the SCSI Generic (sg) interface.  Unfortunately, it covers only inquiry
> and test_unit_ready commands.  I am more interested in more common
> commands such as read and write.  Does anyone have any insight into the
> field of linux SCSI programming.  If so, can you give me a few pointers
> or provide some good books or resoureful URLs that I can take a look at.

A read command is done exactly the same as an inquiry command.  Just
fill in the command structure appropriately.

The write command isn't that much different.  You supply a buffer of
data to be written.  I don't recall the details, as it's been several
years since I've done it, but there really wasn't any magic to it.

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: How to force a clean reboot from a module?
Date: Thu, 20 Jul 2000 22:19:26 +0200

In article <cZjd5.6922$[EMAIL PROTECTED]>,
        "Norm Dresner" <[EMAIL PROTECTED]> writes:
> Is there some way for a driver to force a safe/clean reboot which includes
> the normal sync-mechanism and unmounting of file systems?

Dosn't Linux have panic()?

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
 Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518

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

From: [EMAIL PROTECTED] (Mario Klebsch)
Subject: Re: Question about system() call malfunctioning (Was: Question: system() from 
C++ CGI to Perl with Kernel 2.2.16)
Date: Thu, 20 Jul 2000 22:21:42 +0200

Lisa Wilcox <[EMAIL PROTECTED]> writes:

>Using strace wasn't very useful to me because I can't run the C++ CGI
>from the command line.  (It's programmed to parse only GET or POST
>method requests.)

You should have used strace -f -o tracefile on the httpd.

73, Mario
-- 
Mario Klebsch                                           [EMAIL PROTECTED]
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
 Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518

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

From: "K.V.Sukesh" <[EMAIL PROTECTED]>
Subject: Re: bigphysarea problem
Date: Thu, 20 Jul 2000 15:20:59 -0700

thanks to Raymond Cheng problem.....i got the solutions........thanx guys

"K.V.Sukesh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> hi,
> This is a problem i am facing .......I am trying to allocate a large
amount
> of physically contigous memory for a DMA ....for that i patched the kernel
> with the patch
> bigphysarea-2.2.13 [ kernel version is 2.2.14 on a 64mb AMD K6-2 300MHz
> machine ]
> now...if i boot the kernel, its stuck after one of the following messages
> ============
> LILO boot : linux
> booting linux..... <<stuck>>
> =============
> or
>
> ============
> LILO boot : linux
> booting linux.....
> Uncompressing the kernel  <<stuck>>
> =============
>
> if anybody had a similar experience .....or knows the reason...please do
> share..
>
>
> thanx
> SUKESH
>
>
>
>
>



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

Date: Thu, 20 Jul 2000 18:49:13 -0400
From: "Frank V. Castellucci" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Database Modeling Tools for Linux?

Thomas Gagne wrote:
> 
> dia's great for drawing pictures, but I want the modeling tool to actually
> allow me to type-in information about keys and attributes--and eventually
> generate the SQL for building the database.  I guess I assumed people may have
> been more familiar with erwin or erstudio.

I am very aware of ER tools for windows, I am also aware that there are
tools that can help you with generation. Take a look on freshmeat or
sourceforge.

-- 
Frank V. Castellucci
http://corelinux.sourceforge.net
OOA/OOD/C++ Standards and Guidelines for Linux
http://PythPat.sourceforge.net
Pythons Pattern Package

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


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