perl.dbi.users http://www.nntp.perl.org/group/perl.dbi.users/ ... Copyright 1998-2008 perl.org Fri, 09 May 2008 13:13:19 +0000 ask@perl.org Re: Fw: How to Retrieve Table Name from Statement Handle by Bart Lateur On Wed, 7 May 2008 12:41:01 -0700 (PDT), Lamb Joseph wrote:<br/><br/>&gt;I will have to break apart the SQL statement with a regex and store it that way. <br/>&gt;<br/>&gt;Thanks for the input.<br/><br/>More input: take a look at Ovid&#39;s article &quot;Lexing Your Data&quot; on<br/>perl.com, at <br/><br/> http://www.perl.com/pub/a/2006/01/05/parsing.html<br/><br/>which discusses using a tokenizer (lexer) to pull tokens, such as table<br/>names, out of SQL statements.<br/><br/>-- <br/> Bart.<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32852.html Thu, 08 May 2008 12:26:41 +0000 Re: Building DBD::Oracle on XP w/ VC 2005 by John Scoles Seem I now have access to an Oracle 11 box so I can have a look into this.<br/><br/>So far I get the same results as you.<br/><br/>Tomorrow I will have to do some debugging with this.<br/><br/>Cheers John Scoles<br/><br/>John Scoles wrote:<br/>&gt; I will CC this one to a contact I have at Oracle as the first <br/>&gt; question Oracle suport will as is what it DBD::Oracle??? followed by <br/>&gt; we don&#39;t support it.<br/>&gt;<br/>&gt; If you do follow up say the execute array dose not work as expected. <br/>&gt; and that it works in 9.<br/>&gt;<br/>&gt; cheers<br/>&gt; John Scoles<br/>&gt;<br/>&gt; Gerber, Christopher J wrote:<br/>&gt;&gt;&gt; Can you point it to a different non 11 DB instance??<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; and run the tests again?<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Could be a bug on the oracle side?<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; seems to be a number of them on 11 64 dbs coming up the past few days.<br/>&gt;&gt;&gt; <br/>&gt;&gt;<br/>&gt;&gt; Using an Oracle 9i server, the errors went away. I think that you&#39;re<br/>&gt;&gt; right about the 11g bug. Thanks for the assistance. I guess I have to<br/>&gt;&gt; find someone at Oracle to pester now! :)<br/>&gt;&gt;<br/>&gt;&gt; <br/>&gt;&gt;&gt; cheers<br/>&gt;&gt;&gt; John Scoles<br/>&gt;&gt;&gt; Gerber, Christopher J wrote:<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; Odd<br/>&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; Gerber, Christopher J wrote:<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; First off, I am new to the list. If there is a FAQ, feel free to<br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; point<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; me there!<br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt;&gt; This morning I built DBD-Oracle-1.21 on my XP machine using Visual<br/>&gt;&gt;&gt;&gt;&gt;&gt; Studio 2005. After building, I needed to copy the redistributable<br/>&gt;&gt;&gt;&gt;&gt;&gt; files<br/>&gt;&gt;&gt;&gt;&gt;&gt; to blib/arch/auto/DBD/Oracle, and I needed to embed the manifest<br/>&gt;&gt;&gt;&gt;&gt;&gt; into<br/>&gt;&gt;&gt;&gt;&gt;&gt; Oracle.dll with the following command:<br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt;&gt; mt.exe -manifest Oracle.dll.manifest -outputresource:Oracle.dll;2<br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;<br/>&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; I also needed to include my SID in ORACLE_USERID:<br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt;&gt; set ORACLE_USERID=user/password@tns_entry/ORCL<br/>&gt;&gt;&gt;&gt;&gt;&gt; ^^^^^<br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt;&gt; After all this, things worked, *except* for two tests:<br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt;&gt; t/26exe_array...........ok 1/14<br/>&gt;&gt;&gt;&gt;&gt;&gt; t/26exe_array...........NOK 11/14# Failed test &#39;... we should<br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt; have<br/>&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; 19<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; tuple_status&#39;<br/>&gt;&gt;&gt;&gt;&gt;&gt; # at t/26exe_array.t line 120.<br/>&gt;&gt;&gt;&gt;&gt;&gt; # got: 10<br/>&gt;&gt;&gt;&gt;&gt;&gt; # expected: 19<br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; this means that 9 rows did not get inserted for some reason<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; t/26exe_array...........NOK 14/14# Failed test &#39;... we should<br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt; have<br/>&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; 48<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; rows&#39;<br/>&gt;&gt;&gt;&gt;&gt;&gt; # at t/26exe_array.t line 146.<br/>&gt;&gt;&gt;&gt;&gt;&gt; # got: 30<br/>&gt;&gt;&gt;&gt;&gt;&gt; # expected: 48<br/>&gt;&gt;&gt;&gt;&gt;&gt; # Looks like you failed 2 tests of 14.<br/>&gt;&gt;&gt;&gt;&gt;&gt; t/26exe_array...........dubious<br/>&gt;&gt;&gt;&gt;&gt;&gt; Test returned status 2 (wstat 512, 0x200)<br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; this is linked to the not inserted 9 above so if we fix 11 we fix<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt; this<br/>&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; I&#39;m curious if others have seen these problems.<br/>&gt;&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; Can you tell me the which Oracle version you are running the tests<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt; on?<br/>&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; and which version of DBI?<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; I am using Oracle Instant Client 11.1.0.6.0 32bit on Windows to<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt; connect<br/>&gt;&gt; <br/>&gt;&gt;&gt;&gt; to a server running Oracle 11.1.0.6.0 64bit on Linux. I am using DBI<br/>&gt;&gt;&gt;&gt; version 1.601, although I see that 1.602 is now available.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; This could be a permission problem with the user that is running the<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; test. <br/>&gt;&gt;&gt;&gt;&gt; Try running the tests again with the &#39;system&#39; user and password and<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt; see <br/>&gt;&gt;&gt;&gt;&gt; what you get.<br/>&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; Using the SYSTEM account I get the same test results.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; I just updated DBI to 1.602 and tested again... the results are the<br/>&gt;&gt;&gt;&gt; same.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt; cheers<br/>&gt;&gt;&gt;&gt;&gt; John Scoles<br/>&gt;&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt; Chris<br/>&gt;&gt;&gt;&gt;&gt;&gt; <br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32851.html Thu, 08 May 2008 10:48:22 +0000 Re: Fw: How to Retrieve Table Name from Statement Handle by Steve Baldwin You may be able to use the explain plan functionality in Oracle to<br/>obtain the tables participating in a SELECT statement.<br/><br/>Steve<br/><br/>On Wed, 2008-05-07 at 12:48 -0700, Jonathan Leffler wrote:<br/>&gt; On Wed, May 7, 2008 at 12:37 PM, Lamb Joseph &lt;joseph_lamb@yahoo.com&gt; wrote:<br/>&gt; <br/>&gt; &gt; To answer you question, for an Oracle environment I would like<br/>&gt; &gt; $sth-&gt;{TABLENAME} to contain a list.<br/>&gt; &gt;<br/>&gt; &gt; my $tablename = $sth-&gt;{TABLENAME} -&gt;[0] = First table<br/>&gt; &gt; $tablename $sth-&gt;{TABLENAME} -&gt;[1] = Second table<br/>&gt; &gt;<br/>&gt; &gt; The $tablename value will be schema.tablename format.<br/>&gt; &gt; For example:<br/>&gt; &gt; schema.narf<br/>&gt; &gt; schema.zord<br/>&gt; &gt;<br/>&gt; <br/>&gt; <br/>&gt; So, what do you expect from a more complex statement, such as one which<br/>&gt; includes multiply nested sub-queries in the FROM clause, with renaming<br/>&gt; operations?<br/>&gt; <br/>&gt; SELECT * FROM table1, (SELECT * FROM (SELECT * FROM ...) AS renaming) AS<br/>&gt; renaming2 OUTER JOIN (...) ...<br/>&gt; <br/>&gt; And who do you expect to do the parsing of your SQL? On average, the DBD<br/>&gt; driver shouldn&#39;t have to, and the average database server won&#39;t tell you,<br/>&gt; so... Also, don&#39;t forget that any of the names could be a reference to an<br/>&gt; arbitrarily complex view -- what should be returned then?<br/>&gt; <br/>&gt; I&#39;m sorry, but I don&#39;t think you are going to get the information, unless<br/>&gt; some DB server is willing to give that information to the driver.<br/>&gt; <br/>&gt; I&#39;ve seen your response to my other post:<br/>&gt; I will have to break apart the SQL statement with a regex and store it<br/>&gt; that way.<br/>&gt; Question: how do you know that it is query using a single table - as your<br/>&gt; original question posited?<br/>&gt; <br/>&gt; <br/>&gt; I won&#39;t lambast this any further. Suffice to say, what you are asking for<br/>&gt; is incredibly non-trivial in the general case, and the general case has to<br/>&gt; work as well as the trivial.<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; &gt; ----- Forwarded Message ----<br/>&gt; &gt; From: Alexander Foken &lt;alexander@foken.de&gt;<br/>&gt; &gt; To: Lamb Joseph &lt;joseph_lamb@yahoo.com&gt;<br/>&gt; &gt; Cc: dbi-users@perl.org<br/>&gt; &gt; Sent: Wednesday, May 7, 2008 11:18:53 AM<br/>&gt; &gt; Subject: Re: How to Retrieve Table Name from Statement Handle<br/>&gt; &gt;<br/>&gt; &gt; Hmmm, and what do you think $sth-&gt;{TABLENAME} should contain after<br/>&gt; &gt; executing the following SQL?<br/>&gt; &gt;<br/>&gt; &gt; SELECT t1.foo,t2.bar FROM narf t1, zord t2 WHERE t1.ikes=t2.blurb<br/>&gt; &gt;<br/>&gt; &gt; Alexander<br/>&gt; &gt;<br/>&gt; &gt; On 07.05.2008 19:51, Lamb Joseph wrote:<br/>&gt; &gt; &gt; I am creating a simple tool that will query one table and retrieve the<br/>&gt; &gt; data. Then this tool will turn the data into insert statements.<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt; I was wondering if there was a way to retrieve the table name from the<br/>&gt; &gt; statement handle?<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt; Similar to print &quot;SQL statement contains $sth-&gt;{NUM_OF_FIELDS}<br/>&gt; &gt; columns\n&quot;;<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt; but like this<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt; print &quot;SQL statement table name is $sth-&gt;{TABLENAME} \n&quot;;<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt; Joseph Lamb<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt;<br/>&gt; &gt; &gt;<br/>&gt; &gt; ____________________________________________________________________________________<br/>&gt; &gt; &gt; Be a better friend, newshound, and<br/>&gt; &gt; &gt; know-it-all with Yahoo! Mobile. Try it now.<br/>&gt; &gt; http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/>&gt; &gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt; --<br/>&gt; &gt; Alexander Foken<br/>&gt; &gt; mailto:alexander@foken.de http://www.foken.de/alexander/<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt; ____________________________________________________________________________________<br/>&gt; &gt; Be a better friend, newshound, and<br/>&gt; &gt; know-it-all with Yahoo! Mobile. Try it now.<br/>&gt; &gt; http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/>&gt; &gt;<br/>&gt; <br/>&gt; <br/>&gt; <br/><br/><br/><br/>******************************************************************<br/>This email is intended solely for the use of the addressee and may<br/>contain information that is confidential, proprietary, or both.<br/><br/>If you receive this email in error please immediately notify the<br/>sender and delete the email.<br/>******************************************************************<br/><br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32850.html Wed, 07 May 2008 15:54:25 +0000 Re: Fw: How to Retrieve Table Name from Statement Handle by Jonathan Leffler On Wed, May 7, 2008 at 12:37 PM, Lamb Joseph &lt;joseph_lamb@yahoo.com&gt; wrote:<br/><br/>&gt; To answer you question, for an Oracle environment I would like<br/>&gt; $sth-&gt;{TABLENAME} to contain a list.<br/>&gt;<br/>&gt; my $tablename = $sth-&gt;{TABLENAME} -&gt;[0] = First table<br/>&gt; $tablename $sth-&gt;{TABLENAME} -&gt;[1] = Second table<br/>&gt;<br/>&gt; The $tablename value will be schema.tablename format.<br/>&gt; For example:<br/>&gt; schema.narf<br/>&gt; schema.zord<br/>&gt;<br/><br/><br/>So, what do you expect from a more complex statement, such as one which<br/>includes multiply nested sub-queries in the FROM clause, with renaming<br/>operations?<br/><br/>SELECT * FROM table1, (SELECT * FROM (SELECT * FROM ...) AS renaming) AS<br/>renaming2 OUTER JOIN (...) ...<br/><br/>And who do you expect to do the parsing of your SQL? On average, the DBD<br/>driver shouldn&#39;t have to, and the average database server won&#39;t tell you,<br/>so... Also, don&#39;t forget that any of the names could be a reference to an<br/>arbitrarily complex view -- what should be returned then?<br/><br/>I&#39;m sorry, but I don&#39;t think you are going to get the information, unless<br/>some DB server is willing to give that information to the driver.<br/><br/>I&#39;ve seen your response to my other post:<br/> I will have to break apart the SQL statement with a regex and store it<br/>that way.<br/>Question: how do you know that it is query using a single table - as your<br/>original question posited?<br/><br/><br/>I won&#39;t lambast this any further. Suffice to say, what you are asking for<br/>is incredibly non-trivial in the general case, and the general case has to<br/>work as well as the trivial.<br/><br/><br/><br/>&gt; ----- Forwarded Message ----<br/>&gt; From: Alexander Foken &lt;alexander@foken.de&gt;<br/>&gt; To: Lamb Joseph &lt;joseph_lamb@yahoo.com&gt;<br/>&gt; Cc: dbi-users@perl.org<br/>&gt; Sent: Wednesday, May 7, 2008 11:18:53 AM<br/>&gt; Subject: Re: How to Retrieve Table Name from Statement Handle<br/>&gt;<br/>&gt; Hmmm, and what do you think $sth-&gt;{TABLENAME} should contain after<br/>&gt; executing the following SQL?<br/>&gt;<br/>&gt; SELECT t1.foo,t2.bar FROM narf t1, zord t2 WHERE t1.ikes=t2.blurb<br/>&gt;<br/>&gt; Alexander<br/>&gt;<br/>&gt; On 07.05.2008 19:51, Lamb Joseph wrote:<br/>&gt; &gt; I am creating a simple tool that will query one table and retrieve the<br/>&gt; data. Then this tool will turn the data into insert statements.<br/>&gt; &gt;<br/>&gt; &gt; I was wondering if there was a way to retrieve the table name from the<br/>&gt; statement handle?<br/>&gt; &gt;<br/>&gt; &gt; Similar to print &quot;SQL statement contains $sth-&gt;{NUM_OF_FIELDS}<br/>&gt; columns\n&quot;;<br/>&gt; &gt;<br/>&gt; &gt; but like this<br/>&gt; &gt;<br/>&gt; &gt; print &quot;SQL statement table name is $sth-&gt;{TABLENAME} \n&quot;;<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt; Joseph Lamb<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; &gt;<br/>&gt; ____________________________________________________________________________________<br/>&gt; &gt; Be a better friend, newshound, and<br/>&gt; &gt; know-it-all with Yahoo! Mobile. Try it now.<br/>&gt; http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/>&gt; &gt;<br/>&gt;<br/>&gt;<br/>&gt; --<br/>&gt; Alexander Foken<br/>&gt; mailto:alexander@foken.de http://www.foken.de/alexander/<br/>&gt;<br/>&gt;<br/>&gt;<br/>&gt; ____________________________________________________________________________________<br/>&gt; Be a better friend, newshound, and<br/>&gt; know-it-all with Yahoo! Mobile. Try it now.<br/>&gt; http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/>&gt;<br/><br/><br/><br/>-- <br/>Jonathan Leffler &lt;jonathan.leffler@gmail.com&gt; #include &lt;disclaimer.h&gt;<br/>Guardian of DBD::Informix - v2008.0229 - http://dbi.perl.org<br/>&quot;Blessed are we who can laugh at ourselves, for we shall never cease to be<br/>amused.&quot;<br/><br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32849.html Wed, 07 May 2008 12:49:05 +0000 Fw: How to Retrieve Table Name from Statement Handle by Lamb Joseph I will have to break apart the SQL statement with a regex and store it that way. <br/><br/>Thanks for the input.<br/><br/> Joseph Lamb<br/><br/><br/>----- Forwarded Message ----<br/>From: Jonathan Leffler &lt;jonathan.leffler@gmail.com&gt;<br/>To: Lamb Joseph &lt;joseph_lamb@yahoo.com&gt;<br/>Cc: dbi-users@perl.org<br/>Sent: Wednesday, May 7, 2008 12:22:06 PM<br/>Subject: Re: How to Retrieve Table Name from Statement Handle<br/><br/>On Wed, May 7, 2008 at 10:51 AM, Lamb Joseph &lt;joseph_lamb@yahoo.com&gt; wrote:<br/><br/>&gt; I am creating a simple tool that will query one table and retrieve the<br/>&gt; data. Then this tool will turn the data into insert statements.<br/>&gt;<br/>&gt; I was wondering if there was a way to retrieve the table name from the<br/>&gt; statement handle?<br/>&gt;<br/>&gt; Similar to print &quot;SQL statement contains $sth-&gt;{NUM_OF_FIELDS} columns\n&quot;;<br/>&gt;<br/>&gt; but like this<br/>&gt;<br/>&gt; print &quot;SQL statement table name is $sth-&gt;{TABLENAME} \n&quot;;<br/>&gt;<br/><br/><br/>Over and above Alexander&#39;s cogent (but gentle - the SQL could have been a<br/>lot more complex than that) rebuttal, there&#39;s another question for you:<br/><br/>How did you decide which table to build the &#39;SELECT * FROM $table&#39; query<br/>from?<br/>Can&#39;t you keep tabs on the table name from that?<br/><br/>(Succinctly - no, you can&#39;t tell the table name from the statement handle<br/>because, in general, there isn&#39;t a single table name to report.)<br/><br/>-- <br/>Jonathan Leffler &lt;jonathan.leffler@gmail.com&gt; #include &lt;disclaimer.h&gt;<br/>Guardian of DBD::Informix - v2008.0229 - http://dbi.perl.org<br/>&quot;Blessed are we who can laugh at ourselves, for we shall never cease to be<br/>amused.&quot;<br/><br/><br/><br/> ____________________________________________________________________________________<br/>Be a better friend, newshound, and <br/>know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32848.html Wed, 07 May 2008 12:41:17 +0000 Fw: How to Retrieve Table Name from Statement Handle by Lamb Joseph To answer you question, for an Oracle environment I would like $sth-&gt;{TABLENAME} to contain a list.<br/><br/>my $tablename = $sth-&gt;{TABLENAME} -&gt;[0] = First table <br/>$tablename $sth-&gt;{TABLENAME} -&gt;[1] = Second table <br/><br/>The $tablename value will be schema.tablename format.<br/>For example:<br/>schema.narf <br/>schema.zord <br/><br/> Joseph Lamb<br/><br/><br/>----- Forwarded Message ----<br/>From: Alexander Foken &lt;alexander@foken.de&gt;<br/>To: Lamb Joseph &lt;joseph_lamb@yahoo.com&gt;<br/>Cc: dbi-users@perl.org<br/>Sent: Wednesday, May 7, 2008 11:18:53 AM<br/>Subject: Re: How to Retrieve Table Name from Statement Handle<br/><br/>Hmmm, and what do you think $sth-&gt;{TABLENAME} should contain after <br/>executing the following SQL?<br/><br/>SELECT t1.foo,t2.bar FROM narf t1, zord t2 WHERE t1.ikes=t2.blurb<br/><br/>Alexander<br/><br/>On 07.05.2008 19:51, Lamb Joseph wrote:<br/>&gt; I am creating a simple tool that will query one table and retrieve the data. Then this tool will turn the data into insert statements.<br/>&gt;<br/>&gt; I was wondering if there was a way to retrieve the table name from the statement handle?<br/>&gt;<br/>&gt; Similar to print &quot;SQL statement contains $sth-&gt;{NUM_OF_FIELDS} columns\n&quot;;<br/>&gt;<br/>&gt; but like this<br/>&gt;<br/>&gt; print &quot;SQL statement table name is $sth-&gt;{TABLENAME} \n&quot;;<br/>&gt;<br/>&gt;<br/>&gt; Joseph Lamb<br/>&gt;<br/>&gt;<br/>&gt;<br/>&gt; ____________________________________________________________________________________<br/>&gt; Be a better friend, newshound, and <br/>&gt; know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/>&gt; <br/><br/><br/>-- <br/>Alexander Foken<br/>mailto:alexander@foken.de http://www.foken.de/alexander/<br/><br/><br/> ____________________________________________________________________________________<br/>Be a better friend, newshound, and <br/>know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32847.html Wed, 07 May 2008 12:37:46 +0000 Re: How to Retrieve Table Name from Statement Handle by Jonathan Leffler On Wed, May 7, 2008 at 10:51 AM, Lamb Joseph &lt;joseph_lamb@yahoo.com&gt; wrote:<br/><br/>&gt; I am creating a simple tool that will query one table and retrieve the<br/>&gt; data. Then this tool will turn the data into insert statements.<br/>&gt;<br/>&gt; I was wondering if there was a way to retrieve the table name from the<br/>&gt; statement handle?<br/>&gt;<br/>&gt; Similar to print &quot;SQL statement contains $sth-&gt;{NUM_OF_FIELDS} columns\n&quot;;<br/>&gt;<br/>&gt; but like this<br/>&gt;<br/>&gt; print &quot;SQL statement table name is $sth-&gt;{TABLENAME} \n&quot;;<br/>&gt;<br/><br/><br/>Over and above Alexander&#39;s cogent (but gentle - the SQL could have been a<br/>lot more complex than that) rebuttal, there&#39;s another question for you:<br/><br/>How did you decide which table to build the &#39;SELECT * FROM $table&#39; query<br/>from?<br/>Can&#39;t you keep tabs on the table name from that?<br/><br/>(Succinctly - no, you can&#39;t tell the table name from the statement handle<br/>because, in general, there isn&#39;t a single table name to report.)<br/><br/>-- <br/>Jonathan Leffler &lt;jonathan.leffler@gmail.com&gt; #include &lt;disclaimer.h&gt;<br/>Guardian of DBD::Informix - v2008.0229 - http://dbi.perl.org<br/>&quot;Blessed are we who can laugh at ourselves, for we shall never cease to be<br/>amused.&quot;<br/><br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32846.html Wed, 07 May 2008 12:22:15 +0000 Re: How to Retrieve Table Name from Statement Handle by Alexander Foken Hmmm, and what do you think $sth-&gt;{TABLENAME} should contain after <br/>executing the following SQL?<br/><br/>SELECT t1.foo,t2.bar FROM narf t1, zord t2 WHERE t1.ikes=t2.blurb<br/><br/>Alexander<br/><br/>On 07.05.2008 19:51, Lamb Joseph wrote:<br/>&gt; I am creating a simple tool that will query one table and retrieve the data. Then this tool will turn the data into insert statements.<br/>&gt;<br/>&gt; I was wondering if there was a way to retrieve the table name from the statement handle?<br/>&gt;<br/>&gt; Similar to print &quot;SQL statement contains $sth-&gt;{NUM_OF_FIELDS} columns\n&quot;;<br/>&gt;<br/>&gt; but like this<br/>&gt;<br/>&gt; print &quot;SQL statement table name is $sth-&gt;{TABLENAME} \n&quot;;<br/>&gt;<br/>&gt;<br/>&gt; Joseph Lamb<br/>&gt;<br/>&gt;<br/>&gt;<br/>&gt; ____________________________________________________________________________________<br/>&gt; Be a better friend, newshound, and <br/>&gt; know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/>&gt; <br/><br/><br/>-- <br/>Alexander Foken<br/>mailto:alexander@foken.de http://www.foken.de/alexander/<br/><br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32845.html Wed, 07 May 2008 11:17:11 +0000 How to Retrieve Table Name from Statement Handle by Lamb Joseph I am creating a simple tool that will query one table and retrieve the data. Then this tool will turn the data into insert statements.<br/><br/>I was wondering if there was a way to retrieve the table name from the statement handle?<br/><br/>Similar to print &quot;SQL statement contains $sth-&gt;{NUM_OF_FIELDS} columns\n&quot;;<br/><br/>but like this<br/><br/>print &quot;SQL statement table name is $sth-&gt;{TABLENAME} \n&quot;;<br/><br/><br/> Joseph Lamb<br/><br/><br/><br/> ____________________________________________________________________________________<br/>Be a better friend, newshound, and <br/>know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32844.html Wed, 07 May 2008 10:51:13 +0000 RE: Unable to install DBD::ODBC on OSX Leopard 10.5.2 by Neil Beddoe Thanks Martin and Tim you pointed me in the right direction and<br/>DBD::ODBC now works on my Mac OS X Leopard machine. <br/><br/>For anyone having trouble getting it to work, this is what I did.<br/><br/>Rebuild DBI v1.604 - I did this with a cpan force install<br/><br/>export LD_LIBRARY_PATH=/usr/local/iODBC/lib<br/>cd DBD-ODBC-1.16_1<br/>perl Makefile.pl<br/><br/>On my machine, this gave a series of warnings about duplicate copies of<br/>Driver.xst so I did an rm -rf on all Driver.xst locations warned about<br/>except /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI/.<br/><br/>make clean<br/>perl Makefile.pl (ignoring DBI_DSN etc environment variable warnings)<br/>make<br/>sudo make install<br/><br/><br/><br/><br/>-----Original Message-----<br/>From: Tim Bunce [mailto:tim.bunce@gmail.com] On Behalf Of Tim Bunce<br/>Sent: 06 May 2008 21:55<br/>To: Martin Evans<br/>Cc: dbi-users@perl.org<br/>Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/><br/>On Tue, May 06, 2008 at 12:36:39PM +0100, Martin Evans wrote:<br/>&gt; Neil Beddoe wrote:<br/>&gt;&gt; Sorry. Yes I did see Tim&#39;s suggestion . I&#39;m was (am) using DBI<br/>1.604. <br/>&gt;&gt; I took a look at<br/>&gt;&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html as <br/>&gt;&gt; well but I couldn&#39;t get Tim&#39;s suggestion to compile (failed with h <br/>&gt;&gt; undefined).<br/>&gt;<br/>&gt; I&#39;m not at all sure then. The original post I found:<br/>&gt;<br/>&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/>&gt;<br/>&gt; suggests something was wrong but Tim&#39;s follow up to you suggests he <br/>&gt; thought you have an old DBI. Are you absolutely sure DBI 1.604 is <br/>&gt; installed in an accessible path?<br/><br/>Just installing DBI 1.604 is not enough. The key point is that the<br/>driver must be recompiled *after DBI 1.604 is installed* in order for<br/>the driver to pick up this particular change.<br/><br/>Tim.<br/><br/>.<br/><br/>This message is intended only for the use of the person(s) to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any unauthorised use is strictly prohibited. If you are not the intended recipient, please contact the sender as soon as possible.<br/><br/>It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any opinions or advice contained in this Internet email are subject to the terms and conditions expressed in any applicable governing Marble Bar Asset Management LLP&#39;s terms and conditions of business or client agreement letter. Any comments or statements made herein do not necessarily reflect those of Marble Bar Asset Management LLP.<br/><br/>Marble Bar Asset Management LLP is regulated and authorised by the FSA.<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32843.html Wed, 07 May 2008 01:16:41 +0000 Re: OCIEnvNlsCreate error with DBD::Oracle 1.21 and Oracle 10g client in Cygwin by Peter J. Holzer On 2008-05-05 10:46:05 -0700, pgodfrin wrote:<br/>&gt; My install of Oracle, for reasons unknown to me, had this file set to<br/>&gt; rwxr-x--- which doesn&#39;t work for &#39;others&#39;.<br/><br/>In recent versions of Oracle, by default the programs and libraries<br/>installed with a server installation are only usable by the DBA group. <br/>Oracle calls this a &quot;hardened&quot; installation and provides a script to<br/>soften it, if you need to. I assume there are security reasons for this,<br/>but I haven&#39;t been able to find an explanation (admittedly I haven&#39;t<br/>looked very hard). Or maybe they just want to nudge people into<br/>separating client and server installations ...<br/><br/> hp<br/><br/>-- <br/> _ | Peter J. Holzer | If I wanted to be &quot;academically correct&quot;,<br/>|_|_) | Sysadmin WSR | I&#39;d be programming in Java.<br/>| | | hjp@wsr.ac.at | I don&#39;t, and I&#39;m not.<br/>__/ | http://www.hjp.at/ | -- Jesse Erlbaum on dbi-users<br/><br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32842.html Wed, 07 May 2008 01:03:35 +0000 Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2 by Tim Bunce On Tue, May 06, 2008 at 12:36:39PM +0100, Martin Evans wrote:<br/>&gt; Neil Beddoe wrote:<br/>&gt;&gt; Sorry. Yes I did see Tim&#39;s suggestion . I&#39;m was (am) using DBI 1.604. <br/>&gt;&gt; I took a look at<br/>&gt;&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html as well<br/>&gt;&gt; but I couldn&#39;t get Tim&#39;s suggestion to compile (failed with h<br/>&gt;&gt; undefined).<br/>&gt;<br/>&gt; I&#39;m not at all sure then. The original post I found:<br/>&gt;<br/>&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/>&gt;<br/>&gt; suggests something was wrong but Tim&#39;s follow up to you suggests he thought <br/>&gt; you have an old DBI. Are you absolutely sure DBI 1.604 is installed in an <br/>&gt; accessible path?<br/><br/>Just installing DBI 1.604 is not enough. The key point is that the<br/>driver must be recompiled *after DBI 1.604 is installed* in order<br/>for the driver to pick up this particular change.<br/><br/>Tim.<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32841.html Tue, 06 May 2008 13:56:27 +0000 (Fwd) Perl DBI and MySQL by Tim Bunce ----- Forwarded message from &quot;Dorp, Ronald van (W&amp;O SO OPS NET FIA Beheer)&quot; &lt;ronald.vandorp@kpn.com&gt; -----<br/><br/>Subject: Perl DBI and MySQL<br/>Date: Tue, 6 May 2008 16:24:59 +0200<br/>From: &quot;Dorp, Ronald van (W&amp;O SO OPS NET FIA Beheer)&quot; &lt;ronald.vandorp@kpn.com&gt;<br/>To: Tim.Bunce@pobox.com<br/>X-ESAFE-STATUS: Mail allowed<br/>X-ESAFE-DETAILS: <br/><br/> Simple question.<br/><br/> When DBI.pm with mysql.pm tries to connect to a database it uses a use statement ? So replication will<br/> work ?<br/><br/> Because replication only works with the use &lt;$dbname&gt; statement.<br/><br/> Could not find anything on the net other than:<br/><br/> die &quot;_SelectDB is removed from this module; use DBI-&gt;connect instead.&quot;;<br/> }<br/> Can you confirm that DBI.pm with the Mysql driver always issues a use &lt;$dbname&gt;; ?<br/> Will this be used throughout all new versions of DBI.pm.<br/> Thanks in advance,<br/><br/> Met vriendelijke groet,<br/> Ronald van Dorp<br/> jr. Technisch Specialist<br/><br/> KPN<br/> W&amp;O SO OPS NET FIA Beheer<br/> HV4, G515<br/> Regulusweg 1<br/> 2516 AC Den Haag<br/> Telefoon: (070) 451 28 38<br/> Mobiel: 06 - 13 45 41 57<br/><br/>----- End forwarded message -----<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32840.html Tue, 06 May 2008 11:20:05 +0000 Re: utf8 warning when installing DBI 1.604 by Martin Evans myrose.20.ftumsh@spamgourmet.com wrote:<br/>&gt; Lo,<br/>&gt; <br/>&gt; I get the following warning when installing DBI. All tests pass so I <br/>&gt; don&#39;t think there&#39;s a problem, but could someone elaborate on the <br/>&gt; warning please?<br/>&gt; <br/>&gt; *** Your LANG environment variable is set to &#39;en_US.UTF-8&#39;<br/>&gt; *** This is known to cause problems for some perl installations.<br/>&gt; *** If you get test failures, please try again with LANG unset.<br/>&gt; *** Please also email dbi-dev@perl.org and include the output of &#39;perl -V&#39;<br/>&gt; <br/>&gt; Thanks<br/>&gt; <br/>&gt; John<br/>&gt; <br/>&gt; <br/><br/>In DBD::ODBC it was stopping the Makefile from running - see &quot;Why do I <br/>get &quot;Makefile:311: *** missing separator. Stop.&quot; when building DBD::ODBC <br/>1.06?&quot; http://www.easysoft.com/support/kb/kb00771.html. The make either <br/>worked or didn&#39;t and if it did the warning can be ignored. I&#39;m not sure <br/>about DBI but it was perhaps a similar issue.<br/><br/>Martin<br/>-- <br/>Martin J. Evans<br/>Easysoft Limited<br/>http://www.easysoft.com<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32839.html Tue, 06 May 2008 09:41:19 +0000 utf8 warning when installing DBI 1.604 by myrose.20.ftumsh Lo,<br/><br/>I get the following warning when installing DBI. All tests pass so I <br/>don&#39;t think there&#39;s a problem, but could someone elaborate on the <br/>warning please?<br/><br/>*** Your LANG environment variable is set to &#39;en_US.UTF-8&#39;<br/>*** This is known to cause problems for some perl installations.<br/>*** If you get test failures, please try again with LANG unset.<br/>*** Please also email dbi-dev@perl.org and include the output of &#39;perl -V&#39;<br/><br/>Thanks<br/><br/>John<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32838.html Tue, 06 May 2008 09:33:28 +0000 RE: Unable to install DBD::ODBC on OSX Leopard 10.5.2 by Neil Beddoe <br/>Hi Martin.<br/><br/>I wondered if I had an old version but so that&#39;s what I did when I sent<br/>the last email: it&#39;s definitely 1.604. <br/><br/>I&#39;m using iODBC version 3.52.5. Would that make any difference?<br/><br/>Sorry to keep bugging you. <br/><br/><br/><br/>-----Original Message-----<br/>From: Martin Evans [mailto:martin.evans@easysoft.com] <br/>Sent: 06 May 2008 12:37<br/>To: dbi-users@perl.org<br/>Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/><br/>Neil Beddoe wrote:<br/>&gt; Sorry. Yes I did see Tim&#39;s suggestion . I&#39;m was (am) using DBI<br/>1.604. <br/>&gt; <br/>&gt; I took a look at<br/>&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html as <br/>&gt; well but I couldn&#39;t get Tim&#39;s suggestion to compile (failed with h <br/>&gt; undefined).<br/>&gt; <br/><br/>I&#39;m not at all sure then. The original post I found:<br/><br/>http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/><br/>suggests something was wrong but Tim&#39;s follow up to you suggests he<br/>thought you have an old DBI. Are you absolutely sure DBI 1.604 is<br/>installed in an accessible path? What does the following say in the same<br/>session as your attempt to build DBD::ODBC:<br/><br/>perl -MDBI -le &#39;print $DBI::VERSION;&#39;<br/><br/>Martin<br/>--<br/>Martin J. Evans<br/>Easysoft Limited<br/>http://www.easysoft.com<br/><br/>&gt; <br/>&gt; <br/>&gt; -----Original Message-----<br/>&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt; Sent: 06 May 2008 10:32<br/>&gt; To: Neil Beddoe<br/>&gt; Cc: dbi-users@perl.org<br/>&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt; <br/>&gt; Neil Beddoe wrote:<br/>&gt;&gt; Hi Martin. Just wondering if you got any further with this. <br/>&gt; <br/>&gt; Did Tim&#39;s suggestion not work for you? He said:<br/>&gt; <br/>&gt; I suspect you&#39;re using an old version of DBI (I&#39;d guess &lt;= 1.55).<br/>&gt; Try using a more recent version.<br/>&gt; <br/>&gt; Have you installed a newer DBI?<br/>&gt; <br/>&gt; Martin<br/>&gt; --<br/>&gt; Martin J. Evans<br/>&gt; Easysoft Limited<br/>&gt; http://www.easysoft.com<br/>&gt; <br/>&gt;&gt; -----Original Message-----<br/>&gt;&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt;&gt; Sent: 21 April 2008 16:33<br/>&gt;&gt; To: dbi-users@perl.org<br/>&gt;&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt;&gt;<br/>&gt;&gt; Neil Beddoe wrote:<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Thanks for looking at this Martin. I&#39;m a bit out of my depth here.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; The line in ODBC.xsi is:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; if (DBIc_CACHED_KIDS(imp_dbh)) {<br/>&gt;&gt;&gt; SvREFCNT_dec(DBIc_CACHED_KIDS(imp_dbh)); /* cast them<br/>to<br/>&gt;&gt;&gt; the winds */<br/>&gt;&gt;&gt; DBIc_CACHED_KIDS(imp_dbh) = Nullhv; #ERROR_GENERATED_HERE<br/>&gt;&gt;&gt; }<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; This is line 277, the same assignment fails in line 336.<br/>&gt;&gt; Ok, I found this:<br/>&gt;&gt;<br/>&gt;&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/>&gt;&gt;<br/>&gt;&gt; which suggests there is something I need to look into further.<br/>&gt;&gt;<br/>&gt;&gt; Martin<br/>&gt;&gt; --<br/>&gt;&gt; Martin J. Evans<br/>&gt;&gt; Easysoft Limited<br/>&gt;&gt; http://www.easysoft.com<br/>&gt;&gt;<br/>&gt;&gt;&gt; -----Original Message-----<br/>&gt;&gt;&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt;&gt;&gt; Sent: 21 April 2008 13:17<br/>&gt;&gt;&gt; To: dbi-users@perl.org<br/>&gt;&gt;&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Martin Evans wrote:<br/>&gt;&gt;&gt;&gt; Neil Beddoe wrote:<br/>&gt;&gt;&gt;&gt;&gt;&gt;&gt; You also may need to add &quot;-framework CoreFoundation&quot;<br/>&gt;&gt;&gt;&gt;&gt;&gt;&gt; to the Makefile for the LDLOADLIBS and EXTRALIBS symbols and <br/>&gt;&gt;&gt;&gt;&gt;&gt;&gt; that<br/>&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt;&gt; will<br/>&gt;&gt;&gt;&gt;&gt; be the at least one of the issues with Sybase too &gt;&gt;(see <br/>&gt;&gt;&gt;&gt;&gt; README.osx<br/>&gt; <br/>&gt;&gt;&gt;&gt;&gt; in distribution).<br/>&gt;&gt;&gt;&gt;&gt; Hello Martin, I&#39;ve tried this on my system and still no luck. I&#39;m<br/><br/>&gt;&gt;&gt;&gt;&gt; not sure I&#39;m carrying it out correctly though. I run perl <br/>&gt;&gt;&gt;&gt;&gt; Makefile.PL and edit the Makefile it generates like this:<br/>&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; EXTRALIBS = -L/usr/lib -lodbc -framework CoreFoundation LDLOADLIBS<br/><br/>&gt;&gt;&gt;&gt;&gt; = -L/usr/lib -lodbc -framework CoreFoundation<br/>&gt;&gt;&gt;&gt; Not having a mac I&#39;m only going on what others have told me but I <br/>&gt;&gt;&gt;&gt; believe the above to be right. However, your make has not got to <br/>&gt;&gt;&gt;&gt; the<br/>&gt; <br/>&gt;&gt;&gt;&gt; point where the framework comes into the equation yet - see below.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; ...but this generates the output below. Any help you can offer <br/>&gt;&gt;&gt;&gt;&gt; would be gratefully received.<br/>&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; Mac OS 10.5.2 Intel Core Duo<br/>&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; cc -c -I/usr/include -I.<br/>&gt;&gt;&gt;&gt;&gt; -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI -arch<br/>&gt;&gt;&gt;&gt;&gt; i386<br/>&gt;&gt;&gt;&gt;&gt; -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp <br/>&gt;&gt;&gt;&gt;&gt; -fno-strict-aliasing -Wdeclaration-after-statement<br/>&gt;&gt;&gt; -I/usr/local/include<br/>&gt;&gt;&gt;&gt;&gt; -O3 -DVERSION=\&quot;1.16_1\&quot; -DXS_VERSION=\&quot;1.16_1\&quot;<br/>&gt;&gt;&gt;&gt;&gt; &quot;-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE&quot;<br/>&gt;&gt;&gt;&gt;&gt; -I/usr/include ODBC.c<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt; These are compilation errors and they are stopping the build. What <br/>&gt;&gt;&gt;&gt; is on lines 277 and 336 of ODBC.xsi?<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt;&gt;&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt;&gt;&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt;&gt;&gt; lipo: can&#39;t open input file: /var/tmp//ccx0pa5P.out (No such file <br/>&gt;&gt;&gt;&gt;&gt; or<br/>&gt;&gt;&gt;&gt;&gt; directory)<br/>&gt;&gt;&gt;&gt;&gt; make: *** [ODBC.o] Error 1<br/>&gt;&gt;&gt;&gt; Martin<br/>&gt;&gt;&gt; I&#39;ve managed to blag an ssh session on a MAC running 10.5.2, Perl<br/>&gt;&gt;&gt; 5.8.8 and DBI 1.52. I made no changes at all to the Makefile and it<br/>&gt;&gt; built ok.<br/>&gt;&gt;&gt; However, it fails to run with:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; t/01base................ok 1/5install_driver(ODBC) failed: Can&#39;t <br/>&gt;&gt;&gt; load<br/>&gt; <br/>&gt;&gt;&gt; &#39;/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle&#39;<br/>&gt;&gt;&gt; for module DBD::ODBC:<br/>&gt;&gt;&gt; dlopen(/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.b<br/>&gt;&gt;&gt; u<br/>&gt;&gt;&gt; n<br/>&gt;&gt;&gt; dl<br/>&gt;&gt;&gt; e,<br/>&gt;&gt;&gt; 2): Symbol not found: ___CFConstantStringClassReference<br/>&gt;&gt;&gt; Referenced from: <br/>&gt;&gt;&gt; /Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle<br/>&gt;&gt;&gt; Expected in: dynamic lookup<br/>&gt;&gt;&gt; at (eval 7) line 3<br/>&gt;&gt;&gt; Compilation failed in require at (eval 7) line 3.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; If I then change the Makefile to include -framework CoreFoundation <br/>&gt;&gt;&gt; in<br/>&gt; <br/>&gt;&gt;&gt; EXTRALIBS and LDLOADLIBS it gets further but unfortunately the mac I<br/><br/>&gt;&gt;&gt; was using was Intel based (I didn&#39;t realise this at first) and the <br/>&gt;&gt;&gt; only driver I could find was built for ppc so it gave:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; mach-o, but wrong architecture<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; for the ODBC driver shared library.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; If you can mail what is on the lines you got errors for in ODBC.xsi <br/>&gt;&gt;&gt; we may be able to wwork it out.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Martin<br/>&gt;&gt;&gt; --<br/>&gt;&gt;&gt; Martin J. Evans<br/>&gt;&gt;&gt; Easysoft Limited<br/>&gt;&gt;&gt; http://www.easysoft.com<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; .<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; This message is intended only for the use of the person(s) to whom <br/>&gt;&gt;&gt; it<br/>&gt;&gt; is addressed. It may contain information which is privileged and <br/>&gt;&gt; confidential. Accordingly any unauthorised use is strictly<br/>prohibited.<br/>&gt;&gt; If you are not the intended recipient, please contact the sender as <br/>&gt;&gt; soon as possible.<br/>&gt;&gt;&gt; It is not intended as an offer or solicitation for the purchase or<br/>&gt;&gt; sale of any financial instrument or as an official confirmation of <br/>&gt;&gt; any<br/>&gt; <br/>&gt;&gt; transaction, unless specifically agreed otherwise. All market prices,<br/><br/>&gt;&gt; data and other information are not warranted as to completeness or <br/>&gt;&gt; accuracy and are subject to change without notice. Any opinions or <br/>&gt;&gt; advice contained in this Internet email are subject to the terms and <br/>&gt;&gt; conditions expressed in any applicable governing Marble Bar Asset <br/>&gt;&gt; Management LLP&#39;s terms and conditions of business or client <br/>&gt;&gt; agreement<br/>&gt; <br/>&gt;&gt; letter. Any comments or statements made herein do not necessarily <br/>&gt;&gt; reflect those of Marble Bar Asset Management LLP.<br/>&gt;&gt;&gt; Marble Bar Asset Management LLP is regulated and authorised by the<br/>&gt;&gt; FSA.<br/>&gt;&gt; .<br/>&gt;&gt;<br/>&gt;&gt; This message is intended only for the use of the person(s) to whom it<br/>&gt; is addressed. It may contain information which is privileged and <br/>&gt; confidential. Accordingly any unauthorised use is strictly prohibited.<br/>&gt; If you are not the intended recipient, please contact the sender as <br/>&gt; soon as possible.<br/>&gt;&gt; It is not intended as an offer or solicitation for the purchase or<br/>&gt; sale of any financial instrument or as an official confirmation of any<br/><br/>&gt; transaction, unless specifically agreed otherwise. All market prices, <br/>&gt; data and other information are not warranted as to completeness or <br/>&gt; accuracy and are subject to change without notice. Any opinions or <br/>&gt; advice contained in this Internet email are subject to the terms and <br/>&gt; conditions expressed in any applicable governing Marble Bar Asset <br/>&gt; Management LLP&#39;s terms and conditions of business or client agreement<br/><br/>&gt; letter. Any comments or statements made herein do not necessarily <br/>&gt; reflect those of Marble Bar Asset Management LLP.<br/>&gt;&gt; Marble Bar Asset Management LLP is regulated and authorised by the<br/>&gt; FSA.<br/>&gt;&gt;<br/>&gt; <br/>&gt; .<br/>&gt; <br/>&gt; This message is intended only for the use of the person(s) to whom it<br/>is addressed. It may contain information which is privileged and<br/>confidential. Accordingly any unauthorised use is strictly prohibited.<br/>If you are not the intended recipient, please contact the sender as soon<br/>as possible.<br/>&gt; <br/>&gt; It is not intended as an offer or solicitation for the purchase or<br/>sale of any financial instrument or as an official confirmation of any<br/>transaction, unless specifically agreed otherwise. All market prices,<br/>data and other information are not warranted as to completeness or<br/>accuracy and are subject to change without notice. Any opinions or<br/>advice contained in this Internet email are subject to the terms and<br/>conditions expressed in any applicable governing Marble Bar Asset<br/>Management LLP&#39;s terms and conditions of business or client agreement<br/>letter. Any comments or statements made herein do not necessarily<br/>reflect those of Marble Bar Asset Management LLP.<br/>&gt; <br/>&gt; Marble Bar Asset Management LLP is regulated and authorised by the<br/>FSA.<br/>&gt; <br/>&gt; <br/><br/>.<br/><br/>This message is intended only for the use of the person(s) to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any unauthorised use is strictly prohibited. If you are not the intended recipient, please contact the sender as soon as possible.<br/><br/>It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any opinions or advice contained in this Internet email are subject to the terms and conditions expressed in any applicable governing Marble Bar Asset Management LLP&#39;s terms and conditions of business or client agreement letter. Any comments or statements made herein do not necessarily reflect those of Marble Bar Asset Management LLP.<br/><br/>Marble Bar Asset Management LLP is regulated and authorised by the FSA.<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32837.html Tue, 06 May 2008 04:47:42 +0000 Re: OCIEnvNlsCreate error with DBD::Oracle 1.21 and Oracle 10g client in Cygwin by pgodfrin On May 2, 1:51 pm, jkst...@verizon.net (Jared Still) wrote:<br/>&gt; On Fri, 2008-04-25 at 09:08 -0700, Dunston Rocks wrote:<br/>&gt; &gt; $ENV{TNS_ADMIN} = &#39;C:\oracle\product\10.2.0\client_2\NETWORK\ADMIN\tnsnam<br/>&gt; &gt; es.ora&#39;; # Also tried replacing these with POSIX-Style paths<br/>&gt; &gt; $ENV{ORACLE_HOME} = &quot;C:\oracle\product\10.2.0\client_2&quot;;<br/>&gt; &gt; $ENV{NLS_LANG} = &quot;AMERICAN_AMERICA.WE8DEC&quot;;<br/>&gt;<br/>&gt; Get rid of them backslashes, that&#39;s DOS stuff! :)<br/>&gt;<br/>&gt; you can use ENV{ORACLE_HOME} = &quot;C:/oracle/product/10.2.0/client_2&quot;<br/>&gt;<br/>&gt; or (IIRC) ENV{ORACLE_HOME} = &quot;C:\\oracle\\product\\10.2.0\\client_2&quot;<br/>&gt;<br/>&gt; Personally, I always use the first form.<br/>&gt;<br/>&gt; HTH<br/>&gt;<br/>&gt; Jared<br/><br/>Hi,<br/>My experience is not exactly the same, but I had the same error. The<br/>NLS errors, I think, is ared herring - it was in my case.<br/><br/>You need to make sure that oracle.so (libclntsh.so.10.1) can be found.<br/>In my Fedora installation, I did this via /etc/ld.so.conf. The next<br/>thing is to make sure that the ultimate file pointed to by Oracle.so<br/>has permissions rwxr-xr-x<br/><br/>My install of Oracle, for reasons unknown to me, had this file set to<br/>rwxr-x--- which doesn&#39;t work for &#39;others&#39;.<br/><br/>Also, the previous poster&#39;s suggestion about backslashes versus<br/>slashes is a good avenue to pursue...<br/><br/>good luck,<br/>phil<br/><br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32836.html Tue, 06 May 2008 04:45:50 +0000 Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2 by Martin Evans Neil Beddoe wrote:<br/>&gt; Sorry. Yes I did see Tim&#39;s suggestion . I&#39;m was (am) using DBI 1.604. <br/>&gt; <br/>&gt; I took a look at<br/>&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html as well<br/>&gt; but I couldn&#39;t get Tim&#39;s suggestion to compile (failed with h<br/>&gt; undefined).<br/>&gt; <br/><br/>I&#39;m not at all sure then. The original post I found:<br/><br/>http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/><br/>suggests something was wrong but Tim&#39;s follow up to you suggests he <br/>thought you have an old DBI. Are you absolutely sure DBI 1.604 is <br/>installed in an accessible path? What does the following say in the same <br/>session as your attempt to build DBD::ODBC:<br/><br/>perl -MDBI -le &#39;print $DBI::VERSION;&#39;<br/><br/>Martin<br/>-- <br/>Martin J. Evans<br/>Easysoft Limited<br/>http://www.easysoft.com<br/><br/>&gt; <br/>&gt; <br/>&gt; -----Original Message-----<br/>&gt; From: Martin Evans [mailto:martin.evans@easysoft.com] <br/>&gt; Sent: 06 May 2008 10:32<br/>&gt; To: Neil Beddoe<br/>&gt; Cc: dbi-users@perl.org<br/>&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt; <br/>&gt; Neil Beddoe wrote:<br/>&gt;&gt; Hi Martin. Just wondering if you got any further with this. <br/>&gt; <br/>&gt; Did Tim&#39;s suggestion not work for you? He said:<br/>&gt; <br/>&gt; I suspect you&#39;re using an old version of DBI (I&#39;d guess &lt;= 1.55).<br/>&gt; Try using a more recent version.<br/>&gt; <br/>&gt; Have you installed a newer DBI?<br/>&gt; <br/>&gt; Martin<br/>&gt; --<br/>&gt; Martin J. Evans<br/>&gt; Easysoft Limited<br/>&gt; http://www.easysoft.com<br/>&gt; <br/>&gt;&gt; -----Original Message-----<br/>&gt;&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt;&gt; Sent: 21 April 2008 16:33<br/>&gt;&gt; To: dbi-users@perl.org<br/>&gt;&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt;&gt;<br/>&gt;&gt; Neil Beddoe wrote:<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Thanks for looking at this Martin. I&#39;m a bit out of my depth here.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; The line in ODBC.xsi is:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; if (DBIc_CACHED_KIDS(imp_dbh)) {<br/>&gt;&gt;&gt; SvREFCNT_dec(DBIc_CACHED_KIDS(imp_dbh)); /* cast them to<br/>&gt;&gt;&gt; the winds */<br/>&gt;&gt;&gt; DBIc_CACHED_KIDS(imp_dbh) = Nullhv; #ERROR_GENERATED_HERE<br/>&gt;&gt;&gt; }<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; This is line 277, the same assignment fails in line 336.<br/>&gt;&gt; Ok, I found this:<br/>&gt;&gt;<br/>&gt;&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/>&gt;&gt;<br/>&gt;&gt; which suggests there is something I need to look into further.<br/>&gt;&gt;<br/>&gt;&gt; Martin<br/>&gt;&gt; --<br/>&gt;&gt; Martin J. Evans<br/>&gt;&gt; Easysoft Limited<br/>&gt;&gt; http://www.easysoft.com<br/>&gt;&gt;<br/>&gt;&gt;&gt; -----Original Message-----<br/>&gt;&gt;&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt;&gt;&gt; Sent: 21 April 2008 13:17<br/>&gt;&gt;&gt; To: dbi-users@perl.org<br/>&gt;&gt;&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Martin Evans wrote:<br/>&gt;&gt;&gt;&gt; Neil Beddoe wrote:<br/>&gt;&gt;&gt;&gt;&gt;&gt;&gt; You also may need to add &quot;-framework CoreFoundation&quot;<br/>&gt;&gt;&gt;&gt;&gt;&gt;&gt; to the Makefile for the LDLOADLIBS and EXTRALIBS symbols and that<br/>&gt; <br/>&gt;&gt;&gt;&gt;&gt;&gt;&gt; will<br/>&gt;&gt;&gt;&gt;&gt; be the at least one of the issues with Sybase too &gt;&gt;(see README.osx<br/>&gt; <br/>&gt;&gt;&gt;&gt;&gt; in distribution).<br/>&gt;&gt;&gt;&gt;&gt; Hello Martin, I&#39;ve tried this on my system and still no luck. I&#39;m <br/>&gt;&gt;&gt;&gt;&gt; not sure I&#39;m carrying it out correctly though. I run perl <br/>&gt;&gt;&gt;&gt;&gt; Makefile.PL and edit the Makefile it generates like this:<br/>&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; EXTRALIBS = -L/usr/lib -lodbc -framework CoreFoundation LDLOADLIBS <br/>&gt;&gt;&gt;&gt;&gt; =<br/>&gt;&gt;&gt;&gt;&gt; -L/usr/lib -lodbc -framework CoreFoundation<br/>&gt;&gt;&gt;&gt; Not having a mac I&#39;m only going on what others have told me but I <br/>&gt;&gt;&gt;&gt; believe the above to be right. However, your make has not got to the<br/>&gt; <br/>&gt;&gt;&gt;&gt; point where the framework comes into the equation yet - see below.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; ...but this generates the output below. Any help you can offer <br/>&gt;&gt;&gt;&gt;&gt; would be gratefully received.<br/>&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; Mac OS 10.5.2 Intel Core Duo<br/>&gt;&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; cc -c -I/usr/include -I.<br/>&gt;&gt;&gt;&gt;&gt; -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI -arch <br/>&gt;&gt;&gt;&gt;&gt; i386<br/>&gt;&gt;&gt;&gt;&gt; -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp <br/>&gt;&gt;&gt;&gt;&gt; -fno-strict-aliasing -Wdeclaration-after-statement<br/>&gt;&gt;&gt; -I/usr/local/include<br/>&gt;&gt;&gt;&gt;&gt; -O3 -DVERSION=\&quot;1.16_1\&quot; -DXS_VERSION=\&quot;1.16_1\&quot;<br/>&gt;&gt;&gt;&gt;&gt; &quot;-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE&quot;<br/>&gt;&gt;&gt;&gt;&gt; -I/usr/include ODBC.c<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt; These are compilation errors and they are stopping the build. What <br/>&gt;&gt;&gt;&gt; is<br/>&gt;&gt;&gt;&gt; on lines 277 and 336 of ODBC.xsi?<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt;&gt;&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt;&gt;&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt;&gt;&gt; lipo: can&#39;t open input file: /var/tmp//ccx0pa5P.out (No such file <br/>&gt;&gt;&gt;&gt;&gt; or<br/>&gt;&gt;&gt;&gt;&gt; directory)<br/>&gt;&gt;&gt;&gt;&gt; make: *** [ODBC.o] Error 1<br/>&gt;&gt;&gt;&gt; Martin<br/>&gt;&gt;&gt; I&#39;ve managed to blag an ssh session on a MAC running 10.5.2, Perl<br/>&gt;&gt;&gt; 5.8.8 and DBI 1.52. I made no changes at all to the Makefile and it<br/>&gt;&gt; built ok.<br/>&gt;&gt;&gt; However, it fails to run with:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; t/01base................ok 1/5install_driver(ODBC) failed: Can&#39;t load<br/>&gt; <br/>&gt;&gt;&gt; &#39;/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle&#39;<br/>&gt;&gt;&gt; for module DBD::ODBC:<br/>&gt;&gt;&gt; dlopen(/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bu<br/>&gt;&gt;&gt; n<br/>&gt;&gt;&gt; dl<br/>&gt;&gt;&gt; e,<br/>&gt;&gt;&gt; 2): Symbol not found: ___CFConstantStringClassReference<br/>&gt;&gt;&gt; Referenced from: <br/>&gt;&gt;&gt; /Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle<br/>&gt;&gt;&gt; Expected in: dynamic lookup<br/>&gt;&gt;&gt; at (eval 7) line 3<br/>&gt;&gt;&gt; Compilation failed in require at (eval 7) line 3.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; If I then change the Makefile to include -framework CoreFoundation in<br/>&gt; <br/>&gt;&gt;&gt; EXTRALIBS and LDLOADLIBS it gets further but unfortunately the mac I <br/>&gt;&gt;&gt; was using was Intel based (I didn&#39;t realise this at first) and the <br/>&gt;&gt;&gt; only driver I could find was built for ppc so it gave:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; mach-o, but wrong architecture<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; for the ODBC driver shared library.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; If you can mail what is on the lines you got errors for in ODBC.xsi <br/>&gt;&gt;&gt; we<br/>&gt;&gt;&gt; may be able to wwork it out.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Martin<br/>&gt;&gt;&gt; --<br/>&gt;&gt;&gt; Martin J. Evans<br/>&gt;&gt;&gt; Easysoft Limited<br/>&gt;&gt;&gt; http://www.easysoft.com<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; .<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; This message is intended only for the use of the person(s) to whom it<br/>&gt;&gt; is addressed. It may contain information which is privileged and <br/>&gt;&gt; confidential. Accordingly any unauthorised use is strictly prohibited.<br/>&gt;&gt; If you are not the intended recipient, please contact the sender as <br/>&gt;&gt; soon as possible.<br/>&gt;&gt;&gt; It is not intended as an offer or solicitation for the purchase or<br/>&gt;&gt; sale of any financial instrument or as an official confirmation of any<br/>&gt; <br/>&gt;&gt; transaction, unless specifically agreed otherwise. All market prices, <br/>&gt;&gt; data and other information are not warranted as to completeness or <br/>&gt;&gt; accuracy and are subject to change without notice. Any opinions or <br/>&gt;&gt; advice contained in this Internet email are subject to the terms and <br/>&gt;&gt; conditions expressed in any applicable governing Marble Bar Asset <br/>&gt;&gt; Management LLP&#39;s terms and conditions of business or client agreement<br/>&gt; <br/>&gt;&gt; letter. Any comments or statements made herein do not necessarily <br/>&gt;&gt; reflect those of Marble Bar Asset Management LLP.<br/>&gt;&gt;&gt; Marble Bar Asset Management LLP is regulated and authorised by the<br/>&gt;&gt; FSA.<br/>&gt;&gt; .<br/>&gt;&gt;<br/>&gt;&gt; This message is intended only for the use of the person(s) to whom it<br/>&gt; is addressed. It may contain information which is privileged and<br/>&gt; confidential. Accordingly any unauthorised use is strictly prohibited.<br/>&gt; If you are not the intended recipient, please contact the sender as soon<br/>&gt; as possible.<br/>&gt;&gt; It is not intended as an offer or solicitation for the purchase or<br/>&gt; sale of any financial instrument or as an official confirmation of any<br/>&gt; transaction, unless specifically agreed otherwise. All market prices,<br/>&gt; data and other information are not warranted as to completeness or<br/>&gt; accuracy and are subject to change without notice. Any opinions or<br/>&gt; advice contained in this Internet email are subject to the terms and<br/>&gt; conditions expressed in any applicable governing Marble Bar Asset<br/>&gt; Management LLP&#39;s terms and conditions of business or client agreement<br/>&gt; letter. Any comments or statements made herein do not necessarily<br/>&gt; reflect those of Marble Bar Asset Management LLP.<br/>&gt;&gt; Marble Bar Asset Management LLP is regulated and authorised by the<br/>&gt; FSA.<br/>&gt;&gt;<br/>&gt; <br/>&gt; .<br/>&gt; <br/>&gt; This message is intended only for the use of the person(s) to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any unauthorised use is strictly prohibited. If you are not the intended recipient, please contact the sender as soon as possible.<br/>&gt; <br/>&gt; It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any opinions or advice contained in this Internet email are subject to the terms and conditions expressed in any applicable governing Marble Bar Asset Management LLP&#39;s terms and conditions of business or client agreement letter. Any comments or statements made herein do not necessarily reflect those of Marble Bar Asset Management LLP.<br/>&gt; <br/>&gt; Marble Bar Asset Management LLP is regulated and authorised by the FSA.<br/>&gt; <br/>&gt; <br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32835.html Tue, 06 May 2008 04:36:13 +0000 RE: Unable to install DBD::ODBC on OSX Leopard 10.5.2 by Neil Beddoe Sorry. Yes I did see Tim&#39;s suggestion . I&#39;m was (am) using DBI 1.604. <br/><br/>I took a look at<br/>http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html as well<br/>but I couldn&#39;t get Tim&#39;s suggestion to compile (failed with h<br/>undefined).<br/><br/> <br/><br/>-----Original Message-----<br/>From: Martin Evans [mailto:martin.evans@easysoft.com] <br/>Sent: 06 May 2008 10:32<br/>To: Neil Beddoe<br/>Cc: dbi-users@perl.org<br/>Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/><br/>Neil Beddoe wrote:<br/>&gt; Hi Martin. Just wondering if you got any further with this. <br/><br/>Did Tim&#39;s suggestion not work for you? He said:<br/><br/>I suspect you&#39;re using an old version of DBI (I&#39;d guess &lt;= 1.55).<br/>Try using a more recent version.<br/><br/>Have you installed a newer DBI?<br/><br/>Martin<br/>--<br/>Martin J. Evans<br/>Easysoft Limited<br/>http://www.easysoft.com<br/><br/>&gt; -----Original Message-----<br/>&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt; Sent: 21 April 2008 16:33<br/>&gt; To: dbi-users@perl.org<br/>&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt; <br/>&gt; Neil Beddoe wrote:<br/>&gt;&gt; <br/>&gt;&gt; Thanks for looking at this Martin. I&#39;m a bit out of my depth here.<br/>&gt;&gt;<br/>&gt;&gt; The line in ODBC.xsi is:<br/>&gt;&gt;<br/>&gt;&gt; if (DBIc_CACHED_KIDS(imp_dbh)) {<br/>&gt;&gt; SvREFCNT_dec(DBIc_CACHED_KIDS(imp_dbh)); /* cast them to<br/>&gt;&gt; the winds */<br/>&gt;&gt; DBIc_CACHED_KIDS(imp_dbh) = Nullhv; #ERROR_GENERATED_HERE<br/>&gt;&gt; }<br/>&gt;&gt;<br/>&gt;&gt; This is line 277, the same assignment fails in line 336.<br/>&gt; <br/>&gt; Ok, I found this:<br/>&gt; <br/>&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/>&gt; <br/>&gt; which suggests there is something I need to look into further.<br/>&gt; <br/>&gt; Martin<br/>&gt; --<br/>&gt; Martin J. Evans<br/>&gt; Easysoft Limited<br/>&gt; http://www.easysoft.com<br/>&gt; <br/>&gt;&gt; -----Original Message-----<br/>&gt;&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt;&gt; Sent: 21 April 2008 13:17<br/>&gt;&gt; To: dbi-users@perl.org<br/>&gt;&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt;&gt;<br/>&gt;&gt; Martin Evans wrote:<br/>&gt;&gt;&gt; Neil Beddoe wrote:<br/>&gt;&gt;&gt;&gt;&gt;&gt; You also may need to add &quot;-framework CoreFoundation&quot;<br/>&gt;&gt;&gt;&gt;&gt;&gt; to the Makefile for the LDLOADLIBS and EXTRALIBS symbols and that<br/><br/>&gt;&gt;&gt;&gt;&gt;&gt; will<br/>&gt;&gt;&gt;&gt; be the at least one of the issues with Sybase too &gt;&gt;(see README.osx<br/><br/>&gt;&gt;&gt;&gt; in distribution).<br/>&gt;&gt;&gt;&gt; Hello Martin, I&#39;ve tried this on my system and still no luck. I&#39;m <br/>&gt;&gt;&gt;&gt; not sure I&#39;m carrying it out correctly though. I run perl <br/>&gt;&gt;&gt;&gt; Makefile.PL and edit the Makefile it generates like this:<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; EXTRALIBS = -L/usr/lib -lodbc -framework CoreFoundation LDLOADLIBS <br/>&gt;&gt;&gt;&gt; =<br/>&gt; <br/>&gt;&gt;&gt;&gt; -L/usr/lib -lodbc -framework CoreFoundation<br/>&gt;&gt;&gt; Not having a mac I&#39;m only going on what others have told me but I <br/>&gt;&gt;&gt; believe the above to be right. However, your make has not got to the<br/><br/>&gt;&gt;&gt; point where the framework comes into the equation yet - see below.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; ...but this generates the output below. Any help you can offer <br/>&gt;&gt;&gt;&gt; would be gratefully received.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; Mac OS 10.5.2 Intel Core Duo<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; cc -c -I/usr/include -I.<br/>&gt;&gt;&gt;&gt; -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI -arch <br/>&gt;&gt;&gt;&gt; i386<br/>&gt; <br/>&gt;&gt;&gt;&gt; -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp <br/>&gt;&gt;&gt;&gt; -fno-strict-aliasing -Wdeclaration-after-statement<br/>&gt;&gt; -I/usr/local/include<br/>&gt;&gt;&gt;&gt; -O3 -DVERSION=\&quot;1.16_1\&quot; -DXS_VERSION=\&quot;1.16_1\&quot;<br/>&gt;&gt;&gt;&gt; &quot;-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE&quot;<br/>&gt;&gt;&gt;&gt; -I/usr/include ODBC.c<br/>&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt; These are compilation errors and they are stopping the build. What <br/>&gt;&gt;&gt; is<br/>&gt; <br/>&gt;&gt;&gt; on lines 277 and 336 of ODBC.xsi?<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt;&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt;&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt;&gt; lipo: can&#39;t open input file: /var/tmp//ccx0pa5P.out (No such file <br/>&gt;&gt;&gt;&gt; or<br/>&gt;&gt;&gt;&gt; directory)<br/>&gt;&gt;&gt;&gt; make: *** [ODBC.o] Error 1<br/>&gt;&gt;&gt; Martin<br/>&gt;&gt; I&#39;ve managed to blag an ssh session on a MAC running 10.5.2, Perl<br/>&gt;&gt; 5.8.8 and DBI 1.52. I made no changes at all to the Makefile and it<br/>&gt; built ok.<br/>&gt;&gt; However, it fails to run with:<br/>&gt;&gt;<br/>&gt;&gt; t/01base................ok 1/5install_driver(ODBC) failed: Can&#39;t load<br/><br/>&gt;&gt; &#39;/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle&#39;<br/>&gt;&gt; for module DBD::ODBC:<br/>&gt;&gt; dlopen(/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bu<br/>&gt;&gt; n<br/>&gt;&gt; dl<br/>&gt;&gt; e,<br/>&gt;&gt; 2): Symbol not found: ___CFConstantStringClassReference<br/>&gt;&gt; Referenced from: <br/>&gt;&gt; /Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle<br/>&gt;&gt; Expected in: dynamic lookup<br/>&gt;&gt; at (eval 7) line 3<br/>&gt;&gt; Compilation failed in require at (eval 7) line 3.<br/>&gt;&gt;<br/>&gt;&gt; If I then change the Makefile to include -framework CoreFoundation in<br/><br/>&gt;&gt; EXTRALIBS and LDLOADLIBS it gets further but unfortunately the mac I <br/>&gt;&gt; was using was Intel based (I didn&#39;t realise this at first) and the <br/>&gt;&gt; only driver I could find was built for ppc so it gave:<br/>&gt;&gt;<br/>&gt;&gt; mach-o, but wrong architecture<br/>&gt;&gt;<br/>&gt;&gt; for the ODBC driver shared library.<br/>&gt;&gt;<br/>&gt;&gt; If you can mail what is on the lines you got errors for in ODBC.xsi <br/>&gt;&gt; we<br/>&gt; <br/>&gt;&gt; may be able to wwork it out.<br/>&gt;&gt;<br/>&gt;&gt; Martin<br/>&gt;&gt; --<br/>&gt;&gt; Martin J. Evans<br/>&gt;&gt; Easysoft Limited<br/>&gt;&gt; http://www.easysoft.com<br/>&gt;&gt;<br/>&gt;&gt; .<br/>&gt;&gt;<br/>&gt;&gt; This message is intended only for the use of the person(s) to whom it<br/>&gt; is addressed. It may contain information which is privileged and <br/>&gt; confidential. Accordingly any unauthorised use is strictly prohibited.<br/>&gt; If you are not the intended recipient, please contact the sender as <br/>&gt; soon as possible.<br/>&gt;&gt; It is not intended as an offer or solicitation for the purchase or<br/>&gt; sale of any financial instrument or as an official confirmation of any<br/><br/>&gt; transaction, unless specifically agreed otherwise. All market prices, <br/>&gt; data and other information are not warranted as to completeness or <br/>&gt; accuracy and are subject to change without notice. Any opinions or <br/>&gt; advice contained in this Internet email are subject to the terms and <br/>&gt; conditions expressed in any applicable governing Marble Bar Asset <br/>&gt; Management LLP&#39;s terms and conditions of business or client agreement<br/><br/>&gt; letter. Any comments or statements made herein do not necessarily <br/>&gt; reflect those of Marble Bar Asset Management LLP.<br/>&gt;&gt; Marble Bar Asset Management LLP is regulated and authorised by the<br/>&gt; FSA.<br/>&gt;&gt;<br/>&gt; <br/>&gt; .<br/>&gt; <br/>&gt; This message is intended only for the use of the person(s) to whom it<br/>is addressed. It may contain information which is privileged and<br/>confidential. Accordingly any unauthorised use is strictly prohibited.<br/>If you are not the intended recipient, please contact the sender as soon<br/>as possible.<br/>&gt; <br/>&gt; It is not intended as an offer or solicitation for the purchase or<br/>sale of any financial instrument or as an official confirmation of any<br/>transaction, unless specifically agreed otherwise. All market prices,<br/>data and other information are not warranted as to completeness or<br/>accuracy and are subject to change without notice. Any opinions or<br/>advice contained in this Internet email are subject to the terms and<br/>conditions expressed in any applicable governing Marble Bar Asset<br/>Management LLP&#39;s terms and conditions of business or client agreement<br/>letter. Any comments or statements made herein do not necessarily<br/>reflect those of Marble Bar Asset Management LLP.<br/>&gt; <br/>&gt; Marble Bar Asset Management LLP is regulated and authorised by the<br/>FSA.<br/>&gt; <br/>&gt; <br/><br/>.<br/><br/>This message is intended only for the use of the person(s) to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any unauthorised use is strictly prohibited. If you are not the intended recipient, please contact the sender as soon as possible.<br/><br/>It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any opinions or advice contained in this Internet email are subject to the terms and conditions expressed in any applicable governing Marble Bar Asset Management LLP&#39;s terms and conditions of business or client agreement letter. Any comments or statements made herein do not necessarily reflect those of Marble Bar Asset Management LLP.<br/><br/>Marble Bar Asset Management LLP is regulated and authorised by the FSA.<br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32834.html Tue, 06 May 2008 03:24:45 +0000 Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2 by Martin Evans Neil Beddoe wrote:<br/>&gt; Hi Martin. Just wondering if you got any further with this. <br/><br/>Did Tim&#39;s suggestion not work for you? He said:<br/><br/>I suspect you&#39;re using an old version of DBI (I&#39;d guess &lt;= 1.55).<br/>Try using a more recent version.<br/><br/>Have you installed a newer DBI?<br/><br/>Martin<br/>-- <br/>Martin J. Evans<br/>Easysoft Limited<br/>http://www.easysoft.com<br/><br/>&gt; -----Original Message-----<br/>&gt; From: Martin Evans [mailto:martin.evans@easysoft.com] <br/>&gt; Sent: 21 April 2008 16:33<br/>&gt; To: dbi-users@perl.org<br/>&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt; <br/>&gt; Neil Beddoe wrote:<br/>&gt;&gt; <br/>&gt;&gt; Thanks for looking at this Martin. I&#39;m a bit out of my depth here.<br/>&gt;&gt;<br/>&gt;&gt; The line in ODBC.xsi is:<br/>&gt;&gt;<br/>&gt;&gt; if (DBIc_CACHED_KIDS(imp_dbh)) {<br/>&gt;&gt; SvREFCNT_dec(DBIc_CACHED_KIDS(imp_dbh)); /* cast them to<br/>&gt;&gt; the winds */<br/>&gt;&gt; DBIc_CACHED_KIDS(imp_dbh) = Nullhv; #ERROR_GENERATED_HERE<br/>&gt;&gt; }<br/>&gt;&gt;<br/>&gt;&gt; This is line 277, the same assignment fails in line 336.<br/>&gt; <br/>&gt; Ok, I found this:<br/>&gt; <br/>&gt; http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/>&gt; <br/>&gt; which suggests there is something I need to look into further.<br/>&gt; <br/>&gt; Martin<br/>&gt; --<br/>&gt; Martin J. Evans<br/>&gt; Easysoft Limited<br/>&gt; http://www.easysoft.com<br/>&gt; <br/>&gt;&gt; -----Original Message-----<br/>&gt;&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt;&gt; Sent: 21 April 2008 13:17<br/>&gt;&gt; To: dbi-users@perl.org<br/>&gt;&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt;&gt;<br/>&gt;&gt; Martin Evans wrote:<br/>&gt;&gt;&gt; Neil Beddoe wrote:<br/>&gt;&gt;&gt;&gt;&gt;&gt; You also may need to add &quot;-framework CoreFoundation&quot;<br/>&gt;&gt;&gt;&gt;&gt;&gt; to the Makefile for the LDLOADLIBS and EXTRALIBS symbols and that <br/>&gt;&gt;&gt;&gt;&gt;&gt; will<br/>&gt;&gt;&gt;&gt; be the at least one of the issues with Sybase too &gt;&gt;(see README.osx <br/>&gt;&gt;&gt;&gt; in distribution).<br/>&gt;&gt;&gt;&gt; Hello Martin, I&#39;ve tried this on my system and still no luck. I&#39;m <br/>&gt;&gt;&gt;&gt; not sure I&#39;m carrying it out correctly though. I run perl <br/>&gt;&gt;&gt;&gt; Makefile.PL and edit the Makefile it generates like this:<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; EXTRALIBS = -L/usr/lib -lodbc -framework CoreFoundation LDLOADLIBS =<br/>&gt; <br/>&gt;&gt;&gt;&gt; -L/usr/lib -lodbc -framework CoreFoundation<br/>&gt;&gt;&gt; Not having a mac I&#39;m only going on what others have told me but I <br/>&gt;&gt;&gt; believe the above to be right. However, your make has not got to the <br/>&gt;&gt;&gt; point where the framework comes into the equation yet - see below.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; ...but this generates the output below. Any help you can offer <br/>&gt;&gt;&gt;&gt; would<br/>&gt;&gt;&gt;&gt; be gratefully received.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; Mac OS 10.5.2 Intel Core Duo<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; cc -c -I/usr/include -I.<br/>&gt;&gt;&gt;&gt; -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI -arch i386<br/>&gt; <br/>&gt;&gt;&gt;&gt; -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp <br/>&gt;&gt;&gt;&gt; -fno-strict-aliasing -Wdeclaration-after-statement<br/>&gt;&gt; -I/usr/local/include<br/>&gt;&gt;&gt;&gt; -O3 -DVERSION=\&quot;1.16_1\&quot; -DXS_VERSION=\&quot;1.16_1\&quot;<br/>&gt;&gt;&gt;&gt; &quot;-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE&quot;<br/>&gt;&gt;&gt;&gt; -I/usr/include ODBC.c<br/>&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt; These are compilation errors and they are stopping the build. What is<br/>&gt; <br/>&gt;&gt;&gt; on lines 277 and 336 of ODBC.xsi?<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt;&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt;&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt;&gt; lipo: can&#39;t open input file: /var/tmp//ccx0pa5P.out (No such file or<br/>&gt;&gt;&gt;&gt; directory)<br/>&gt;&gt;&gt;&gt; make: *** [ODBC.o] Error 1<br/>&gt;&gt;&gt; Martin<br/>&gt;&gt; I&#39;ve managed to blag an ssh session on a MAC running 10.5.2, Perl <br/>&gt;&gt; 5.8.8 and DBI 1.52. I made no changes at all to the Makefile and it<br/>&gt; built ok.<br/>&gt;&gt; However, it fails to run with:<br/>&gt;&gt;<br/>&gt;&gt; t/01base................ok 1/5install_driver(ODBC) failed: Can&#39;t load <br/>&gt;&gt; &#39;/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle&#39; <br/>&gt;&gt; for module DBD::ODBC:<br/>&gt;&gt; dlopen(/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bun<br/>&gt;&gt; dl<br/>&gt;&gt; e,<br/>&gt;&gt; 2): Symbol not found: ___CFConstantStringClassReference<br/>&gt;&gt; Referenced from: <br/>&gt;&gt; /Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle<br/>&gt;&gt; Expected in: dynamic lookup<br/>&gt;&gt; at (eval 7) line 3<br/>&gt;&gt; Compilation failed in require at (eval 7) line 3.<br/>&gt;&gt;<br/>&gt;&gt; If I then change the Makefile to include -framework CoreFoundation in <br/>&gt;&gt; EXTRALIBS and LDLOADLIBS it gets further but unfortunately the mac I <br/>&gt;&gt; was using was Intel based (I didn&#39;t realise this at first) and the <br/>&gt;&gt; only driver I could find was built for ppc so it gave:<br/>&gt;&gt;<br/>&gt;&gt; mach-o, but wrong architecture<br/>&gt;&gt;<br/>&gt;&gt; for the ODBC driver shared library.<br/>&gt;&gt;<br/>&gt;&gt; If you can mail what is on the lines you got errors for in ODBC.xsi we<br/>&gt; <br/>&gt;&gt; may be able to wwork it out.<br/>&gt;&gt;<br/>&gt;&gt; Martin<br/>&gt;&gt; --<br/>&gt;&gt; Martin J. Evans<br/>&gt;&gt; Easysoft Limited<br/>&gt;&gt; http://www.easysoft.com<br/>&gt;&gt;<br/>&gt;&gt; .<br/>&gt;&gt;<br/>&gt;&gt; This message is intended only for the use of the person(s) to whom it<br/>&gt; is addressed. It may contain information which is privileged and<br/>&gt; confidential. Accordingly any unauthorised use is strictly prohibited.<br/>&gt; If you are not the intended recipient, please contact the sender as soon<br/>&gt; as possible.<br/>&gt;&gt; It is not intended as an offer or solicitation for the purchase or<br/>&gt; sale of any financial instrument or as an official confirmation of any<br/>&gt; transaction, unless specifically agreed otherwise. All market prices,<br/>&gt; data and other information are not warranted as to completeness or<br/>&gt; accuracy and are subject to change without notice. Any opinions or<br/>&gt; advice contained in this Internet email are subject to the terms and<br/>&gt; conditions expressed in any applicable governing Marble Bar Asset<br/>&gt; Management LLP&#39;s terms and conditions of business or client agreement<br/>&gt; letter. Any comments or statements made herein do not necessarily<br/>&gt; reflect those of Marble Bar Asset Management LLP.<br/>&gt;&gt; Marble Bar Asset Management LLP is regulated and authorised by the<br/>&gt; FSA.<br/>&gt;&gt;<br/>&gt; <br/>&gt; .<br/>&gt; <br/>&gt; This message is intended only for the use of the person(s) to whom it is addressed. It may contain information which is privileged and confidential. Accordingly any unauthorised use is strictly prohibited. If you are not the intended recipient, please contact the sender as soon as possible.<br/>&gt; <br/>&gt; It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any opinions or advice contained in this Internet email are subject to the terms and conditions expressed in any applicable governing Marble Bar Asset Management LLP&#39;s terms and conditions of business or client agreement letter. Any comments or statements made herein do not necessarily reflect those of Marble Bar Asset Management LLP.<br/>&gt; <br/>&gt; Marble Bar Asset Management LLP is regulated and authorised by the FSA.<br/>&gt; <br/>&gt; <br/> http://www.nntp.perl.org/group/perl.dbi.users/2008/05/msg32833.html Tue, 06 May 2008 02:31:58 +0000 RE: Unable to install DBD::ODBC on OSX Leopard 10.5.2 by Neil Beddoe Hi Martin. Just wondering if you got any further with this. <br/><br/>-----Original Message-----<br/>From: Martin Evans [mailto:martin.evans@easysoft.com] <br/>Sent: 21 April 2008 16:33<br/>To: dbi-users@perl.org<br/>Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/><br/>Neil Beddoe wrote:<br/>&gt; <br/>&gt; Thanks for looking at this Martin. I&#39;m a bit out of my depth here.<br/>&gt; <br/>&gt; The line in ODBC.xsi is:<br/>&gt; <br/>&gt; if (DBIc_CACHED_KIDS(imp_dbh)) {<br/>&gt; SvREFCNT_dec(DBIc_CACHED_KIDS(imp_dbh)); /* cast them to<br/>&gt; the winds */<br/>&gt; DBIc_CACHED_KIDS(imp_dbh) = Nullhv; #ERROR_GENERATED_HERE<br/>&gt; }<br/>&gt; <br/>&gt; This is line 277, the same assignment fails in line 336.<br/><br/>Ok, I found this:<br/><br/>http://www.nntp.perl.org/group/perl.dbi.dev/2007/05/msg4987.html<br/><br/>which suggests there is something I need to look into further.<br/><br/>Martin<br/>--<br/>Martin J. Evans<br/>Easysoft Limited<br/>http://www.easysoft.com<br/><br/>&gt; -----Original Message-----<br/>&gt; From: Martin Evans [mailto:martin.evans@easysoft.com]<br/>&gt; Sent: 21 April 2008 13:17<br/>&gt; To: dbi-users@perl.org<br/>&gt; Subject: Re: Unable to install DBD::ODBC on OSX Leopard 10.5.2<br/>&gt; <br/>&gt; Martin Evans wrote:<br/>&gt;&gt; Neil Beddoe wrote:<br/>&gt;&gt;&gt;&gt;&gt; You also may need to add &quot;-framework CoreFoundation&quot;<br/>&gt;&gt;&gt;&gt;&gt; to the Makefile for the LDLOADLIBS and EXTRALIBS symbols and that <br/>&gt;&gt;&gt;&gt;&gt; will<br/>&gt;&gt;&gt; be the at least one of the issues with Sybase too &gt;&gt;(see README.osx <br/>&gt;&gt;&gt; in distribution).<br/>&gt;&gt;&gt; Hello Martin, I&#39;ve tried this on my system and still no luck. I&#39;m <br/>&gt;&gt;&gt; not sure I&#39;m carrying it out correctly though. I run perl <br/>&gt;&gt;&gt; Makefile.PL and edit the Makefile it generates like this:<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; EXTRALIBS = -L/usr/lib -lodbc -framework CoreFoundation LDLOADLIBS =<br/><br/>&gt;&gt;&gt; -L/usr/lib -lodbc -framework CoreFoundation<br/>&gt;&gt; Not having a mac I&#39;m only going on what others have told me but I <br/>&gt;&gt; believe the above to be right. However, your make has not got to the <br/>&gt;&gt; point where the framework comes into the equation yet - see below.<br/>&gt;&gt;<br/>&gt;&gt;<br/>&gt;&gt;&gt; ...but this generates the output below. Any help you can offer <br/>&gt;&gt;&gt; would<br/>&gt; <br/>&gt;&gt;&gt; be gratefully received.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Mac OS 10.5.2 Intel Core Duo<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; cc -c -I/usr/include -I.<br/>&gt;&gt;&gt; -I/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBI -arch i386<br/><br/>&gt;&gt;&gt; -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp <br/>&gt;&gt;&gt; -fno-strict-aliasing -Wdeclaration-after-statement<br/>&gt; -I/usr/local/include<br/>&gt;&gt;&gt; -O3 -DVERSION=\&quot;1.16_1\&quot; -DXS_VERSION=\&quot;1.16_1\&quot;<br/>&gt;&gt;&gt; &quot;-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE&quot;<br/>&gt;&gt;&gt; -I/usr/include ODBC.c<br/>&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_disconnect&#39;:<br/>&gt;&gt;&gt; ODBC.xsi:277: error: invalid lvalue in assignment<br/>&gt;&gt;&gt; ODBC.xsi: In function &#39;XS_DBD__ODBC__db_DESTROY&#39;:<br/>&gt;&gt;&gt; ODBC.xsi:336: error: invalid lvalue in assignment<br/>&gt;&gt; These are compilation errors and they are stopping the build. What is<br/><br/>&gt;&gt; on lines 277 and 336 of ODBC.xsi?<br/>&gt;&gt;<br/>&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt; ODBC.xs: In function &#39;XS_DBD__ODBC__dr_data_sources&#39;:<br/>&gt;&gt;&gt; ODBC.xs:246: warning: pointer targets in passing argument 1 of<br/>&gt; &#39;strcpy&#39;<br/>&gt;&gt;&gt; differ in signedness<br/>&gt;&gt;&gt; ODBC.xs:266: warning: pointer targets in passing argument 2 of <br/>&gt;&gt;&gt; &#39;Perl_newSVpv&#39; differ in signedness<br/>&gt;&gt;&gt; lipo: can&#39;t open input file: /var/tmp//ccx0pa5P.out (No such file or<br/>&gt;&gt;&gt; directory)<br/>&gt;&gt;&gt; make: *** [ODBC.o] Error 1<br/>&gt;&gt; Martin<br/>&gt; <br/>&gt; I&#39;ve managed to blag an ssh session on a MAC running 10.5.2, Perl <br/>&gt; 5.8.8 and DBI 1.52. I made no changes at all to the Makefile and it<br/>built ok.<br/>&gt; However, it fails to run with:<br/>&gt; <br/>&gt; t/01base................ok 1/5install_driver(ODBC) failed: Can&#39;t load <br/>&gt; &#39;/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle&#39; <br/>&gt; for module DBD::ODBC:<br/>&gt; dlopen(/Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bun<br/>&gt; dl<br/>&gt; e,<br/>&gt; 2): Symbol not found: ___CFConstantStringClassReference<br/>&gt; Referenced from: <br/>&gt; /Users/wez/mje/DBD-ODBC-1.16_1/blib/arch/auto/DBD/ODBC/ODBC.bundle<br/>&gt; Expected in: dynamic lookup<br/>&gt; at (eval 7) line 3<br/>&gt; Compilation failed in require at (eval 7) line 3.<br/>&gt; <br/>&gt; If I then change the Makefile to include -framework CoreFoundation in <br/>&gt; EXTRALIBS and LDLOADLIBS it gets further but unfortunately the mac I <br/>&gt; was using was Intel based (I didn&#39;t realise this at first) and the <br/>&gt; only driver I could find was built for ppc so it gave:<br/>&gt; <br/>&gt; mach-o, but wrong architecture<br/>&gt; <br/>&gt; for the ODBC driver shared library.<br/>&gt; <br/>&gt; If you can mail what is on the lines you got errors for in ODBC.xsi we<br/><br/>&gt; may be able to wwork it out.<br/>&gt; <br/>&gt; Martin<br/>&gt; --<br/>&gt; Martin J. Evans<br/>&gt; Easysoft Limited<br/>&gt; http://www.easysoft.com<br/>&gt; <br/>&gt; .<br/>&gt; <br/>&gt; This message is intended only for the use of the person(s) to whom it<br/>is addressed. It may contain information which is privileged and<br/>confidential. Accordingly any unauthorised use is strictly prohibited.<br/>If you are not the intended recipient, please contact the sender as soon<br/>as possible.<br/>&gt; <br/>&gt; I