Apps :: Pthreads
Hi Everyone,
I want to reexplore some of the pthread stuff I started programming years ago on Red Hat as a novice. I seem to recall there may have been an additional file that I had to introduce into the Linux setup on RH9 in order to be able to set up the compiler to deal with multithreaded progs. (But maybe not; I don't entirely recall.)
My first attempts at using DSL and TCC have run up against the following command line response:
---
include file 'pthread.h' not found
---
Sure enuff, I went into /usr/include and there were only about 4 items in that directory, none of which were pthread.h.
My initial confusion arises from understanding whether libc6 (or glibc) even has the capability to deal with pthreads. Or has it in various distros and maybe not others, or what (?). I thought libc6 has pthread in it, and DSL uses libc6, therefore DSL can fulfill TCC's needs along those lines.
Pardon my lack of vocabulary and technical organization recall where all this is concerned. It's been several years since I was playing around with *NIX, and I can barely turn it on and off at the moment.
Am I missing a pthread.h in DSL 3.0.1? I am booting from an ISO'd CD. Everything else looks good, if a little bare-bones :-) (just _kidding_). I like the _speed_ with which this distribution boots.
As a novice, what do I need to satisfy the compiler of the presence of pthread capability? Is there a pthread.h on the internet somewhere I can download? Do I need more? Is the libc6 otherwise sufficient for my needs?
As a back up in case I can't get pthreads up and going on DSL, I just downloaded KNOPPIX; I don't want to go there if I can help it, as I suspect the load time will increase somewhat. It would also represent a defeat of sorts.
Thank you for any assistance that you can provide.
Afaik, tcc doesn't come with any header files... you could try getting one of those gcc* packages.
hats, mik, thank you both for responding to my posts.
Okay, so the other day, I burned one of the latest ISOs onto a CD. It works great, I like the formal portrait (the one in the center of the desktop), and the screen resolution isn't displaying all oversized like it does with KNOPPIX (which gives me only 640 x 480, and the nagging suspicion it's also trying to create a partition on my HDD).
So far so good. (I still can't get on the internet, but I'll save that for another thread.)
What I need to do is somehow take the glibc-linuxthreads-2.5.tar.bz2 and the gcc-4.1.1.tar.bz2 which I downloaded earlier today and--basically--do something with them.
If I'm going to stay with the CD booted DSL OS, I can't very well use the HDD. My question then, among others, is: Am I limited to MyDSL-accomodatable stuff? Meaning, in so many words, could I just go to a GNU site and download the things I just mentioned and somehow meld them into my DSL distribution? Are there only a certain number of DSL-Seal-of-Approval packages I can play with? Only things recognizable by MyDSL? Or can any old Linux package be added into my distro (like especially the 2 that I downloaded, mentioned above)?
Also I am just getting back to this OS after several years (and I was never that familiar with nix), so I'm likely not going to be aware or remember simple thins about package add-ins, like how to do it.
Any information/help with this is appreciated. Thanks again.
It depends on what kind of packages those are... (sources? precompiled?)
I'd just suggest for you to try the gcc packages in mydsl first.
I'm guessing DSL has pthread capability, since the kernel is based off knoppix's, and I seem to remember something with wine and pthreads... Anyhow, DSL is smp-enabled by default and I wouldn't be surprised if it does have it.
(Afterward I guess I need a way to sew the image back together so I can burn it to CD.) But before that, first: How do I break open the dsl-3.0.1 image, so that I can add a package to it?
Thank you again.
Next Page...
original here.