Date: Tue, 07 Sep 2010 13:07:58 +0400 From: Alexander Pyhalov <alp@rsu.ru> To: freebsd-ports@freebsd.org Subject: libthr and libc Message-ID: <4C8600EE.4010000@rsu.ru>
next in thread | raw e-mail | index | archive | help
Hello. I found out interesting thing yesterday. I use 8.0-stable and observed the same behavior on 8.1-release. I tried to create ecpg (embedded SQL) program for PostgreSQL. The program linked but gave strange error (sqlca structure wasn't passed correctly to user program). I found out that the reason was in threads behavior - each time we called pthread_once (inside ecpglib) it didn't work. Program linked to libc.so and called some stubs from it. When I realised it, I linked program with libthr, and it started work correctly. Can someone explain why this stubs are in libc? Why didn't linker just throw a linking error? -- С уважением, ÐлекÑандр Пыхалов, ÑиÑтемный админиÑтратор ЮГИÐФО ЮФУ.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C8600EE.4010000>