Linux-Development-Sys Digest #17, Volume #7       Tue, 3 Aug 99 14:14:08 EDT

Contents:
  Re: GCC Cross Compiling (Mumit Khan)
  Re: gcc and default include and lib dirs (Mumit Khan)
  <None> (Sergey Smitienko)
  Re: Wierdness in RedHat 6.0 and C++ ("Arthur T Lee")
  Re: GCC Cross Compiling (Kaz Kylheku)
  gcc link errors ([EMAIL PROTECTED])
  Server linux config (bill davidsen)
  more applications for Linux ([EMAIL PROTECTED])
  Re: GCC Cross Compiling (Mumit Khan)
  Re: handling modem input (Carlos Vidal)
  Re: What's with this new Gnome system? (Carsten Lechte)
  RH upgrade over non RH system? (Robin Becker)
  RW ATAPI CDROM how to use (Robin Becker)
  Re: What's with this new Gnome system? (Bartosz Klimek)
  Re: RH upgrade over non RH system? (Dr H. T. Leung)
  PLEASE HELP Imlib in garyscale??? (Guillermo)
  Re: Tripwire build problems (Jens Hektor)
  Re: RH upgrade over non RH system? (Robin Becker)
  Re: Web Based Linux Management (Jonathan Abbey)

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

From: [EMAIL PROTECTED] (Mumit Khan)
Crossposted-To: comp.lang.c++,comp.os.linux.development.apps,hp.os.linux
Subject: Re: GCC Cross Compiling
Date: 3 Aug 1999 00:44:20 GMT

In article <Shpp3.63833$[EMAIL PROTECTED]>,
Paul Lutus <[EMAIL PROTECTED]> wrote:

[ in response Matt Zinkevicius <[EMAIL PROTECTED]>'s query on
  building a x86-win32 hosted dev tools targetting x86-linux ]

>This would be very difficult. The languages are constructed differently,
>possess different architectures and assumptions, and do not share the same
>paradigms (sorry for the buzzword).

Umm, what are these different language constructions and what are
these paradigms? 

It's actually quite simple with GCC, once you figure out the nuts and 
bolts of setting up a GNU x-compilation environment. 

See the crossgcc[1] archives where this was discussed quite recently, 
and I do remember a Eureka! at the end of a long thread. Matt, if you
really get stuck, even after going through the archives, email me and 
I'll get you started.

[1] http://www.objsw.com/

Regards,
Mumit


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

From: [EMAIL PROTECTED] (Mumit Khan)
Subject: Re: gcc and default include and lib dirs
Date: 3 Aug 1999 00:33:57 GMT

In article <7o589q$csu$[EMAIL PROTECTED]>,
Steve Simons  <[EMAIL PROTECTED]> wrote:
>Relatively new to using gcc, and I have a bunch of apps that required
>the g++-compat-devel-2.7.2.3 libraries to compile. Installed it and the
>apps compile correctly, but I couldn't find in the gcc docs how to set
>it so I don't have to include a ' -I/usr/include/g++-2723 ' everytime I
>compile code. Isn't there an environment variable or file containing the
>includes and library dir paths that I can just add additional search
>paths without having to stating it everytime?

Aha, you just found out the primary reason why gcc comes with
documentation; it may not be great, but it has all this and much
more ;-)

  $ info gcc index "Environment Variables"

will take you straight where you need to be. (you might have to type
`info -f gcc index ...' depending on how your info paths are set up).

Of course, you'll see that in the long run, these variables cause
more harm than good (causes weird problems that are not obvious
until you remember to look at the environment variables ...), and
you're better of using simple Makefiles that set CPPFLAGS and then
it'll all just work.

  # Sample Makefile
  CC = gcc
  CXX = c++
  CFLAGS = -g
  CXXFLAGS = -g
  CPPFLAGS = -I/usr/include/g++-2723

Regards,
Mumit


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

From: [EMAIL PROTECTED] (Sergey Smitienko)
Subject: <None>
Date: Tue,  3 Aug 1999 02:12:00 +0300

I want to modify the existed ensoniq soundscape driver to support my
soundscape pnp. If you don't know - to initialise soundscape pnp you
need to upload about 128K of its microcode for chip to operate.It is
stay unclear to me how to open  file from the kernel and how to read
it. Please help.

                                 With best regards, Sergey Smitienko
                                                       Kiev, Ukraine

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

From: "Arthur T Lee" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Wierdness in RedHat 6.0 and C++
Date: Tue, 03 Aug 1999 02:46:50 GMT

We had similar problems when we first switched to RedHat 6.0 the problem was
some of the libraries we where linking in where compiled with redhat 5.2 as
soon as we re-compiled these (and made sure all object files where deleted
so we where assured the source would be re-compiled) Everything works great
now. Hope this helps.

mlw <markw@mohawksoft

mlw <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> Ever since I upgraded my development system to RedHat 6.0, I have been
> getting real strange things happening with the C library.
>
> I have a class library from which I build all my applications. It
> compiles and works great under RedHat 5.2 and Windows NT.
>
> When I compile it under RH 6.0 (and Mandrake) real strange things start
> to happen. I have one class that is declared but not used. When its code
> is present in the binary I can not read or write to the serial port
> (opened as a file). When I '#ifdef' out the code, the app works
> perfectly. The code is never used, never called. Just its presence
> breaks the app. I have moved the code to several different modules
> thinking that its positioning just exposed another bug, no matter where
> I put it, in its own module, before or after other libs on the link
> line, same thing. Ifdef out the code, it works. Leave it in and never
> call it, it breaks.
>
> I had a similar problem a month or so ago on a different project.
>
> Anyone else have these problems? I am seriously thinking about switching
> back to 5.2 for development.
>
>
>
> --
> Mohawk Software
> Windows 95, Windows NT, UNIX, Linux. Applications, drivers, support.
> Visit http://www.mohawksoft.com



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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Crossposted-To: comp.lang.c++,comp.os.linux.development.apps,hp.os.linux
Subject: Re: GCC Cross Compiling
Date: Tue, 03 Aug 1999 03:51:15 GMT

On Mon, 2 Aug 1999 16:34:05 -0600, Matt Zinkevicius <[EMAIL PROTECTED]>
wrote:
>Hi,
>  Our team would like to build a verison of GCC that cross-compiles
>to x86 linux hosted on x86 Windows NT. Has anyone tried this? Anything

Why.

>I should be aware of? Is it even possible?

The GNU compiler has been ported to Win32. You should be able to take .o files
generated by it under NT and link them on a Linux system.  Years ago I used to
transfer .o files generated on a Linux system, and use them under MSDOS
(DJGPP).

What you need are the target system's header files to be installed somewhere on
the host where you are compiling, so that your software has the correct
declarations for data structures used on the target system.  That, and you need
to match the compiler options used on the target system; that is, in case some
of your software does things like #ifdef __linux__.

By doing this you can produce object files that can be put together into a
library archive (.a file) which then only needs to be run through the linker on
the target Linux system to produce dynamically linked executable.

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

From: [EMAIL PROTECTED]
Subject: gcc link errors
Date: Tue, 03 Aug 1999 04:31:23 GMT

I am trying compile a simple program with
the QT toolkit. For some reason gcc return errors
like this :

/tmp/ccfQNFXS.o(.text+0x17):undefined reference to
`QApplication::QApplication(int &, char **)'
/tmp/ccfQNFXS.o(.text+0x2f):undefined reference to
`QPushButton::QPushButton(char const *, QWidget *, char const *)'

etc, etc.

It seems like the linker cannot find the QT library. Where
should I check?

Thanks.

Tony


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: [EMAIL PROTECTED] (bill davidsen)
Subject: Server linux config
Date: 20 Jul 1999 16:28:54 GMT

I'm trying to use 2.2.6 as a server, and it doesn't seem to be able to
support more than a few hundred processes. I have made the obvious
changes in linux/task.h (# proc) and linux/limits.h (# of open files),
and it still appears to be running out of file descriptors.

I didn't have this problem with 2.0 kernels, they ran when patched. What
has changed?

-- 
bill davidsen <[EMAIL PROTECTED]>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


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

From: [EMAIL PROTECTED]
Subject: more applications for Linux
Date: Mon,02 Aug 1999 23:42:54+2000

   Look at this web page to learn more about the best new applications

to run on Linux in 1999


           http://209.218.86.64/linux.html


   If you know someone who can be interested in that please tell him

or her about this web page.


   Thank you for your time.



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

From: [EMAIL PROTECTED] (Mumit Khan)
Crossposted-To: comp.lang.c++,comp.os.linux.development.apps,hp.os.linux
Subject: Re: GCC Cross Compiling
Date: 3 Aug 1999 05:20:36 GMT

In article <[EMAIL PROTECTED]>,
Kaz Kylheku <[EMAIL PROTECTED]> wrote:
>On Mon, 2 Aug 1999 16:34:05 -0600, Matt Zinkevicius <[EMAIL PROTECTED]>
>wrote:
>>Hi,
>>  Our team would like to build a verison of GCC that cross-compiles
>>to x86 linux hosted on x86 Windows NT. Has anyone tried this? Anything
>
>Why.

Others have reasons to do things that the rest of us may find "odd", but
they're just as real nonetheless. (btw, ``Why.'' in the inquisitive, or 
in the condescending?)

>>I should be aware of? Is it even possible?
>
>The GNU compiler has been ported to Win32. You should be able to take .o files
>generated by it under NT and link them on a Linux system.  Years ago I used to
>transfer .o files generated on a Linux system, and use them under MSDOS
>(DJGPP).

There's no need for that (and what you suggest is not correct in general).

Please see my post in this thread about creating a cross compiler that
works very well, and I've used it for a embedded linux system controlled
by a NT box (NT since I need software written only for NT so far
unfortunately -- we're working with the vendor to get a Linux port
going).

Regards,
Mumit


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

From: Carlos Vidal <[EMAIL PROTECTED]>
Subject: Re: handling modem input
Date: Tue, 03 Aug 1999 10:10:20 +0200

Dan Miller wrote:
> 
> I want to write a small utility that will recognize when an incoming
> connection
> is received, and deal with it.  I suppose, ultimately, I just want to spawn
> a
> login session and hand them off to it.  I have a couple of questions for
> the group:
> 
> 1. Do I need to do anything besides open /dev/ttyS1 and sleep on read() ??
> 
> 2. Are there any fairly simple utilities out there that already deal with
> this??
> 

The 'mgetty+sendfax' package deals with all this, is easy to configure
and works pretty good. 
-- 
Carlos Vidal
[EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Carsten Lechte)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: What's with this new Gnome system?
Date: 3 Aug 1999 11:29:27 +0200

In <[EMAIL PROTECTED]> Ron House <[EMAIL PROTECTED]> writes:

>And where would the README be? My system was installed by our tech
>support guys and the help system contains no information I can detect

locate README | grep -i gnome
or
locate gnome | grep -i readme
or
ls /usr/doc (depends on distribution)
or
locate howto, locate HOWTO, locate faq, locate FAQ
or (last resort;-)
grep HEEEEELP!!! /usr/src/linux/*/*


regards, Carsten.
-- 
Carsten Lechte, student of physics in Kiel, nospam, Germany.
      

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

From: Robin Becker <[EMAIL PROTECTED]>
Subject: RH upgrade over non RH system?
Date: Tue, 3 Aug 1999 11:17:27 +0100

I've purchased RH 6.0. It won't let me upgrade over my non RH existing
system as it cannot find an RPM data base. Is there any way to fake the
install into not deleting my existing system or of getting the upgrade
to see an RPM database?
-- 
Robin Becker

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

From: Robin Becker <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: RW ATAPI CDROM how to use
Date: Tue, 3 Aug 1999 11:14:48 +0100

I'm running a home brew linux based on 2.0.36. I can read my memorex
crw22 atapi cdrom, but don't know how(or tools) to use it for writing
cds.

I need this as RH 6 won't let me upgrade; I've never used RH before
having bought it. It won't let me upgrade over a non RH system. An
install will wipe my system.
-- 
Robin Becker

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

From: Bartosz Klimek <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: What's with this new Gnome system?
Date: Tue, 03 Aug 1999 11:03:01 GMT

Hello.

Ron House wrote:
> 
> Tristan Wibberley wrote:
> >
> > There was no old system to keep ;)
> > IMHO, Gnome 1.0 was released too soon.
> 
> I refer to good ol' fvwm.

What about KDE? I installed RH 6.0 and liked Gnode at first glance, but
now I must admit that using it can make a most patient user crazy. So I
keep using KDE as I have been for months with RH 5.1. Just get it
installed and do this: cat KDE>/etc/sysconfig/desktop. If you don't like
it, remove the file and you'll be back in Gnome.

> >
> > Did you bother to read the README and find where you're supposed to send
> > bug reports, and where to ask about the problems before you do? I think
> > not.
> 
> And where would the README be? My system was installed by our tech
> support guys and the help system contains no information I can detect
> about where gnome keeps its files (README included) - because knowing
> which files to back up after making changes would be, let's say, useful.
> It also has no obvious way into the installation system (RedHat), and
> that question is so hard to solve the techies haven't got back to me
> about it.

Maybe this would help: 

$ rpm -qa|grep gnome

You'll get a list of all the Gnome packets. Then for each packet (e.g.
gnome-utils) do this:

$ rpm -ql gnome-utils

Good luck.

-- 
Bartosz Klimek
mailto:[EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Dr H. T. Leung)
Subject: Re: RH upgrade over non RH system?
Date: 3 Aug 1999 12:00:42 GMT


You can't upgrade that way in the sense of having it automatically converting
your password entries, etc and have a functional system that works in much the
same way afterwards, because RH have a different password authentication
procedure and also the init files are organized differently (at different
places). 

You can either compile rpm from source and rebuild the database, and install as
many rpms/srpms as you want to have a partial upgrade (I am still doing that as I
like Slackware better); or you can backup your system first, then wipe off
everything else except /home and /usr/local or other custom things with a boot
disk (again, you can use a boot/root disk pair from Slackware for this), then
*install* RH 6.0 on top *without formatting the drive*. This way your /home and
/usr/local will be immediately usable; although to go though backup you might as
well wipe them off as well and copy them back afterwards. Then you can configure
your system and issue new passwords to users (I think there is no conversion
tools, but check - as RH 5.2 still uses the same authentication mechanism as
others); this is probably less painless than it sounds... 

In article <[EMAIL PROTECTED]>, Robin Becker 
<[EMAIL PROTECTED]> writes:
|> I've purchased RH 6.0. It won't let me upgrade over my non RH existing
|> system as it cannot find an RPM data base. Is there any way to fake the
|> install into not deleting my existing system or of getting the upgrade
|> to see an RPM database?
|> -- 
|> Robin Becker
-- 
          --------------------------------------------------
"What you don't care cannot hurt you."            Chap. 7a, AMS-NS

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

From: Guillermo <[EMAIL PROTECTED]>
Subject: PLEASE HELP Imlib in garyscale???
Date: Tue, 03 Aug 1999 14:12:31 +0200

What do I have to do to display grayscale images in imlib?
I need to display 8 bits grayscale images but I only  can do it with
color images (24 bits, 3 times more information =>3 times less quick).
Thanks a million

Guillermo

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

From: Jens Hektor <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.security
Subject: Re: Tripwire build problems
Date: Tue, 03 Aug 1999 16:13:19 +0200

Hi Marc,

Marc Marais wrote:
> I'm having trouble running V1.2 of tripwire on Linux.

Me too.

> I keep getting segmentation faults in malloc() calls which are called from

Same to me, but my system is based on Redhat 6.0. 

No problems with the binary RPM that with SuSE 6.1 und SuSE 6.1.
No problems under Solaris.

Any hints ?

Jens

-- 
Jens Hektor, RWTH Aachen, Rechenzentrum, Seffenter Weg 23, 52074 Aachen 
Computing Center Technical University Aachen, firewalls/network security
mailto:[EMAIL PROTECTED], Tel.: +49 241 80-4866 
Private: Rochusstr. 26, D52062 Aachen, Fon: +49 241 29888, Fax: % 29889

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

From: Robin Becker <[EMAIL PROTECTED]>
Subject: Re: RH upgrade over non RH system?
Date: Tue, 3 Aug 1999 13:27:27 +0100

In article <7o6lla$o0m$[EMAIL PROTECTED]>, Dr H. T. Leung
<[EMAIL PROTECTED]> writes
>
>You can't upgrade that way in the sense of having it automatically converting
>your password entries, etc and have a functional system that works in much the
>same way afterwards, because RH have a different password authentication
>procedure and also the init files are organized differently (at different
>places). 
>
>You can either compile rpm from source and rebuild the database, and install as
>many rpms/srpms as you want to have a partial upgrade (I am still doing that as 
>I
>like Slackware better); or you can backup your system first, then wipe off
>everything else except /home and /usr/local or other custom things with a boot
>disk (again, you can use a boot/root disk pair from Slackware for this), then
>*install* RH 6.0 on top *without formatting the drive*. This way your /home and
>/usr/local will be immediately usable; although to go though backup you might as
>well wipe them off as well and copy them back afterwards. Then you can configure
>your system and issue new passwords to users (I think there is no conversion
>tools, but check - as RH 5.2 still uses the same authentication mechanism as
>others); this is probably less painless than it sounds... 
problem is I'm not sure whether I can get my cd-rw to work with the
current setup so maybe backup is problematic. I certainly wouldn't want
RH to touch the first partition which is win-95. I want to get into
libc6 and the amount of work required to rebuild is huge. According to
the manual it will destroy all information on the selected partitions
during an install. An upgrade requires an RPM database so howmuch of an
upgrade must I build ahead of time to get it all to work. Presumably I
would need the RH password scheme etc etc and all that it implies.

I guess I'll have to try harder to get the cdrecord stuff to work. 
>
>In article <[EMAIL PROTECTED]>, Robin Becker 
><[EMAIL PROTECTED]> writes:
>|> I've purchased RH 6.0. It won't let me upgrade over my non RH existing
>|> system as it cannot find an RPM data base. Is there any way to fake the
>|> install into not deleting my existing system or of getting the upgrade
>|> to see an RPM database?
>|> -- 
>|> Robin Becker

-- 
Robin Becker

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

From: [EMAIL PROTECTED] (Jonathan Abbey)
Crossposted-To: alt.os.linux.caldera,comp.os.linux.networking,comp.os.linux.security
Subject: Re: Web Based Linux Management
Date: 3 Aug 1999 12:27:11 -0500

In article <[EMAIL PROTECTED]>, Karl McMurdo <[EMAIL PROTECTED]> wrote:
| Is there such an animal ?
| 
| Unixware has their 'Webtop' interface that allows system management with a
| web interface, and Samba has it as well, I'm looking for the ability to
| manage a linux server from a remote browser (or even a local browser
| although that makes less sense as you are in X and presumably X management
| tools are available)   I have a number of application servers that do not
| have X installed, and a couple that do, my 'desktop' machine is actually a
| laptop running WinNT, and I run a windows X-Server to connect to those
| machines with X running, and telnet into the others to do sysadmin tasks.  I
| have been experimenting with perl and have created a script to do the most
| common task (add/mod/del users) with a web interface, and am thinking of
| expanding it to cover more tasks, but don't want to reinvent the wheel.
| Any feedback would be appreciated.

This might be overkill, but take a look at Ganymede at
http://www.arlut.utexas.edu/gash2.

Ganymede is a system for network directory management.. it can handle
things like adding/removing/editing users, groups, NIS maps, DNS,
printers, etc.

Anything where you're basically editing network directory entries can
be handled by Ganymede.  If you want a web interface that will let you
invoke arbitrary scripts to do arbitrary edits to arbitrary config
files (the total telnet replacement concept), Ganymede won't be the
best thing, but for a lot of things you can make it do what you want.

| Karl McMurdo

-- 
===============================================================================
Jonathan Abbey                                        [EMAIL PROTECTED]
Applied Research Laboratories                 The University of Texas at Austin
Ganymede, a free NIS/DNS management system    http://www.arlut.utexas.edu/gash2

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


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