Debian :: Posix Related During Compilation?
Sep 4, 2011
I am trying to compile splasutis in my debian wheezy. ./configure run well, but during make I get the following error
make --silent all-recursive
Making all in libs
CONF libjpeg.a
[code]....
View 7 Replies
ADVERTISEMENT
Feb 17, 2010
I have created two threads:
Thread 1 and thread 2
In the main thread, i have put up a timer which generates a signal periodically when it expires, which reults in execution going to signal catcher function.when this function is invoked, under certain condition it goes to thread 1 and under another condition it goes to thread 2. The problem lies here that when it goes to thread2,i have a loop to process but it doesnt come out of the loop and hence from thread2, even though timer has expired.
View 2 Replies
View Related
Apr 3, 2010
All my LC environment variables are currently set to POSIX at boot, though I can't find the startup script that does this. I've grepped through /etc/rcS.d and /etc/rc2.d but no luck. In /etc/default/locale, LANG is set to en_GB.UTF-8, which is my preferred locale. But this doesn't stop all the LC's being set to POSIX. Consequently, my dates follow the American convention, which I find hard to read.
I tried resetting with update-locale LC_TIME=en_GB.UTF-8. This changed all the locales to en_GB but only for the session. When I rebooted, everything went back to POSIX. The only change is that en_GB.utf-8 is now in the /etc/default/locale file as the value of LC_TIME as well as LANG.
View 2 Replies
View Related
May 2, 2010
how, and if, I enable 3Dnow, and other CPU related features?
I'm not having any problems or anything to that effect. I am only curious. Is this something that's automatically done? Is this something I must do during compile and install of applications?
haunted@haunted-desktop:~$ sudo grep flags /proc/cpuinfo
flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
If this is something I must enable manually per application, then for example, if I wanted it enabled for FlightGear, how would I go about doing that?
View 4 Replies
View Related
Jan 26, 2011
I just blindly install 'java' in GNU/Linux Debian SID -- so I could use it as a plugin for iceweasel -- Unfortunately, things didn't work as expected. I was used to Debian's APT to take care of things for me as it had done for more years than I could remember. (Being a desktop user/programmer and a beginner system network admin). I want a clean install of java plugin for iceweasel. So I want to remove completely all java related packages --
How do I know which is which and if they are safe to remove without affecting any other part of the system? Now, to install -- what do I need to install in order for iceweasel to have the Java plugin and let java work as it should? I prefer from the Debian package. But if it doesn't work, I'll accept JRE from the java site and install them myself.
View 8 Replies
View Related
Apr 10, 2011
I have squeeze installed on an AMD machine. i compiled the kernel based on the config file in the /boot.
it was surprisingly much time:
This was the first time using AMD machine, i had experience with some P4 machine to have much shorter kernel compilation time.
The machine:
what do i do in the wrong way? or is it the "feature" of the this old AMD?
View 7 Replies
View Related
Jan 11, 2011
I'm running debian lenny, 2.6.26.4 kernel.
I get the error "could not open obex://some_long_MAC_address...please do something..." when I try to browse my samsung using bluetooth.
My phone's service list indicates all but one service item(modem) are present. I can send stuff to it but not the other way round. Someone told me that debian distros have bluetooth problems.
Also, when compiling kernel 2.6.36.5 and 2.6.37-etc, I get the undisputed error concerning the 'lguest' feature. How do I turn it off?
View 2 Replies
View Related
Oct 29, 2010
how to display the modules related to my wifi card, using lsmod all the kernel modules are displayed but I would like to display just the related to my wifi, is there a way to do this?
View 2 Replies
View Related
Apr 2, 2010
I follow a french tutorial to install the nvidia pilots. So, i did :
$ su
# apt-get install module-assistant
# m-a prepare
# m-a clean nvidia-kernel
# m-a a-i -i nvidia-kernel-source
[Code]....
View 6 Replies
View Related
Aug 13, 2011
VirtualBox is awesome tool for experiment and learning Linux.On the Linux guest OS, I installed standard system without Xorg.i expected it remove all the packages that come along with gnome-terminal previously.Only gnome-terminal was removed, 750kB free space. Now the system have 149MB packages as waste data IMHO.It doesn't look right to me.
View 4 Replies
View Related
Nov 27, 2010
I'm having this checking for mozilla-js >= 1.9.2 ... configure: error: mozilla-js >= 1.9.2 is required Error during phase configure of gjs: Error running ./autogen.sh --prefix /home/kornicameister/gnome-shell/install --libdir '/home/kornicameister/gnome-shell/install/lib64' --disable-static --disable-gtk-doc *** [16/32]
View 1 Replies
View Related
Mar 27, 2016
I've got this weird problem: when I reboot my Debian 8.3 server, I have to run through the crypto unlocking processes for my encrypted volumes a few times before I actually get to a login screen. The operation times out 85% of the time, leaving me to reboot and try over and over until the system is happy.
Here's my partitioning setup (manually partitioned at install):
/boot: 500 MB, EXT2, nodev, nosuid, noexec
/tmp: 2 GB, EXT2, AES-256/xts-plain64 with RANDOM KEY
swap: 2.5 GB, AES-256/xts-plain 64 with RANDOM KEY
/: 35 GB, EXT4, AES-256/xts-plain 64 with PASSPHRASE
/var: 35 GB, EXT4, AES-256/xts-plain 64 with PASSPHRASE
/home: 45 GB, EXT4, AES-256/xts-plain 64 with PASSPHRASE
Here's the output from journalctl -b -p 3:
Code: Select allDate and time | server name | systemd[1]: Timed out waiting for device dev-sda5.device
Date and time | server name | systemd[1]: Dependency failed for Cryptography Setup for sda5_crypt
Date and time | server name | systemd[1]: Dependency failed for Encrypted Volumes
Date and time | server name | systemd[1]: Dependency failed for dev-mapper-sda5_crypt.device
Date and time | server name | systemd[1]: Dependency failed for /tmp
[Code] ....
I had the same problem in previous builds where I chose Twofish instead of AES, and I was hoping that the timeouts would be fixed by switching to AES as my CPU has the AES instruction set. Obviously that didn't make a damn bit of difference.
What am I doing wrong, or what should I change in my setup? The encryption is a requirement. Could the problem be caused by something as stupid as using a RANDOM KEY instead of a PASSPHRASE on /tmp and swap?
Debian 8.3 as OS version.
View 1 Replies
View Related
Jan 29, 2010
I found out from here that it is not enable URL...I ran the command mount | grep "shm" and got.none on /dev/shm type tmpfs (rw,nosuid,nodev)So how do I enable it?It is need for my ATI graphic card.
View 2 Replies
View Related
Feb 3, 2010
i'm trying to understand the POSIX threads and i can't understand when does the thread start: does it start when i do
pthread_create()
or when i do
pthread_join()
or maybe i'm missing something. i do understand that pthread_join() causes the calling thread to wait till the called thread is finished.
View 2 Replies
View Related
Oct 14, 2010
Is it possible to add support for POSIX Trace to my Ubuntu?
# getconf _POSIX_VERSION
200809
# getconf _POSIX_TRACE
undefined
View 2 Replies
View Related
Oct 2, 2010
How to set you distro to be a POSIX compliant?
View 3 Replies
View Related
Mar 27, 2010
use phpldapadmin can add ou,but can not add posix group.following is software version
[root@localhost config]# rpm -qa | egrep '(ldap|db4)'
openldap-devel-2.3.27-8.el5_1.3
db4-utils-4.3.29-9.fc6
[code]....
View 1 Replies
View Related
Mar 15, 2011
I have 2 threads and both of them are deleting memory at the end nedded by both.
My problem is that maybe it can happen that a thread start and finish before the other one starts and so it deletes the memory nedded by the other thread. How can I synchronize them so that this can't happend.
As a design my threads look like this:
Code:
The other thread looks the same, but this isn't unoff to stop thread1 to finish before thread2 starts.
View 4 Replies
View Related
Nov 15, 2010
It is known that binaries with the SetUID bit enabled are a threat for the system.I saw on this ArchLinux wiki[URL].tead_Of_Setuida way to limit the use of SetUID bit thanks to POSIX capabilities.It looks very interesting.Does anyone of you used it already?Is it a burden for the system afterwards (like binaries not working, needing to be fixed); or is it seamless
View 3 Replies
View Related
Apr 6, 2011
I've implemented a program URL... which reads digital IF data from a radio receiver through a named pipe, measures power levels, and sends the result to stdout. The program is interactive; there is a thread that reads from stdin to watch for commands, a thread that constantly either reads data from the named pipe or throws data away, and an array of processing threads. The program uses GTK+extra to plot the signals. The IF data stream bandwidth exists at the limits of today's technology (is very very fast).
Problem Statement:The program works fine with a few bugs. I've learned since I've made it that using global state variables to coordinate threads isn't a good way of doing it. I also only had knowledge of mutexes and polled the state variable instead of using other methods.My reimplementation will use the following:
- One "Stdin Command Monitoring" thread
- One "Get data from named pipe" thread
- One post-processor thread
- N Processing threads
All threads are alive during the life of main()There are N buffers. Data will come in from the named pipe, and the "Get data" thread will write the data to an "available" buffer. When the buffer is full it will be marked as "full". There will be N processing threads, one for each buffer. When a processing threads' buffer is full, it will process the buffer and save the result to a final buffer. At the end of a number of averages, the post-processor thread will perform a final process on the final buffer and send the results to stdout.
View 2 Replies
View Related
Apr 15, 2011
I have a pthread waiting forever on a POSIX message queue and then call mq_close and mq_unlink on the POSIX message queue. I've found that the pthread never wakes up from it's call to mq_receive and remains blocked indefinitely. Is there a way to wakeup all pthreads blocked on a POSIX message queue after calling mq_close/mq_unlink? The goal is to include error handling during message queue deletion to avoid leaving any pthreads blocked forever.
View 2 Replies
View Related
Mar 15, 2010
I want to add some users to multiple groups. syntax of the file to pass to ldapadd? or would I use lapmodify? Does one add/modify a user record to specify the groups that user is a member of? Or does one add/modify each group record to specify which users are members?
View 1 Replies
View Related
Apr 12, 2011
I would like to know can we post more than one thread at a time.I have code like below
Code:
#include <stdio.h>
#include <unistd.h>
[code]...
View 2 Replies
View Related
May 26, 2010
I'm in the process of writing a program that is a server- it will accept connections and stuff, and spawn a child process for each. However, i've run into a small problem. I do NOT want to bother with keeping track of the processes unless i need to. So, i set SA_NOCLDWAIT (#ifdef) on a SIG_IGN to the SIGCHLD handler through sigaction interface. The standard says that it the kernel will then keep track of reaping zombie processes for me (a HUGE plus). However, upon receiving a SIGINT signal, i want to stop the server from accepting new connections (done), and then wait for there to be no new connections. I was thinking of just putting a loop like so:
Code:
while((wait(NULL) != (pid_t)-1) && errno != ECHILD);
However, I'm not *sure* that this will work, especially with SIGCHLD still ignored. So how can i tell if there are still child processes? I can't find any call like int getnumchld(pid_t proc); (i wish). Plus it would be inefficient to spin on that function anyway. OTOH, i would rather *NOT* have to do the same thing in a loop with a system("ps |...>file"); read(file); etc. either. Is there a way i can portably implement this feature (I was hoping i could run it on linux and the major BSDs, at least).
TO SUM IT UP:
How can i tell if a process has no child processes if i've SIG_IGN'd SA_NOCLDWAIT'd the SIGCHLD? Is there a _reasonably_ portable way to do so? I *don't* want to manually wait for EVERY process. Maybe only those still active at the time of SIGTERM, but that requires keeping track of the number of connections and whether those have terminated...
EDIT: Does anyone know if the above code *would* work, even with SIGCHLD ignored and the kernel cleaning up zombies *for* me? I checked the manpage and it doesn't say much.
EDIT1: Note that all of the processes are in the same process group and session. SO i can find them through this as well. Perhaps even setting the uid/gid and finding all processes run by that group?
EDIT2: i have an idea if the above isn't feasible. If there is no "elegant" way to do it, i could reduce the complexity by sending a SIGUSR1 to the whole process group. Each process would then set a flag telling it to send a SIGUSR1 in reply and send a SIGUSR2 when it is done executing. Then i could keep a count of signals. Maybe that would be *easier*. Or perhaps a count of all child processes and just a termination signal to decrement the counter.
View 2 Replies
View Related
Jan 3, 2011
I want to communicate between two threads, each belonging to a different process. Iam using message queues for this. I use mq_open()call. I created the queues with the same queue name starting with a '/'. But when I open the queue, the queue ID is different in both the process. What should I do so that both the process have the same queue ID?
View 1 Replies
View Related
Jun 14, 2011
In a single main() function,so need signal handling. Use Posix Message Queue IPC mechanism , can ignore the priority and other linked list message,to implement the scenario:
View 1 Replies
View Related
Mar 19, 2011
Can anybody please explain me how source code compilation gives more performance than yum?
View 3 Replies
View Related
Mar 31, 2011
Just I compiled Kernel xxx.3.6 in ubuntu in Virtual Machine for 32 bit. However, I wanted to do it for 64 bit, I dont know what parameter is necessary for 64 bit.
View 9 Replies
View Related
Sep 7, 2010
When compiling a C program i get the following errors.How do i modify the code to remove these warning messages?
1) "test.c", line 614: warning #4212-D: mismatch between character pointer
types "unsigned char *" and "char *"
p_data = m_lines[p_text_idx];
[code]....
View 2 Replies
View Related
Aug 30, 2010
I'm trying to sed out X and Y coordinates from a identify command. I get back from the identify:
Quote:
1015x638+0+0
I need:
Quote:
1015x638
[Code]...
View 7 Replies
View Related