This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Issues in adding a new API function in pthread
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Dongyoon Lee" <dongyoon at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Mon, 16 Jun 2008 16:24:20 -0400
- Subject: Re: Issues in adding a new API function in pthread
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=XmSF8qHk0sR59BTs+1w7wRApSvcqSuFnVlgwiTWuWZw=; b=jhC+bKzLaPp4eQWEaoO6t2EXaWMCONdpM5NGWpgja2F5FHUyR1UC1pKSSOVDZj4VkI jWK+tdEOLwNvvH+zb8yWGLuTbefSakOnvqCaXitZ4shXHB4upgSjsplg4LM0HuBqjD/u SEYP0aw6XAV2Ifi69paMJfeOy2WI0LK1nuZUE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=uJ0Y25HITjqz7CoMKM7RiSolTuuycZcXpYxZ6gHDaKnkHvBv4+EVZvbzXN0HrPy7fU mPUe7AUQk/N/VWc7BeoqWUJbm4D16CuOcOzpyNFj+GewW2vsOBMA6D2c/IuLOBZV7Vmu 58m9og1L9Zz28JPWt+SnI4rIVidd62z1/mQTw=
- References: <cbefbaa0806121249g7474d4afyde4fdc82a29f619b@mail.gmail.com> <cbefbaa0806121251kf76b2fci5d1869a189e4c671@mail.gmail.com> <119aab440806130714h56f9fc41n6fce0115705dd6a@mail.gmail.com> <cbefbaa0806130952h71b1961dqfb44f645c1ceb490@mail.gmail.com>
On Fri, Jun 13, 2008 at 12:52 PM, Dongyoon Lee <dongyoon@gmail.com> wrote:
> [root@localhost TMP]# gcc d.c -o d -lpthread
> /tmp/ccEeiBLd.o(.text+0x179): In function `main':
> : undefined reference to `pthread_setschedprio'
> collect2: ld returned 1 exit status
How did you verify that "-lpthread" causing the linker to link with
the the libpthread.so you just built?
What does "ldd d" show?
> 1397: 0000003b344081c0 3 FUNC GLOBAL DEFAULT 12 pthread_log2
That should work.
Cheers,
CArlos.