Say I have a.so and b.so.
Can I produce c.so as a single shared library with all the functions exported by a and b, of course resolving all intra-dependencies (i.e. all functions of b.so called by a.so and the other way around)?
I tried
gcc -shared -Wl,soname,c.so -o c.so a.so b.so
but it doesn't work.
Same goes if I archive a.o and ...
I read the tutorial which advises me to run at util-linux package
./configure
I get
configuring util-linux-2.12q
You don't have <scsi/scsi.h>
You don't have <linux/blkpg.h>
You don't have <linux/kd.h>
You have <locale.h>You have <langinfo.h>
You have <sys/user.h>
You have <uuid/uuid.h>
You have <rpcsvc/nfs_prot.h>
You don't have ...
I am writing a program, with a master thread and some worker threads, and I would like to get the signal handling right. My problem is the following :
Master thread starts and do all allocation
Master thread sets a SIGINT signal handler
Master threads start worker threads. worker threads don't need special cleanup, however they can b...
In my case it's "rsyslogd",
I find it's consuming up to 170M memory,which is too much,
and I've checked its configuration file located at /etc/rsyslog.conf
and then checked each file written inside it,
but in vain.
How can I look up the file it's currently manipulating and look inside what's going on?
[root@slvdb2 log]# lsof -p `pi...
The tutorials I've found on WxPython all use examples from Linux, but there seem to be differences in some details.
For example, in Windows a Panel behind the widgets is mandatory to show the background properly. Additionally, some examples that look fine in the tutorials don't work in my computer.
So, do you know what important differ...
I have a capture card that captures SDI video with embedded audio. I have source code for a Linux driver, which I am trying to enhance to add video4linux2 support. My changes are based on the vivi example.
The problem I've come up against is that all the example I can find deal with only video or only audio. Even on the client side, e...
I have a ksh script that has to remain so (some of the programs it runs insist on being ksh). I want to take the input argument "test.txt" and remove the last 4 characters or find and replace the ".txt" with nothing.
In bash I would do
NewVar=${@/.txt/}
This doesn't work in ksh though. How can I get rid of the .txt in ksh? I tried
...
I have Windows Server 2003 and Linux installed on one hard drive [on separate partitions]. My first partition is the linux boot partition, and maintains Grub. When I boot the Windows partition and shutdown W2k3 keeps modifying the MBR to boot directly, and only to the Windows partition. How do I prevent this behavior? I rather like using...
How to split string based on delimiter in bash?
I have this string stored in a variable:
IN="[email protected];[email protected]"
Now I would like to split the strings by ';' delimiter so that I have
ADDR1="[email protected]"
ADDR2="[email protected]"
Don't necessarily need ADDR1, ADDR2 variables, if they are elements of an array that's even better...
For a particular PHP script I'm working on, I'm going to use a system call to the Lynx web browser to convert HTML to plain text and capture the output:
$text = `lynx -dump stackoverflow.com`;
/*
#[1]Stack Overflow [2]RSS
[3]login | [4]about | [5]faq
____________________________
[6]logo homepage
* [7]Questions
* [8]Tags
* [9]Use...
Hi there
if I run
top
on a Linux system, I can see a lot of information about memory usage.
Mem: 15736360k total, 8415332k used, 7321028k free, 174876k buffers
Swap: 0k total, 0k used, 0k free, 2630508k cached
I was wondering: What is the "cached" attribute telling me? Seems like this is not being freed...
Hi all,
I wish to minimize the output of my rpm build procedure.
I run the following command: rpmbuild -ba --quiet "/tmp/yaneeve/kit/linux/rpm_spec"
My system is: Linux yaneeve-lnx-82-5 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux
The rpmbuild version is: RPM version 4.2.3
The %prep section of my rpm s...
Hi all
In an embedded linux environment (customized 2.4.25 on PowerPC) I get the following kernel panic after some hours:
Oops: kernel access of bad area, sig: 11
NIP: C9471C7C XER: 20000000 LR: C0018C74 SP: C0198E20 REGS: c0198d70 TRAP: 0800 Not tainted
MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DEAR: C9876FFF, ESR: 00000000
...
I am using 32 bit RHEL 4.4 on AMD64 based hardware. Here is the output from uname -a
$ uname -a
Linux zulu 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 athlon i386 GNU/Linux
I have 8Gigs of memory installed on this system, OS being 32 bits I would assume that my system will not be able to make use of full 8GB memory. B...
Hi,
When I need to get path to the script file inside script itself I use something like this:
`dirname $0`
that works file until I call the script through sym link to it. In that case above code prints the location of the link instead the original file.
Is there a way to get the path of the original script file, not the link?
Than...
Hi,
I have a file with many lines in it. One of them look like :
set auto_upgrade {1 2 3 4}
The list can contain more numbers.
Now, in a shell script I want to look into this file and find out what is the last number in the list. In the example above, it should find 4. I have a regular expression to find this :
set auto_upgrade {...
Hi,
has anyone tried to embed a Adobes FlashPlayer into a c-written Gtk-Application?
Is it possible? Are there any good points to start?
P.S.: I do not want to embed the WebKit or Gecko renderengine into my application!
...
I like the whole WMI concept, and I could really make use of it under Linux ( in some scripts ). Is there something like that for Linux systems?
...
I need a script to convert a comma seperated csv file to an excel xls file. I tried a python script online but i couldn't install the correct version of python to install a mod/dependency the script required. What is the best solution?
...
How can developers set up their environment paths when working on different SVN branches of the same project so that they don't need to setup their paths each time they switch from one branch to another?
I am a Python developer and I find myself working on different branches of the same project and it's pretty ugly to export each time ...