Hi,
I'm trying to learn glade. autogen.sh failed on my first try; giving the error
below:
./configure: line 4068: syntax error near unexpected token `PACKAGE,'
./configure: line 4068: `PKG_CHECK_MODULES(PACKAGE, $pkg_modules)'
Then i learned that i had to install pkgconfig; i did so; but this time
autogen gave the following error:
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the
pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider
adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a
nonstandard prefix so pkg-config can find them.
How do i have to set PKG_CONFIG_PATH environment variable?
Thanks in advance.
The maximum number of pthreads per user is 1024. This is set in the pthread
libraries. The maximum number of pthreads for the entire system can be set
in proc, but it's unlikely you'd need to change this value.
The way they seem to get that number is that pthread's stack space is
allocated on the heap and each thread takes 2 megs of heap by default.
Linux has a maximum of 2 gig heap per user, so 2meg @ 1024 give you 2 gigs
of heap.
If you need to increase the maximum number of threads per user, you'll need
to recompile the pthread library and decrease the amount of heap per thread.
This could have system wide effects, so I don't recommend it except for
finely tuned application servers. It's better to re-architect your software
around it or move to a different environment.
Check out :
http://www.jlinux.org/server.htmlhttp://www.xde.net/forum/xq/forum.56/thread.24291/qx/thread.htm
Jonathan Paul Cowherd
Linux and Java Administrator
Genscape, Inc.
Email: jonathan.cowherd(a)genscape.com
Office: (502) 583-3730
Mobile: (502) 314-0444
> -----Original Message-----
> From: Verdi March [mailto:cincaipatron@gmx.net]
> Sent: Monday, July 28, 2003 2:56 AM
> To: suse-programming-e(a)suse.com
> Subject: [suse-programming-e] pthread and max. number of threads
>
>
> Hi,
>
> I want to find out the maximum number of threads allowed on
> my machine.
> I repeatedly created a thread in a loop, and the result of
> running this
> small program is:
> thread 0 created.
> ...
> ...
> pthread_create error on thread 255, error code = 11
>
> Does this error code indicate that the maximum number of threads has
> been reached?
>
> How can I increase this maximum number? Does it involve ulimit? Or
> perhaps I need to modify the _POSIX_THREAD_THREADS_MAX and
> PTHREAD_THREADS_MAX definitions in /usr/include/bits/local_lim.h?
> Currently, they're 64 and 16384 respectively.
>
> --
>
> -- Verdi March --
>
>
> --
> To unsubscribe, email: suse-programming-e-unsubscribe(a)suse.com
> For additional commands, email: suse-programming-e-help(a)suse.com
> Archives can be found at:
> http://lists.suse.com/archive/suse-> programming-e
>
Hi,
I want to find out the maximum number of threads allowed on my machine.
I repeatedly created a thread in a loop, and the result of running this
small program is:
thread 0 created.
...
...
pthread_create error on thread 255, error code = 11
Does this error code indicate that the maximum number of threads has
been reached?
How can I increase this maximum number? Does it involve ulimit? Or
perhaps I need to modify the _POSIX_THREAD_THREADS_MAX and
PTHREAD_THREADS_MAX definitions in /usr/include/bits/local_lim.h?
Currently, they're 64 and 16384 respectively.
--
-- Verdi March --
On Tuesday 29 July 2003 11:07, keo(a)home.martnet.com wrote:
> The reason why you can't create the 3967, is because
> /proc/sys/kernel/threads-max refers to the maximum number of KERNEL
> level threads, threads created with the clone() system call. beyond
cmiiw, but isn't it the case when I create a thread via
pthread_create(), and compile my program with "gcc -lpthread"?
It's not pth though...
--
-- Verdi March --
How do I find out which version of GCC a shared object library was compiled
with? For example, what did Real use to compile /usr/lib/RealPlayer8/rpnp.so?
--
> eatapple
core dump
Hi,
I've written an application that uses LibNcFTP libraries to mirror a
directory on ftp://ftp.ncbi.nih.gov/blast/ on my local site. However
after successfully downloading a few files, the application just exits
without giving any errors. Looking at the library debug logs, it shows
that the last cmd it issued before it crashes was MDTM (see below).
debug.logs
Cmd: TYPE I
200: Type set to I
Cmd: PASV
227: Entering Passive Mode (130,14,29,30,196,160).
Cmd: RETR blast/db/nt.01.tar.gz
150: Opening BINARY mode data connection for blast/db/nt.01.tar.gz
(30041781 bytes)
226: Transfer complete.
Cmd: MDTM blast/db/other_genomic.tar.gz
213: 20030720075025
Cmd: PASV
227: Entering Passive Mode (130,14,29,30,195,246).
Cmd: RETR blast/db/other_genomic.tar.gz
150: Opening BINARY mode data connection for
blast/db/other_genomic.tar.gz (258755309 bytes)
226: Transfer complete.
Cmd: MDTM blast/db/pataa.tar.gz (crashes after this)
Does anybody have any experiance with LibNcFTP or know the
problem/solutions? Thanks.
I recompiled the SuSE 8.2 kernel (AMD XP2200+) to include my Yoke and
Rudder for Flightgear, that runs fine. Using the updated SuSE gcc-3.3.
Downloaded 2.4.22-pre + -ac patches. The config is the same as I used
on such kernels on SuSE 8.1 and it builds fine, mkinitrd also does the
business, but on bootup, it says it can't find the modules for aic7xxx
or reiserfs (it does just fine for the modded SuSE 8.2 kernel). I next
built aic7xxx and reiserfs into the kernel, no mkinitrd as those are the
only two modules that need preload. It now tells me that it can't mount
root 03:02. I've only ever seen this when reiserfs wasn't in the kernel
or as a module. It says boot with options noapic or acpi=off (I think),
then the non-descript "can't mount" message.
With 2.6.0-test1-ac2 I at least get root to mount, the
generate-modprobe.conf from 8.2 doesn't work, so I pulled over one I had
compiled for 8.1. It goes a fair way before it just does nothing --
never gets to the login prompt.
Any clues as to why the problems on 2.4.22-pre, but not on 2.6.0-test ?
Regards
Sid.
--
Sid Boyce ... hamradio G3VBV ... Cessna/Warrior Pilot
Linux only shop
I have problem with compilation of multiple source files, g++
reports that it can't found matched methods in constructor of
Pool.cpp (see below).
/******************* BinaryHeap.h **********************/
template<typename K, typename D> //K = key, D = data.
class BinaryHeap {
public:
typedef int (*compareTo)(const K src, const K dst);
BinaryHeap(int size, compareTo ct);
};
/********************** Pool.h ************************/
#include "BinaryHeap.h"
class Pool {
public:
Pool(int size);
private:
typedef struct { ...} Key;
typedef BinaryHeap<Key*, GSTask*> tpool;
static int compareKey(const Key* src, const Key* dst);
tpool* e_pool;
};
/******************* Pool.cpp ***********************/
Pool::Pool(int size) {
e_pool = new tpool(size, &RRTPool::compareKey); //<---- error here
}
int Pool::compareKey(const Pool::Key* src, const Pool::Key* dst) {
return ...;
}
/**************** end of Pool.cpp ********************/
The error message is:
error: no matching function for call to `
BinaryHeap<Pool::Key*, GSTask*>::BinaryHeap(int&, int (*)(const
Pool::Key*, const Pool::Key*))'
BinaryHeap.h:19: error: candidates are: BinaryHeap<Pool::Key*,
GSTask*>::BinaryHeap(const BinaryHeap<Pool::Key*, GSTask*>&)
BinaryHeap.h:34: error: BinaryHeap<K,
D>::BinaryHeap(int, int
(*)(K, K)) [with K = Pool::Key*, D = GSTask*] <near match>
I've make sure that every thing is matched with the template. What
am I missing?
What I don't understand is, why g++ assumed that I pass an int& to
BinaryHeap ctor, while I clearly used an int (the size variable)?
And also, I defined compareTo as a typedef to int(*)(const K, const K),
but g++ reported (*)(K, K) instead (at line BinaryHeap.h:34) ?
--
-- Verdi March --
Hi,
here's the situation: I have a template class, one of its method
returns the type specified in the template (see Entry<T>::getData()).
Problem is, I can't convert its return type to pointer.
In method "cetak", the lines: "T* ptr = &(v[0]->getData())" produces
compile error: "error: non-lvalue in unary `&'".
If, I change the line to: "T* ptr = &(v[0]->data), I got no error.
===========================================
#include <iostream>
#include <vector>
using namespace::std;
template<typename T>
class Entry {
public:
T getData() const;
T data;
};
template<typename T>
T Entry<T>::getData() const {
return data;
}
typedef Entry<int> ei;
template<typename T>
void cetak(int i, const vector<ei*>& v) {
T* ptr = &(v[0]->getData()); //<------- Error here.
//T* ptr = &(v[0]->data) //<-------- This one success.
cout << ptr << endl;
cout << *ptr << endl;
}
int main() {
vector<ei*> v;
ei* ONE = new ei();
ONE->data = 1;
v.push_back(ONE);
cetak<int>(0, v);
return 0;
}
===========================================
--
-- Verdi March --