Menu

#6 couldn't load library "libpgtcl.dll": invalid argument - need 64 bit support

None
open
nobody
None
1
2013-06-11
2013-01-30
No

I am reluctant to report this as a bug, but since I don't see any resolution to this anywhere I don't know how to proceed. I see at least one other person has had this problem, but see no resolution. http://pgtclng.sourceforge.net/thread1.html.

I have tried installing pgtcl 2.0 on two Windows 7 x64 machines, I used the pgtcl2.0.0-win32.zip download and installing the DLL's as described in the documentation. On both machines, when attempting to run "package require Pgtcl" I get the error 'couldn't load library "C:/Tcl/lib/Pgtcl2.0/libpgtcl.dll": invalid argument'.

I am able to access psql from the command line, so I believe the required psql DLL's are on the path.

Related

Discussion: Win 7 x64 mingw.mak - cannot find -lpq

Discussion

  • lbayuk

    lbayuk - 2013-01-30

    (It's OK to report this as a bug, although the discussion forum would probably be better - easier to use... either is much preferred vs trying to email me...)

    It might be the same problem in that thread, or it could be something totally different. (For reference, here is the correct clickable URL.) Since I'm not aware that one was ever solved, it doesn't help anyway. That Tcl error message is too general to help - it means some unspecified error occurred.

    Two new factors are Windows 7, and 64 bit. The download zip has a DLL built with Windows XP 32 bit. I have no idea if these work on Windows7 and/or 64-bit Windows, since I currently have no access to either for testing. Hopefully this will eventually change, but right now I'm stuck.

    Any chance you could try building it from source with MinGW on your Win7-64bit system?

    For completeness, not to give up on pgtclng, there are two other implementations that might be worth a look. Although I have nothing to do with them, there is another Pgtcl implementation hosted at http://flightaware.github.com/Pgtcl/ . It is possible they do better with your platform.

    There is also my pure-Tcl implementation at https://sourceforge.net/projects/pgintcl/ which needs no compilation and should run under any Tcl, but again I have no way to test it on 64-bit systems.

     
  • Carlo Stonebanks

    Sorry for the email, I didn't know about this particular forum. Would you prefer I move this to the discussion forum, or continue here?

     
  • lbayuk

    lbayuk - 2013-02-07

    Sorry for the late reply. We might as well continue over on your discussion thread. (Anyone else reading: See the Related link after the bug description above.)

     
  • lbayuk

    lbayuk - 2013-02-13
    • summary: couldn't load library "libpgtcl.dll": invalid argument --> couldn't load library "libpgtcl.dll": invalid argument - need 64 bit support
     
  • lbayuk

    lbayuk - 2013-02-13

    The issue was found to be related to mixing 32-bit and 64-bit. The original reporter found that when using 32-bit PostgreSQL and 32-bit Tcl, the pre-built pgtclng DLL file did load and run on his 64-bit Windows 7 system, but not with 64-bit PostgreSQL and/or Tcl.

    Also an attempt to build a 64-bit libpgtcl.dll using mingw-w64 resulting in a compiler warning that indicates further testing is needed.

    I am adding to the title of this bug report to indicate a need for 64-bit support, and leaving this open.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.