Linux-Development-Sys Digest #933, Volume #7 Mon, 5 Jun 00 04:13:12 EDT
Contents:
Can't make xconfig (James)
Re: Why compiling "-static" creates HUGE binary??? (Christoph Bauer)
Re: Increase the priority of a thread... how? (Stefaan A Eeckels)
Where is code for loading executables ([EMAIL PROTECTED])
Re: Where is code for loading executables (John Reiser)
Re: Why compiling "-static" creates HUGE binary??? (Graham Stoney)
LGPL: ObjectThread beta 0.1.0 released on sourceforge (Jason Nye)
2F5F1484 Diagramming software for Linux ([EMAIL PROTECTED])
Re: ALSA drivers with kernel version 2.4.0-test1 (Patrice Belleville)
Samba strange behaviour. ("Jean-Claude MEILLAND")
Re: Can't make xconfig ("Quiney, Philip [HAL02:HH00:EXCH]")
Re: Stupid but annoying problem (Michel Talon)
Best video capture card for Linux... (Thierry BUCCO)
----------------------------------------------------------------------------
From: James <[EMAIL PROTECTED]>
Subject: Can't make xconfig
Date: Sun, 04 Jun 2000 19:30:18 GMT
I have recently been trying to configure and recompile the kernel in
mandrake 7.0.
Every tutorial I read tells me to go to;
/usr/src/linux
and type;
make xconfig or
make menu config.
everytime I do this I get an error message saying;
"MAKE no target defined"
or something like that. I am pretty sure I have the kernel source in that
directory so what should I do?
Any help would be much appreciated.
JL
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: Christoph Bauer <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,linux.dev.c-programming,linux.dev.gcc
Subject: Re: Why compiling "-static" creates HUGE binary???
Date: 04 Jun 2000 23:38:50 +0200
"RM" <[EMAIL PROTECTED]> writes:
> Erik,
>
> Thanks. I did "strip test", and it did reduce the size considerably. The
> striped file is now 205KB. Better, but still....
> For that matter, why does "-static" add so much debug info to the file in
> the first place? GCC has command line options to explicitly control debug
> symbols. This still doesn't make much sense.
There is a "dietlibc".
Search on freshmeat.net
An example program has a size of 3412 Bytes (static).
Christoph
------------------------------
From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Subject: Re: Increase the priority of a thread... how?
Date: Sun, 4 Jun 2000 22:35:50 +0200
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Tom Thorne) writes:
>
>>What problems are you seeing in your app to need a priority change.
>
> I am porting a win32 app over to linux. It has an ip message handler
> thread that runs (on win32) at a higher priority than other threads in
> the app.
You should really consider what your Win32 application does, as the
methods to get best performance out of each OS (UNIX and WinNT/2K)
differ considerably.
The only way to get decent performance out of a WinNT server
is to be multi-threaded, with each thread serving several
connections, and to use completion ports. Because this results in
oodles of messages, you need to raise the priority on the
message handler thread.
Socket handling on UNIX isn't based on the same model. Threads are
not needed to achieve maximum performance, and most high-performance
servers are written using a number of processes, each handling one
or more connections using select().
Depending on the version of UNIX, threads often result in slower
programs.
Summary: in Windows, you _need_ threads to get performance, on
UNIX you use threads when you need the paradigm.
> ...so I'll just try it as SCHED_OTHER and hope for the best.
Happy porting,
--
Stefaan
--
--PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)--
Ninety-Ninety Rule of Project Schedules:
The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.
------------------------------
From: [EMAIL PROTECTED]
Subject: Where is code for loading executables
Date: Sun, 04 Jun 2000 22:23:30 +1000
Hi,
I need to find where in the kernel source is the code for loading an
executable file (ELf format) and running it. Is this in a module or part
of the kernel.
Any help would be much appreciated. Thank-you
dan
------------------------------
From: John Reiser <[EMAIL PROTECTED]>
Subject: Re: Where is code for loading executables
Date: Sun, 04 Jun 2000 18:37:31 -0700
/usr/src/linux/fs/binfmt_elf.c
--
John Reiser, [EMAIL PROTECTED]
------------------------------
From: Graham Stoney <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,linux.dev.c-programming,linux.dev.gcc
Subject: Re: Why compiling "-static" creates HUGE binary???
Date: 5 Jun 2000 12:37:30 +1000
Graham Stoney <[EMAIL PROTECTED]> writes:
> ... exit() calls free() to release functions registered with atexit(),
>even if you don't actually use atexit(). free() resides is malloc.c, as does
>malloc_stats(), which calls fprintf(). So a static link against glibc gets
>the rather hefty GNU malloc & printf, even if they don't call either directly.
>Few non-trivial programs can avoid malloc(), but statically linked C++
>programs for instance are paying for printf(), though they may never use it.
In article <[EMAIL PROTECTED]>,
Mario Klebsch <[EMAIL PROTECTED]> wrote:
>It seems like its time for a bug report.
I did report this problem on the libc-alpha mailing list, in:
http://sourceware.cygnus.com/ml/libc-alpha/2000-04/msg00018.html
I doubt it will be fixed though, because malloc/free/malloc_stats and friends
all reside in a single .c file so that their internal state variables can
easily be made static and avoid polluting the global namespace. Splitting it
up would be a hassle, but if anyone wants to have a try at doing so and
convincing the glibc maintainers to accept the result, you would have my full
support. :-)
In the mean time, building the library with -ffunction-sections is easier,
and means you don't need to convince the glibc maintainer to split malloc.c.
Regards,
Graham
--
Graham Stoney
Principal Hardware/Software Engineer
Canon Information Systems Research Australia
Ph: +61 2 9805 2909 Fax: +61 2 9805 2929
------------------------------
From: Jason Nye <[EMAIL PROTECTED]>
Subject: LGPL: ObjectThread beta 0.1.0 released on sourceforge
Date: Mon, 05 Jun 2000 02:54:08 GMT
I'm pleased to announce the availability of ObjectThread beta 0.1.0 -- a
C++ threading toolkit for Linux & Windows released under the LGPL.
ObjectThread is a small toolkit dedicated to providing simple but
powerful threading facilities. The current version includes the
following classes (among others):
AutoPtr (Thread-safe reference counted/auto delete
pointer)
Barrier (With auto-execute action)
CancelState/Type Guards
Condition
Custom exceptions
Messenger (Used to send messages with notifiers - see
below)
Mutex & auto-release Guard
Notifier (Event based wakeup mechanism)
CallbackNotifier
SeqNotifier
SemNotifier
StandardNotifier
FDNotifier (Linux/UNIX only)
EventNotifier (Win32 only)
Publisher (Very useful Publisher/Subscriber class)
RWLock & auto-release Guard
Semaphore
Sequence
LockedQueue (Customized/synchronized version of
std::queue)
LockedStack (Customized/synchronized version of
std::stack)
LockedPrioQueue (Customized/synchronized version of
std::priority_queue)
Thread (Base class of all threads)
ThreadPool
Timer
This toolkit was designed to be a simple yet extensible framework -- it
is easy to add your own notifier, sequence, etc and they will all fit
into the library seamlessly.
The 'Tests' directory contains a set of unit tests that also serve as
useful examples for learning the toolkit.
ObjectThread is currently tested on the following systems/compilers:
Linux:
gcc-2.95.1+ (Makefile included)
Win32 (Win 98/NT 4.0):
MSVC++ 5.0 (.dsw included),
Borland C++ 5.02 (.ide included)
On Win32, ObjectThread uses a pthreads-like virtual machine to implement
thread interaction and cancellation (async cancellation works on Win32,
also).
OT can now be found on sourceforge. To download it, go to
http://sourceforge.net and click on "New Releases" in the upper
left-hand corner. It has just been released, so it should be near the
top of the list. The latest release is beta-0.1.0.
Build and installation instructions are included in the README file.
If you have any questions, requests, comments, suggestions, feel free to
email me at jnye@nbnet_nb_ca (replace '_' with '.').
Cheerio,
Jason
------------------------------
From: [EMAIL PROTECTED]
Subject: 2F5F1484 Diagramming software for Linux
Date: Sun,04 Jun 2000 22:19:13+2000
Embrace the new Standard in Computer Aided design - Linux CAD !
LinuxCAD is an original independently designed program runs on new
advanced Linux Operating system.
Complex design and graphics are created with ease and elegance.
Linux CAD erases difficulties of Microsoft Visio and goes head to
head with AutoCAD.
Our improved introductory packageis only $99.00 and we provide
and custom design symbol libraries appropriate for your projects.
www. l i n u x c a d .com
www. s o f t w a r e f o r g e .com
------------------------------
From: Patrice Belleville <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable
Subject: Re: ALSA drivers with kernel version 2.4.0-test1
Date: 04 Jun 2000 21:27:31 -0700
[EMAIL PROTECTED] (David Efflandt) writes:
> On 03 Jun 2000 22:17:39 -0700, Patrice Belleville <[EMAIL PROTECTED]> wrote:
> >
> > I have been trying to install the ALSA drivers on my Sony
> >VAIO-PCGF 430, running kernel version 2.4.0-test1 (which has a Yamaha
> >DS-XG soundcard), with no success.
> The current ALSA 0.5.7 drivers do not even support your sound chip, so I
> am not sure what you are trying to install.
I got version 0.6.0 out of the cvs repository, after seeing a post from
David Vogler who got it to work on his Toshiba Satellite Pro 4270. I think
it was with a 2.2 kernel though. In any case, I copied the relevant
entries he provides from his modules.conf file, and gave it a go.
Unfortunately, I get
Unresolved symbols in /lib/modules/2.4.0-test1/misc/isapnp.o
(there is a similar module that comes with 2.4.0 but it's called isa-pnp.o
instead; hence my thought that there might be some incompatibility with
the kernel), and attempts to start amixer gives me:
The ALSA sound driver was not detected in this system.
even though lsmod tells me the following modules were loaded
Module Size Used by
snd-seq-midi 5828 0 (autoclean) (unused)
snd-seq-oss 34336 0 (autoclean)
snd-seq-midi-event 3420 0 (autoclean) [snd-seq-midi snd-seq-oss]
snd-seq 54196 0 (autoclean) [snd-seq-midi snd-seq-oss
snd-seq-midi-event]
snd-card-ymfpci 4336 0 (autoclean) (unused)
snd-ymfpci 37980 0 (autoclean) [snd-card-ymfpci]
snd-pcm 41304 0 (autoclean) [snd-ymfpci]
snd-ac97-codec 27520 0 (autoclean) [snd-ymfpci]
snd-mixer 31952 0 (autoclean) [snd-ymfpci snd-ac97-codec]
snd-opl3 6920 0 (autoclean) [snd-card-ymfpci]
snd-hwdep 5516 0 (autoclean) [snd-opl3]
snd-timer 13312 2 (autoclean) [snd-seq snd-pcm snd-opl3]
snd-mpu401-uart 3760 0 (autoclean) [snd-card-ymfpci]
snd-rawmidi 13112 0 (autoclean) [snd-seq-midi snd-mpu401-uart]
snd-seq-device 6104 0 (autoclean) [snd-seq-midi snd-seq-oss snd-seq
snd-rawmidi]
snd 54024 1 (autoclean) [snd-seq-midi snd-seq-oss
snd-seq-midi-event snd-seq snd-card-ymfpci snd-ymfpci snd-pcm snd-ac97-codec snd-mixer
snd-opl3 snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
I also get compilation errors with aplay (which I won't include here).
Thanks for the reply,
Patrice
--
**------------------------------------------------------------------------
** Patrice Belleville ([EMAIL PROTECTED]) (604) 822-9870
** Instructor and Departmental advisor, Department of Computer Science
**------------------------------------------------------------------------
------------------------------
From: "Jean-Claude MEILLAND" <[EMAIL PROTECTED]>
Subject: Samba strange behaviour.
Date: Mon, 05 Jun 2000 06:30:10 GMT
Hello,
With the default configuration of Samba on a Redhat 6.2 no problem : At boot
up the smb and nmb services start and stay alive.
But since I modified my smb.conf in order to configure it like I wanted
there's a problem : At boot the nmb and smb services start normally but
immediatly nmb get's a SIGKILL and stops. I have to start the service
manually for it to work. After what It works perfectly (just like I wanted
it to work).
The log files say that smbd can't open the file /etc/smbpasswd and therfore
can't open the samba password database. But I checked the file /etc/passwd.
He exists and contains the correct entries.
Hope someone can help.
Anyway Thanks.
J.Claude.
mailto:[EMAIL PROTECTED]
For help here is my nmb log file message:
[2000/06/04 10:02:56, 1] nmbd/nmbd.c:main(747)
Netbios nameserver version 2.0.6 started.
Copyright Andrew Tridgell 1994-1998
[2000/06/04 10:02:56, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(294)
become_domain_master_browser_bcast:
Attempting to become domain master browser on workgroup LINUX_CHOPIN on
subnet 212.208.98.102
[2000/06/04 10:02:56, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(308)
become_domain_master_browser_bcast: querying subnet 212.208.98.102 for
domain master browser on workgroup LINUX_CHOPIN
[2000/06/04 10:03:04, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_stage2(118)
*****
Samba server CHOPIN is now a domain master browser for workgroup
LINUX_CHOPIN on subnet 212.208.98.102
*****
[2000/06/04 10:03:19, 0]
nmbd/nmbd_become_lmb.c:become_local_master_stage2(406)
*****
Samba name server CHOPIN is now a local master browser for workgroup
LINUX_CHOPIN on subnet 212.208.98.102
*****
[2000/06/04 10:15:03, 0] nmbd/nmbd.c:sig_term(67)
Got SIGTERM: going down...
Here is my smb log file:
[2000/06/04 10:02:56, 1] smbd/server.c:main(643)
smbd version 2.0.6 started.
Copyright Andrew Tridgell 1992-1998
[2000/06/04 10:04:11, 0] passdb/smbpass.c:startsmbfilepwent(50)
startsmbfilepwent: unable to open file /etc/smbpasswd
[2000/06/04 10:04:11, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
unable to open smb password database.
[2000/06/04 10:04:11, 0] passdb/smbpass.c:startsmbfilepwent(50)
startsmbfilepwent: unable to open file /etc/smbpasswd
[2000/06/04 10:04:11, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
unable to open smb password database.
And here is my smb.conf:
[global]
workgroup = aworkgroup
guest account = nobody
keep alive = 30
os level = 2
security = user
printing = bsd
printcap name = /etc/printcap
load printers = no
browseable = yes
allow hosts = aprivateipadress
user = @usergroup
; Please uncomment the following entry and replace the
; ip number and netmask with the correct numbers for
; your ethernet interface.
interfaces = aprivateipadress/255.255.255.0
; If you want Samba to act as a wins server, please set
; 'wins support = yes'
wins support = no
unix password sync = no
encrypt passwords = yes
map to guest = never
password level = 0
null passwords = yes
preferred master = yes
domain master = yes
dead time = 0
debug level = 0
comment = acomment
; If you want Samba to use an existing wins server,
; please uncomment the following line and replace
; the dummy with the wins server's ip number.
; wins server = 192.168.1.1
[homes]
comment = acomment
browseable = yes
read only = no
create mode = 0750
available = yes
public = yes
writable = yes
user = a b c d
only user = no
[home]
path = /home/
read only = yes
available = yes
browseable = yes
public = yes
guest only = no
writable = no
user = a b c d
only user = no
allow hosts = aprivateipadress
; The following share gives all users access to the Server's CD drive,
; assuming it is mounted under /cd. To enable this share, please remove
; the semicolons before the lines
;
[cdrom]
comment = acomment
path = /mnt/cdrom
read only = yes
locking = no
------------------------------
From: "Quiney, Philip [HAL02:HH00:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: Can't make xconfig
Date: Mon, 05 Jun 2000 08:17:50 +0100
James wrote:
>
> I have recently been trying to configure and recompile the kernel in
> mandrake 7.0.
> Every tutorial I read tells me to go to;
> /usr/src/linux
>
> and type;
> make xconfig or
> make menu config.
The target is menuconfig (ie no spaces)
>
> everytime I do this I get an error message saying;
>
> "MAKE no target defined"
>
> or something like that. I am pretty sure I have the kernel source in that
> directory so what should I do?
>
Doing a directory listing of /usr/src/linux would be helpful.... Note
that /usr/src/linux is usually a symbolic link to another directory
containing the kernel version tree:
ls -l /usr/src/
lrwxrwxrwx 1 root root 29 May 15 08:56 linux ->
linux-2.3.99-pre7
As mandrake is rpm based then we can check the installation of kernel
source...
[root@phary0em /root]# rpm -qa|grep kernel
kernel-headers-2.2.12-20
kernel-2.2.12-20
kernel-doc-2.2.12-20
kernel-ibcs-2.2.12-20
kernel-pcmcia-cs-2.2.12-20
kernel-smp-2.2.12-20
kernel-source-2.2.12-20
kernel-utils-2.2.12-20
kernelcfg-0.5-5
Of interest are the versions of kernel-source and kernel-headers. This
is RedHat 6.0 (which is kernel 2.2.12) the Mandrake names may be
different. If not present then they are not installed. Note that this
machine has had development kernel 2.3.99pre7 installed from a tarball -
rpm still believes the installed kernel source as being 2.2.12.
IIRC kernel-source & kernel-headers are the only 'source' rpms on the
binary install CD. Mount the CD & install with
[root@phary0em /root]# rpm -i kernel-headers<version>.rpm
kernel-source<version>.rpm
assuming those are the names (TAB file name completion is your friend
;-))
HTH
Regards
Phil Q
--
Phil Quiney CSIP Demonstrator
[EMAIL PROTECTED] Nortel Networks,
Telephone: +44 (1279) 402363 London Rd, Harlow,
Fax: +44 (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: Michel Talon <[EMAIL PROTECTED]>
Subject: Re: Stupid but annoying problem
Date: Fri, 2 Jun 2000 18:08:49 +0200
Robichaud, Jean-Philippe [BAN:6S33:EXCH] <[EMAIL PROTECTED]> wrote:
> Hi
> This is not a developpement problem directly but I gives me a hard
> developping on my linux box. My linux box is in a lab somewhere else in
> the building and I work on it by doing telnet. Each time I wish to
> telnet the linux box, it takes about 50-70 second before I have the
> login prompt. Does anybody know what is wrong ? If I telnet another
> machine, i just work great...
Frequently this is due to DNS misconfigurations. Try to check that you can
resolve correctly the name of your machine and the distant one, and reverse
resolve the IP numbers. Perhaps the name of other machine is in /etc/hosts
but not this one, etc.
> Thanks you for helping me because as I do developpement in the kernel,
> I often have to reboot and to relogin. This will help me not taking a
> walk to the lab ~10 times a day !!!
> --
> Jean-Philippe Robichaud
> [EMAIL PROTECTED]
> (514) 818-7750
> St-Laurent, Quebec, Canada
--
Michel Talon
------------------------------
From: Thierry BUCCO <[EMAIL PROTECTED]>
Subject: Best video capture card for Linux...
Date: Mon, 05 Jun 2000 00:57:05 -0700
Hi,
What is the best pci video capture card for linux, (chip, video4linux
compatible, and good quality).
Without TV reception.
Thanks a lot.
thierry
------------------------------
** 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
******************************