Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Pthreads, library issue?< Next Oldest | Next Newest >
user567 Offline





Group: Members
Posts: 4
Joined: Oct. 2006
Posted: Oct. 15 2006,17:21 QUOTE

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.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 16 2006,01:20 QUOTE

Afaik, tcc doesn't come with any header files... you could try getting one of those gcc* packages.
Back to top
Profile PM 
user567 Offline





Group: Members
Posts: 4
Joined: Oct. 2006
Posted: Oct. 16 2006,03:17 QUOTE

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.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 16 2006,14:53 QUOTE

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.
Back to top
Profile PM 
user567 Offline





Group: Members
Posts: 4
Joined: Oct. 2006
Posted: Oct. 17 2006,02:59 QUOTE

(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.
Back to top
Profile PM 
5 replies since Oct. 15 2006,17:21 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Pthreads

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code