Fedora :: Does Pthread-stubs Exists As A Package
Dec 16, 2009
I have searched and found nothing.... I'm trying to install the DRI driver to make my RV200 ATI card work with 2d and 3d features. I am new to this linux world but I have probably read now 4 hours of installation procedures without fully knowing what I'm really doing.... (Some instructions assume too much from the knowledge of the user I think)... So I'm at the step where I,m building the libdrm (Step 1.3 from this procedure [URL] and I get the following error: checking for PTHREADSTUBS... configure: error: Package requirements (pthread-stubs) were not met: No package 'pthread-stubs' found
Now yum tells me that no package exists with such name. I have searched on google quite a bit and I really don<t know where to start digging at this point.
View 7 Replies
ADVERTISEMENT
Aug 13, 2010
I am running Ubuntu 9.04 at work and have a sudden need to install a newer version of python-support (> 0.9.0) than is currently available in the repo (0.8.7) for my Ubuntu version. Upgrading to 9.10 is not an option as we are planning to jump to 10.04 LTS in the next few months and I am unable (unwilling) to mess with a complete upgrade prior. Is it possible for me to upgrade to the newest version of python-support - or is this package OS version specific? Assuming it's possible, how might I go about the process of upgrading?
View 2 Replies
View Related
Apr 9, 2010
I am trying to install the apr port on freeBSD and I get the following error:
Code:
===> Checking if devel/apr already installed
===> An older version of devel/apr is already installed (apr-db42-1.2.8_2)
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
[code]....
View 2 Replies
View Related
Jan 7, 2010
Where can i download pthread libraries for fedora12 pc kernel version 2.6.31.5-127.fc.12.i686?
View 3 Replies
View Related
Jan 17, 2009
I was transferring some files from my laptop (running FC6) to a server at my work (don't know what kind) with "scp -rpC" and it stalled, don't know why.
Now when I try to delete the files from the server so I can start again I get the following error message
Code:
rm -r Single_injections/
rm: cannot remove directory `Single_injections/195320/400mA/010': File exists
rm: cannot remove directory `Single_injections/195320/400mA': File exists
rm: cannot remove directory `Single_injections/195320': File exists
rm: cannot remove directory `Single_injections': File exists
[Code].....
View 6 Replies
View Related
Mar 11, 2009
After booting I noticed that sometimes nmb was not running. The command # service nmb status gives nmbd dead but pid file exists The timestamp of the pid file suggests that at the last shutdown the pid file was not removed, and I guess this prevented nmb to start properly during booting (Although during booting the messages is [OK]).
If I shut down nmb manually, everything is fine. I checked the log in /var/log/samba/log.nmbd and it doesn't show any error. As mentioned, this occurs only occasionally, and I have no idea what may be causing this.
View 1 Replies
View Related
May 4, 2011
I (again) ran into trouble since two months i was trying out fedora lovelock "nightly build" in a virtualbox my host is Ubuntu 11.04 (previously 10.10 i upgraded yesterday) (had worked fine .. just was slow because i alloted only 512 MB ram) ... now i uninstalled virtualbox and deleted .virtualbox in home folder, but i couldn't recover my 8 GB space when i installed i made virtual disk fixed storage (my mistake i guess!! ) ) i don't know much about it either .. just wanted to try out fedora 15 so experimented it using virtuallbox ...
i'm running out of disk space (don't have bucks to purchase external hard disk .. otherwise i wouldn't have cared .. also don't have time to do a reinstallation of ubuntu/some other os (may be fedora) on my laptop ...
i just got 24 GB left .. i intend to store a few more movies and songs .. i would run out of disk space fairly quickly ... 8GB would be buffer if i get it back ...
View 3 Replies
View Related
May 22, 2010
I wrote some code in c, using pthread (I configured the linker and compiler in eclipse IDE first).
Code: #include <pthread.h>
#include "starter.h"
#include "UI.h"
Page* MM;
[Code]....
View 6 Replies
View Related
Jan 1, 2011
I have faced a problem with my code (a small tcp server). After the thread returns, the memory not decreases, but when a new connection is made, memory not increases and the new connection initialize a new thread with a same thread id of the previous thread. When two connections are made at same time, two thread ids are created and when the respective threads returns the memory not decreases. The Valgrind indicates that not memory leak occurs, the pointers are released. Indeed, more memory are allocate when new thread id is created. i used gcc and debian.
[Code]....
View 1 Replies
View Related
Mar 12, 2011
I have created a pthread, and installed a signal handler inside that, same way as we do in main( ) function. The thread's signal handler is a separate function. Surprisingly, it is not working, that is the thread's signal handler is not able to catch signals. Here is the code:
Code: #include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <signal.h>
typedef struct data
[Code]...
View 1 Replies
View Related
Apr 19, 2010
I have an application that has pretty large memory profile. The general program flow is as follows:
Code:
main:
do 10 times:
[code]....
View 9 Replies
View Related
Mar 31, 2010
I would like to know what is the difference between -lpthread, -pthread, -lthread? Sometimes, I have been used -lpthread as a option of gcc. but I don't understand anything about the others.
View 2 Replies
View Related
Mar 10, 2011
im writing a cross-platform software (linux/solaris/mac/bsd) so i was wondering, how portable is pthread library? out of 10 linux distros, how many will have it by default? and does it exists on mac/solaris/bsd by default? or user will have to install it?
View 6 Replies
View Related
Dec 14, 2010
I want to suspend/resume a thread. The library I am using is pthread.h.I am also running my application on linux.Is there any function in pthread. let me suspend a thread temporary?I have read a document in which it was mentioned thatthread does not support suspend/resume
View 4 Replies
View Related
Aug 20, 2010
I'm trying to figure out how pthreads are mapped from the compiler to the Linux kernel. The pthread prototypes are found in a compiler header file (pthread.h), yet the kernel would be responsible for scheduling the threads. So, how does the compiler resolve the pthread symbols at compile time?
View 1 Replies
View Related
Aug 27, 2010
Can anyone please let me know of a link where I can find the source code for Linux pthread library?
View 2 Replies
View Related
Jun 15, 2010
I am wondering if pthread could make that a single thread keeps the "mutex" all the time if the time it remains unlocked is very small.
thread1
{
while (1)
{
lock; do_task(); unlock();
[code]...
I experiment the thread2 never getting access to the mutex and never printing the nice message. I would expect that once thread2 calls "lock", it would get the mutex as soon as thread1 calls unlock() but it does not seem to be the case. If I add a sleep of some microseconds (100) in thread1 after unlocking the mutex, it solves the problem.
Does anyone know if this behaviour is normal? Is there a way to configure my mutex so that thread2 receives it when unlocked?I use
pthread_mutexattr_settype(&att, PTHREAD_MUTEX_RECURSIVE_NP);
pthread_mutex_init(&handle, &att);
to create my mutex. I am running ubuntu 9.04
View 3 Replies
View Related
Jan 12, 2011
I am working on a large program in C to run on Puppy Linux. I have multiple pthreads running. I want to be able to set the pthread SCHED_POLICY and priority in my program but I want a user to be able to run the program without root privilege.
Using a sticky bit and root ownership gives the user too much power because they will be able to write and compile their own scripts. Is there a way to use 'sudo' when I set the thread parameters from my program or something like this?
View 1 Replies
View Related
Oct 21, 2010
I am attempting to write a program using Festival as the TTS output. It is a weather system, so
1) takes raw data from sensors on the input.
2) converts it into a text message
3) let festival take the message and turn it into audio that I can then route out to the telephone system.
Here is my main block of code using festival:
[Code]...
I imagine some of my problem is being a C/C++ newbie, but is there anybody out there able to give me some hints? Maybe there is a different or better way to fork that process. My plan is to keep updating the buffer whose pointer is passed to the function process() with my serial port processing program in the main loop. I can protect it with a mutex during the festival_say_text() function, but otherwise it will be accessible.
View 1 Replies
View Related
Mar 11, 2011
I have gone thorugh some documents about pthread (NTPL ) in linux 2.6 kernel. As per that linux uses 1: 1 threading model and for each user level thread there is kernel level thread. Pthread_create uses clone system call to create a LWP and the kernel could treat that as a LWP and do scheduling and all .( different from linuxthread). My question is what's meant by there is kernel level thread for each pthread created. Can I see the kernel level thread if I call pthread_create using ps .
What exactly meant by 1:1 .I mean for each user level thread there is kernel level thread . If I make a system call from a thread does the OS services that action via kernel thread ( created using kernel_thread () or some other way ) internally ..
View 1 Replies
View Related
Sep 4, 2010
I have to compute prime numbers with threads in C. So I choose the algorithm "Sieve of Eratosthenes" and I tried to create 2 threads, but I don't know how to optimize my computing function with threads I beg for help. This is my function:
[Code]...
but it seems like the both of the threads are calculating the same function twice? Is it possible to be optimized or not?
View 7 Replies
View Related
Apr 19, 2010
I'm building a simple(?) socket server using threads to serve up a few requests. The spec is such that I have to listen to three ports at once, so I decided to use pthread to create three separate threads that would wait for connections, then spawn new threads to handle them.
The problem is that when I do this, for some reason the program never enters the wait loop and instead terminates (All three threads did get created since the messages get printed properly.) It gets to the line which prints "???", but not the line after the accept() call.I don't see an open port when I check for one either so I'm 99% sure they're terminating.Basically I have a main() method which has three calls to pthread_create, which should result in three threads being run that all wait for connections (listenOnPort). After each thread creation I print some info to make sure it's actually being created.
By the way, when I just run listenOnPortwithout threading, the server appears to enter the loop correctly and seems to be waiting for requests. It's only when I run the functions as threads that the problem seems to happen.The source is attached below. Any help will be appreciated. Much of the code is borrowed from a website (I can't post it because I am new here.) You need not worry about the handler_ methods because those are just methods that are run by the threads themselves.
Also--the original source was in C and I changed it to C++. Should I just use C?
server.h Code: /*
* server.h
[code]....
View 1 Replies
View Related
Jul 26, 2010
i have an application that launches several pthreads, i know that the default size used by Linux is 8Mb for each pthread. However i would like to optimize the total memory usage by my application by decreasing the default stack size of each pthread to the needed resources. My questions:
- Are there any rules to set the pthread stack size.
- How to compute the memory needed by each thread.
- Is the malloc call inside a thread counted from the stack size of the same pthread?
View 2 Replies
View Related
Mar 15, 2009
Sometimes i have on some magazines or Internet Zip packages that are the answer of what i am looking for.
Wich tool and how can i do it? c Well, i am in position to say that i had downloaded from Internet or located the package in the Cd or DVD that comes with the magazine.
But now comes the big question. How can i put this package ( install) on my distro ???
Do i have to be a normal user or should it be root or su (superuser) ?
The packages that come with the distro is easy, because i select them and everything is done
As i told before, maybe this is a silly question, but i simple don't know how to install them and i need some of them to leave MS for good.
View 13 Replies
View Related
Feb 6, 2010
Fedora 12 64bit. Is there an easy and reliable way to install *.tar.gz package after extraction? Instead of going through ./configure etc.
View 6 Replies
View Related
May 3, 2011
I've been trying to understand pthread in C a little better. So I made a simple program that takes in a string from the command line and creates a thread to print the string. I've looked online and copied the basic concepts but there are something things I'm confused about. The programs works just fine, but I have questions. Here's what I have so far.
[Code]....
One thing I'd like to know is why the 3rd argument in the pthread_create function which is my SendMessage function needs to be typecasted to a void pointer and then send the address of the function. Also as for the 4th argument, I would see typecasting to void pointer in some of the pthread examples I saw online, but in my case I'm passing a char pointer, would this be correct? In which case would I ever want to pass a void pointer?
Do I need a pthread_exit(NULL) in my main and in the SendMessage function? If so, why? I added the sleep() function so that I could let the pthread_exit function in my SendMessage function execute first. I simply saw that the online examples on pthread had pthread_exit() in both locations.
View 6 Replies
View Related
May 24, 2010
Today I was using Gchempaint (part of Gnome Chemistry Tools) and found that the F12 version fails miserably to correctly export H to xyz. So I decided to install the latest version I found (0.11). There are, however, some problems I must sort out during compilation.
Apparently it does not see my 'cairo' installation and so I get the following error message:
Code:
checking for cairo... configure: error: Package requirements (cairo >= 1.6.0) were not met: No package 'cairo' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.Alternatively, you may set the environment variables cairo_CFLAGS and cairo_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
View 2 Replies
View Related
Dec 5, 2010
i'm getting this error after trying to install any .rmp package. I've tried
sudo zypper rr 2
sudo zypper rr1
sudo zypper clean -a
[code]....
View 1 Replies
View Related
Aug 19, 2010
I downloaded the latest version Ubuntu from ubuntu.com and I am trying to install Oracle XE from the below link but for the first step couldn't find "deb" command, is the command replaced[URL]
View 3 Replies
View Related
Apr 1, 2011
MySQL used to have a command named 'perror' to show the meaning of error codes. It seems that this command no longer exists on 11.2 and 11.3. Did it change the name?
View 2 Replies
View Related