From owner-freebsd-questions Mon Aug 20 9:32:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from p6m7g8.student.umd.edu (p6m7g8.student.umd.edu [129.2.247.12]) by hub.freebsd.org (Postfix) with ESMTP id 7818C37B40A for ; Mon, 20 Aug 2001 09:32:38 -0700 (PDT) (envelope-from philip@p6m7g8.com) Received: from localhost (philip@localhost) by p6m7g8.student.umd.edu (8.11.3/8.11.3) with ESMTP id f7JHWJX10883 for ; Sun, 19 Aug 2001 12:32:19 -0500 (EST) (envelope-from philip@p6m7g8.com) X-Authentication-Warning: p6m7g8.student.umd.edu: philip owned process doing -bs Date: Sun, 19 Aug 2001 12:32:17 -0500 (EST) From: "Philip M. Gollucci" X-X-Sender: To: Subject: Database and MyODBC2.50.34 on FreeBSD4.3-RELEASE In-Reply-To: <3B813553.F92545FE@iowna.com> Message-ID: <20010819121550.U1878-100000@p6m7g8.student.umd.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have setup the following /usr/local/www apache mysql iodbc myodbc perl Apache1.30.20 works with mod_perl1.26, MySQL3.23.41 works with transactions, perl-5.6.1 works. AFAIK, libiodbc-2.50.3 is installed correctly. My odbc.ini file is as follows: [ODBC Data Sources] Myodbc = Myodbc [Myodbc] Driver = /usr/local/www/myodbc/lib/libmyodbc.so HOST = localhost Database = test Socket = /usr/local/www/mysql/mysql.sock Port = 3306 User = user Password = pass DSN = Myodbc When I run odbctest from libiodbc/samples I get : drunken# ./odbctest OpenLink ODBC Demonstration program This program shows an interactive SQL processor Enter ODBC connect string (? shows list): ? DSN | Description --------------------------------------------------------------- Myodbc | Enter ODBC connect string (? shows list): DSN=Myodbc /usr/libexec/ld-elf.so.1: /usr/local/www/myodbc/lib/libmyodbc.so: Undefined symbol "pthread_mutex_init" drunken# I'm guessthing this is because my pthread library is not shared. I read the man page on pthread... It said gcc has a freebsd specific option -pthread to link against libc_r instead of libc.... so I hacked MyODBC's Makefile to have CFLAGS = -O2 -pipe -pthread That didn't help. Anyone have any ideas ? Thanks in Advance, Philip ------------------------------------------------------------------------------ Philip M. Gollucci (p6m7g8) philip@p6m7g8.com 301.314.3445 Science, Discovery, & the Universe Webmaster URL: http://www.sdu.umd.edu DEVEL: http://www.test1.p6m7g8.com DEVEL: http://www.test3.p6m7g8.com EJPress.com Database/PERL Programmer & System Admin URL : http://www.ejournalpress.com Resume : http://www.p6m7g8.com/resume-20010424-170825.txt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message