Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.9.3/8.9.3) with ESMTP id NAA41657 for ; Tue, 13 Jul 1999 13:15:52 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.sss.pgh.pa.us (8.9.1/8.9.1) with ESMTP id NAA23587; Tue, 13 Jul 1999 13:14:44 -0400 (EDT) To: Daren Sefcik cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] Three posts and no response 8--( In-reply-to: Your message of Tue, 13 Jul 1999 09:50:17 -0700 <818C0CABD178D2119DA700104B8ADF4005DD@PDSISD> Date: Tue, 13 Jul 1999 13:14:44 -0400 Message-ID: <23585.931886084@sss.pgh.pa.us> From: Tom Lane Daren Sefcik writes: >> The eventual patch will be a change/addition in src/Makefile.shlib, >> in the section for your platform (solaris_sparc). I am guessing that >> we might need to add a line like >> SHLIB_LINK += -lc > Well that did something..but I don't think it fixed it completly: > ldd -r ./libpsqlodbc.so.0.25 > warning: ldd: ./libpsqlodbc.so.0.25: is not executable > libc.so.1 => /usr/lib/libc.so.1 > libdl.so.1 => /usr/lib/libdl.so.1 > /usr/platform/SUNW,UltraSPARC-IIi-Engine/lib/libc_psr.so.1 > symbol not found: pow (./libpsqlodbc.so.0.25) > symbol not found: shutdown (./libpsqlodbc.so.0.25) > symbol not found: inet_addr (./libpsqlodbc.so.0.25) > symbol not found: gethostbyname (./libpsqlodbc.so.0.25) > symbol not found: socket (./libpsqlodbc.so.0.25) > symbol not found: connect (./libpsqlodbc.so.0.25) > symbol not found: send (./libpsqlodbc.so.0.25) > symbol not found: recv (./libpsqlodbc.so.0.25) Ah: looks like we are on the right track but you need more than just -lc, then. pow() would be in libm, so you need -lm as well, and I'll bet that the networking calls are not in libc on your platform either. Do you have a libsocket? Check to see what is getting linked to psql, for example (go into src/bin/psql, remove and remake psql, and look at the command that make is using). Add -l switches to SHLIB_LINK as needed. I'd keep -lc last. Maybe "-lsocket -lm -lc" will do it. regards, tom lane