Linux-Misc Digest #653, Volume #21                Fri, 3 Sep 99 06:13:08 EDT

Contents:
  Re: MS DLLs vs. Linux Shared Libs (Josh Stern)
  Re: problem with CD Player (Me Here)
  Re: Installation of CD-Writer on existing Redhat system (Villy Kruse)
  Re: MS DLLs vs. Linux Shared Libs ("Markus M. Mueller")
  Re: Best Linux Distro? / Best GUI? ("Noah Roberts (jik-)")
  Re: (Q) What is the advantage of KDE/GNOME applications? ("Noah Roberts (jik-)")
  Re: CERN security (Villy Kruse)
  Re: Building packages trashes my files system... (Richard Mace)
  Re: Notepad for Linux? ("Noah Roberts (jik-)")
  Re: MS DLLs vs. Linux Shared Libs (Kelly Burkhart)
  Re: Avermedia98 & bttv problems (Ben Vince)
  Re: Dual Pentium II shows as Dual Celeron... (Artur Swietanowski)
  Re: DOes *screen* give me more font selections? (J.H.M. Dassen (Ray))
  Seeking step by step help with Postgres and Php in Redhat6.0 (bono)
  Re: CERN security ("Jacek M. Holeczek")
  Re: C vs C++ for Open Source projects (Jonathan Thornburg)
  Re: Can't Achieve 1280x1024 - Help! (Anita Lewis)
  Re: Is is possible to store debug information from a seg fault? 
([EMAIL PROTECTED])

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

Crossposted-To: comp.os.linux.development.apps
Subject: Re: MS DLLs vs. Linux Shared Libs
From: [EMAIL PROTECTED] (Josh Stern)
Date: Thu, 02 Sep 1999 20:41:17 GMT

Lynn Levy  <[EMAIL PROTECTED]> wrote:

>I'm doing my first Linux project, involving porting a fairly complex
>set of interdependent DLLs to Linux shared libraries.
>
>I'd appreciate any pointers to information on the following:
>
>Import/Export directives in Linux:  what replaces __declspec(dllimport)
>and __declspec(dllexport) and/or the .def file?
>
>What flags to use to force the compiler/linker to create the import
>library in a separate step from creating the shared library.
>
>Any tool which will display imports/exports/symbols, equivalent to MS's 
>"dumpbin".

We had a thread about this a while back.  The basic conclusion was
that most symbols with externally callable interfaces are exported
by default, but that you can change this prior to or during linking
with either the objcopy utility or arguments to the gnu linker, ld.
For documentation you will want to look at the info pages for
binutils, which is a suite of relevant programs (including 
functionality like dumpbin, I believe, and many other things),
as well as ld itself.

>Any information on Linux's name-mangling scheme.

It is definitely going to change for C++.  For C it is pretty
stable.  Look at the 'asm' node in the gcc documentation.
 
>OS loading criteria for finding and loading a shared library under Linux.

Look at the man page for ldd and dlopen and ldconfig.


- Josh



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

From: Me Here <[EMAIL PROTECTED]>
Subject: Re: problem with CD Player
Date: Fri, 03 Sep 1999 02:58:26 -0500
Reply-To: [EMAIL PROTECTED]

Liguo Song wrote:
> 
> Hi, Dear friends,
> 
> I am new to Linux and need your help!
> 
> I met a problem with cd player after installed Red Hat Linux 6.0 on my
> PC.
> 
> First time I started GNOME CD Player, it worked fine except the sound
> volume is very low. So, I tried to start the  Audio Mixer in the main
> menu. A message box popped out and asked me to run esd in terminal. I
> did it, then I could run the Audio Mixer. After the Audio Mixer started,
> 
> cd player cannot make any sound. Even, restarting the CD Player or
> reboot the system won't solve this.
> 
> To make it even worse, other CD player, like Xplaycd won't work either.
> 
> What's the problem? What should I do to solve this?
> 
> Thanks in advance for any helpful response.
> 
> Liguo

The problem is that esd (the esound daemon) basically locks the sound
device.

There are a couple of ways around this.

The easiest is to make sure that you have the latest gnome-media package
which includes the cd player, mixer, etc.  It sounds like you have an
older one that may not be configured to use esd????? (don't flame me on
that)
gnome-media-1.0.9.1 was the latest last I checked, and I just tried the
gnome cd player both w/ and w/o starting esd and had no problems.

There is also another way by which you tell esd to let another program
have access to the device, but I can't remember how off hand. This would
be what you would need to do to let Xplaycd work if you were running esd
(but then again, with the new gnome-media, you would have no use for
Xplaycd).

BTW: XMMS (formerly x11amp: http://www.xmms.org), which can play cds as
well as mp3s, wav, midi, kicks butt and can be configured easily to use
esound or the oss drivers. I don't think it has cddb lookup yet though.

Hope this helps...

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

From: [EMAIL PROTECTED] (Villy Kruse)
Crossposted-To: linux.redhat.misc
Subject: Re: Installation of CD-Writer on existing Redhat system
Date: 3 Sep 1999 09:51:48 +0200

In article <7qne9n$792$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:


>One last bit of advice -- look into the excellent xcdroast package.
>It is a front end to mkisofs, cdrecord, and a few other utilites and
>makes mastering/copying/burning cd's very easy.  Find it at freshmeat.net.


Also you might find cdrecord and/or cdwrite on the redhat contrib site,
and bitchpolitely ask redhat why cdrecord isn't included in the
standard redhat distribution like it ise on for example SuSE and Caldera
and I would be surprised if Slackware doesn't include it.


-- 
Villy

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

From: "Markus M. Mueller" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: MS DLLs vs. Linux Shared Libs
Date: Fri, 03 Sep 1999 09:38:12 +0200

dumpbin -> nm

Markus

Lynn Levy wrote:
> 
> Hi,
> 
> I'm doing my first Linux project, involving porting a fairly complex
> 
> set of interdependent DLLs to Linux shared libraries.
> 
> I'd appreciate any pointers to information on the following:
> 
> Import/Export directives in Linux:  what replaces __declspec(dllimport)
> 
> and __declspec(dllexport) and/or the .def file?
> 
> What flags to use to force the compiler/linker to create the import
> 
> library in a separate step from creating the shared library.
> 
> Any tool which will display imports/exports/symbols, equivalent to MS's
> 
> "dumpbin".
> 
> Any information on Linux's name-mangling scheme.
> 
> OS loading criteria for finding and loading a shared library under Linux.
> 
> Any other wisdom from those of you who've travelled this road before.
> 
> Please respond via email, as my Usenet access is virtually nonexistant
> 
> from here...
> 
> Thanks greatly in advance,
> 
> Lynn
> 
> [EMAIL PROTECTED]
> 
> ------------------  Posted via CNET Linux Help  ------------------
>                     http://www.searchlinux.com

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

Crossposted-To: comp.os.linux.advocacy,comp.os.linux.admin
Subject: Re: Best Linux Distro? / Best GUI?
From: "Noah Roberts (jik-)" <[EMAIL PROTECTED]>
Date: 03 Sep 1999 01:00:03 -0700

TNC <[EMAIL PROTECTED]> writes:

> Here's a little flamebait for you all.  What is the best distro and GUI
> combo? By "best" let me explain.  I'm a very experienced Linux
> user/admin.  I started back around 92 with slackware and am currently
> using Redhat 5.0.  I've heard many terrible things about RH6.0 and am
> wary.  What I want is a distro that installs smoothly, has a good GUI
> (OK, this is also a question about Gnome/KDE) and has a binary package
> installation system that checks dependencies, etc...  I liked slackware
> but after a while I gave it up b/c they use tarballs and make you
> compile everything.  As I understand it they still do. Opinions? -
> please CC to my email as my newsserver is slow and flaky.  Thanks.

SuSE definately.

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

Subject: Re: (Q) What is the advantage of KDE/GNOME applications?
From: "Noah Roberts (jik-)" <[EMAIL PROTECTED]>
Date: 03 Sep 1999 00:56:59 -0700

[EMAIL PROTECTED] (Timothy Murphy) writes:

> Roberto Alsina <[EMAIL PROTECTED]> writes:
> 
> >> What exactly is the advantage of a KDE or GNOME application,
> >> over a standard application launched through a kdelnk
> >> or GNOME launcher?
> 
> >Try dragging a file from kfm into kwrite, then try it over emacs.
> 
> Is kwrite the same as the application "Advanced Editor" in KDE?
> 
> I could not find any mention of kwrite
> in the list of applications at http://www.kde.org .
> As a RedHat user, I would have preferred an RPM,
> but again I did not find any kwrite*.rpm at RedHat.
> 
> Having said that, your example illustrates perfectly my theme.
> I would not regard the ability to drag-and-drop in kwrite
> as anywhere like as important as the facilities offerred by emacs.
> 
> In any case, is it not possible to create a "wrapper"
> to add this facility to an existing program (like emacs)?

Well if KDE uses Xdnd then XEmacs will soon be able to support KDE
DnD, but what it will do with that ability I don't know.  I also think 
the pure raw power of emacs far outweighs being able to "drag" text or 
whatnot into it.  Besides, who wants to drag when the selection
mechanism is much better suited to textual transfer?  Course being
able to drag a text file into emacs and having it open it is another
matter.

The problem with the wrapper is that the owner is not the one who
makes the request in the selection protocol.  If you could somehow
coax it into requesting the data in the selection then yes it would
work, but I am not sure that could be done short of building it into
the requestor....which I guess would be a good mechanism to design for 
those times when it would be nice to interact with an unknown
protocol.

BTW, I have used 3 different desktops...out of all XDE is the one I
liked the best, but it needs a LOT of work.  Currently I am without a
desktop environment and am quite happy.  I am thinking of creating a
desktop icon program simply because I think it *might* be useful but
don't want the rest of the garbage.  Personally I think a seriese of
protocols could be invented that being adhered to would offer all the
services of a desktop environment without the shackles.  Its on my
*long* list of things to do......

About the aesthetics of the desktop...xemacs can be used as a widget.

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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: CERN security
Date: 3 Sep 1999 09:58:52 +0200


Warren Bell  <[EMAIL PROTECTED]> wrote:

>Can somone point me to the CERN website?  Does it have security
>tutorials?  I don't know if I'm finding the right place or section.


You might want CERT at www.cert.org.  CERN does nuclear physics and
the CERN web server.




-- 
Villy

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

From: Richard Mace <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Building packages trashes my files system...
Date: Wed, 01 Sep 1999 19:30:30 +0200



Peter Caffin wrote:

> Richard Mace <[EMAIL PROTECTED]> wrote:
> > My question is: what am I doing wrong?! How can a simple ./configure,
> > compile and link break a filesystem,
>
> Sounds like flaky hardware to me. Most likely your harddrive is on its
> way out, however, it's probably worth reseating the cables and cards
> related to your harddisk system.
>
> Right now, however, your first priority MUST be to back up any data
> you don't want lost. Whatever is causing your filesystem corruption,
> you're running a big risk by not doing so.
>
> --:     _           _    _ _
>  _oo__ |_|_ |__  _ |  _ |_|_o _  peter at ptcc dot it dot net dot au |
> //`'\_ | (/_|(/_|  |_(_|| | || |                http://it.net.au/~pc |
> /                            PO Box 869, Hillarys WA 6923, AUSTRALIA |

Many thanks for the help, Peter. I was worried that it might be the HD. I
was given this spare 2 GIG HD by a friend. Perhaps its time to throw it on
the junkpile, unfortunately....

Richard



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

Subject: Re: Notepad for Linux?
From: "Noah Roberts (jik-)" <[EMAIL PROTECTED]>
Date: 03 Sep 1999 01:02:53 -0700

[EMAIL PROTECTED] (Andrew Purugganan) writes:

Well, xedit is on your system if you have X.  Its just as limited as
notepad (though I think the X 4.0 version is more powerful even) and
is readily available and easy to use.  However, there are MUCH better
choices if you want something that can go beyond simply editing text files.

> Is there a Notepad-like tool for Linux? Please don't give me somthing 
> that needs GNOME/KDE Thanks Please reply by e-mail
> 
> --
> Andy Purugganan 
> annandy AT dc DOT seflin DOT org
> apurugganan AT amadeuslink DOT com

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

Crossposted-To: comp.os.linux.development.apps
Subject: Re: MS DLLs vs. Linux Shared Libs
From: Kelly Burkhart <[EMAIL PROTECTED]>
Date: 02 Sep 1999 21:04:00 -0500

Lynn Levy <[EMAIL PROTECTED]> writes:

> Hi,
> 
> I'm doing my first Linux project, involving porting a fairly complex
> set of interdependent DLLs to Linux shared libraries.
> 
> I'd appreciate any pointers to information on the following:
> 
> Import/Export directives in Linux:  what replaces __declspec(dllimport)
> and __declspec(dllexport) and/or the .def file?

There is no such thing as __declspec(whatever).  By default all
external symbols are exported in the shared library.

If you don't want all external symbols to be exported, you can use a
version script.  Here is a recent post on how to create a shared
library with a version script:

http://x41.deja.com/getdoc.xp?AN=516924281&CONTEXT=936323330.643694735&hitnum=3
http://www.deja.com/getdoc.xp?AN=516924281&CONTEXT=936323330.643694735&hitnum=3

> 
> What flags to use to force the compiler/linker to create the import
> library in a separate step from creating the shared library.

There is no such thing as an import library with linux shared
libraries.  I believe the strategy in Windows is to create a dll and
an import library.  You statically link to the import library and at
run time the import library binds to the dll.  (is that right?)

Anyway, shared libraries are just like static libraries.  Except
they're shared.

> 
> Any tool which will display imports/exports/symbols, equivalent to MS's 
> "dumpbin".

nm will list symbols from object files and libraries.
objdump shows other information which I have never needed to look at.
ldd will list the shared libraries upon which a program depends.

> 
> Any information on Linux's name-mangling scheme.
> 

I have never needed to know that about any compiler on any platform.
Why does it matter how a c++ compiler mangles symbols?

> OS loading criteria for finding and loading a shared library under
> Linux.

These pages are relevant:
man ld.so
man ldconfig
man ldd

> 
> Any other wisdom from those of you who've travelled this road before.
> 
> Please respond via email, as my Usenet access is virtually nonexistant
> from here...
> 
> Thanks greatly in advance,
> Lynn
> [EMAIL PROTECTED]
> 
> ------------------  Posted via CNET Linux Help  ------------------
>                     http://www.searchlinux.com

-- 
Kelly R. Burkhart
[EMAIL PROTECTED]

[The litigation] industry was, of course, up and running before the
tobacco litigation, but that taught lawyers just how lucrative it
could be to blame individuals' foolishness on, say, Joe Camel.
   -- George F. Will

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

From: Ben Vince <[EMAIL PROTECTED]>
Subject: Re: Avermedia98 & bttv problems
Date: Fri, 03 Sep 1999 08:31:05 GMT

When your in XAWTV why not try and change either the overlay option or the 
country settings, if you are seeing black and white images it is usualy 
because you have selected the wrong country option (either PAL,NTSC etc.). 
How did you get your sound card working in the XAWTV app. That is my only 
problem, please could you help!!

Regards,

Ben Vince

email me: [EMAIL PROTECTED]


mksoft wrote:
> 
> I'm trying to compile bttv for avermedia98.
> i've tryed card=18 but all i see is
> fuzzy images sometimes only BW and no sound.
> 
> the application i use is xawtv.
> 
> My sound card is soundblaster64 PCI (it works ok).
> 
> can you help me with this one ? thanks..
> 
> 
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.


==================  Posted via CNET Linux Help  ==================
                    http://www.searchlinux.com

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

From: Artur Swietanowski <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: Dual Pentium II shows as Dual Celeron...
Date: Fri, 03 Sep 1999 10:36:03 +0200

Greg Leblanc wrote:
> (...) L1 is internal cache.  It's ON THE PROCESSOR CORE.
> L2 cache is (...) NOT on the processor core, and therefore is 
> NOT internal cache. (...) the external cache is now a part of 
> the processor.

This is some kind of Intel newspeak that I was not aware of (till 
now). If you read the above, you'll see that L2 which is a part of 
the processor, is called external. To me that's an oxymoron. 

Thanks for claryfying my confusion,
=====================================================================
Artur Swietanowski                    mailto:[EMAIL PROTECTED]
Institut f�r Statistik,  Operations Research  und  Computerverfahren,
Universit�t Wien,     Universit�tsstr. 5,    A-1010 Wien,     Austria
tel. +43 (1) 427 738 620                     fax  +43 (1) 427 738 629
=====================================================================

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

From: [EMAIL PROTECTED] (J.H.M. Dassen (Ray))
Subject: Re: DOes *screen* give me more font selections?
Date: 3 Sep 1999 08:32:09 GMT

Andrew Purugganan <[EMAIL PROTECTED]> wrote:
>I am considering d/loading screen.

The GNU "screen" program, you mean?

>But only if it will provide me with prettier fonts (hate all this
>serif/system/courier) stuff

"screen" has nothing to do with fonts in any way. Screen is essentially a
terminal multiplexer, i.e. a program that allows you to have several
terminals running in one regular terminal (say xterm or a virtual console).

HTH,
Ray
-- 
UNFAIR  Term applied to advantages enjoyed by other people which we tried 
to cheat them out of and didn't manage. See also DISHONESTY, SNEAKY, 
UNDERHAND and JUST LUCKY I GUESS.     
- The Hipcrime Vocab by Chad C. Mulligan  

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

From: bono <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,linux.redhat.misc
Subject: Seeking step by step help with Postgres and Php in Redhat6.0
Date: Thu, 02 Sep 1999 12:19:50 -0700

Hi all:

I been to the Postgres site and try to follow the steps in the page but
got lost completely since almost all
of the dir location are not the same and it is really confusing.  I
would hope someone who has
successfully installed postgres on Redhat to be able to contact me at
[EMAIL PROTECTED]  I am really
hoping to be able to set up this in my machine.  In addition I also need
to know how to use php for webpage
access authentication.

Please help!
Very, very desperate....

Bono


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

From: "Jacek M. Holeczek" <[EMAIL PROTECTED]>
Subject: Re: CERN security
Date: Fri, 3 Sep 1999 10:45:47 +0200

> Can somone point me to the CERN website?  Does it have security
> tutorials?  I don't know if I'm finding the right place or section.
The security page is :
        http://consult.cern.ch/writeup/security/main.html
The general "help" page is :
        http://consult.cern.ch/
The main www page is :
        http://www.cern.ch/
The ftp server is ( note - to accesss some directories you need to be
registered - see the "cernlib.registration" file ) :
        ftp://asisftp.cern.ch/
Hope this helps,
Jacek.


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

From: [EMAIL PROTECTED] (Jonathan Thornburg)
Crossposted-To: gnu.misc.discuss
Subject: Re: C vs C++ for Open Source projects
Date: 3 Sep 1999 11:16:14 +0200

In article <aUyz3.1738$[EMAIL PROTECTED]>,
Peter Seebach <[EMAIL PROTECTED]> wrote:
>a C++
>programmer will know that you should always write (if, for some insane reason,
>you must use malloc() in C++)
>       int *p = (int *) malloc(sizeof(int));
>while any C programmer who re-read things since '90 or so will know it's
>       int *p = malloc(sizeof(int));

Well, the former is legal in _both_ langauges, no less efficient,
still works reliably on systems whose header files don't have full
ISO C prototypes, and is recommended by at least some contemporary C
experts.  See, for example, section 16.1 of Harbison & Steele's latest
(4th) edition, dated 1995.



>There are a lot of subtle differences in the idiomatic and clear usage of the
>languages.  People who use C++ are unlikely to appreciate the scope of utility
             ==================
>of function pointers in C, because they've got "better ways to do that", and
>won't have bothered to pick up such an obscure and useless feature.

More precisely, people who use C++ and who are not competent in C
and who have never bothered to read a decent C book and who have
never read an article discussing the many and varied uses of function
pointers.

I'm sure there are many such programmers, probably even working at
<your favorite vendor of bloatware>, but _I_ wouldn't want to work on
their code.



All this said, Peter is right, the idioms of C and C++ differ somewhat.
_Good_ C++ programmers should know both.  (In fact, in my experience
good C++ programmers were usually already good C programmers before
they learned C++.)

-- 
-- Jonathan Thornburg <[EMAIL PROTECTED]>
   http://www.thp.univie.ac.at/~jthorn/home.html
   Universitaet Wien (Vienna, Austria) / Institut fuer Theoretische Physik
   "There are no significant bugs in our released software that any
    significant number of users want fixed." - Bill Gates, 23 Oct 1995

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

From: [EMAIL PROTECTED] (Anita Lewis)
Subject: Re: Can't Achieve 1280x1024 - Help!
Date: 3 Sep 1999 09:14:36 GMT
Reply-To: [EMAIL PROTECTED]

On Thu, 02 Sep 1999 22:35:15 -0700, Jason Bond <[EMAIL PROTECTED]> wrote:
>(I don't know the dotclock exactly).  I've tried the generic
>Video modes of
>Modeline "1280x1024"  110     1280 1320 1480 1728   1024 1029 1036 1077
>and
>Modeline   "1280x1024"  110     1280 1328 1512 1712   1024 1025 1028
>1054
>
>listed in /usr/X11R6/lib/X11/doc/README.Config
>but that doesn't seem to do the trick.  Can anyone out
>there suggest a possible approach to this?   Or where
>to look in the log files for suggestions?  Thanks kindly,
>
>  Jason
>
I would run startx -verbose &> startxlog  and take a look at startxlog.
Look for why it tosses out those modelines.  Did you run XF86Setup and if
so what are your horiz sync and vert refresh set at?  Did the program
probe for dot clock.  Sometimes the card is not supposed to be probed and
since you said you don't know the dotclock, perhaps that was the case.
Just putting in modelines by hand is not such a good idea.  What
resolutions do you have, btw?

Anita

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

From: [EMAIL PROTECTED]
Subject: Re: Is is possible to store debug information from a seg fault?
Date: 3 Sep 1999 09:19:38 GMT

Do you have a core file ? Maybe you find a kind soul who'll help you debug
using it ...
(It might be at /core or somewhere like this).


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


** 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.misc) 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-Misc Digest
******************************

Reply via email to