Package Details: sqsh 2.5.16.1-4

Git Clone URL: https://aur.archlinux.org/sqsh.git (read-only, click to copy)
Package Base: sqsh
Description: Unix/Linux replacement for Sybase's isql
Upstream URL: https://sourceforge.net/projects/sqsh/
Licenses: GPL
Submitter: None
Maintainer: terminalmage
Last Packager: terminalmage
Votes: 8
Popularity: 0.000000
First Submitted: 2008-07-15 18:41 (UTC)
Last Updated: 2021-05-10 15:39 (UTC)

Latest Comments

terminalmage commented on 2021-05-10 15:40 (UTC)

Done. :)

micwoj92 commented on 2021-05-10 05:10 (UTC)

Hello, could you update download to https?

tkel commented on 2017-02-26 00:55 (UTC)

Great job on this. Thank you terminalimage!

terminalmage commented on 2017-01-12 17:57 (UTC)

Sorry, this took some effort to track down. The issue wasn't with readline, but rather with freetds. To get it to build, I had to build a patched freetds which includes a symbol which freetds appears to have removed in newer releases. I've just submitted the patched freetds to the AUR here: https://aur.archlinux.org/packages/freetds-patched-enum/ Let me know if this works for you, I no longer have a MSSQL database handy to test sqsh.

terminalmage commented on 2016-12-01 08:02 (UTC)

Sorry for the delay, I'll try to get this updated in the next couple days.

mayweed commented on 2016-12-01 07:42 (UTC)

Hello @terminalmage: it does not work with new readline anymore...I try to rebuild it from the package and get that error: gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong -DSQSH_RC='"/etc/sqshrc:${HOME}/.sqshrc"' -DUSE_READLINE -DUSE_X11 -I/usr/include -D_FORTIFY_SOURCE=2 -c -o cmd_connect.o cmd_connect.c cmd_connect.c: In function ‘cmd_connect’: cmd_connect.c:864:23: error: ‘CS_TDS_80’ undeclared (first use in this function) version = CS_TDS_80; ^~~~~~~~~ cmd_connect.c:864:23: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [<builtin>: cmd_connect.o] Error 1 make[1]: Leaving directory '/home/.../Desktop/sqsh/src/sqsh-2.5/src' make: *** [Makefile:34: build-subdirs] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

tkel commented on 2016-11-15 20:52 (UTC)

This no longer works with readline 7.0.

terminalmage commented on 2016-02-10 04:05 (UTC)

Thanks, I've updated the PKGBUILD.

tkel commented on 2016-02-09 21:37 (UTC)

Doesn't build: ==> ERROR: license should be an array

terminalmage commented on 2015-04-21 22:14 (UTC)

Whoops, thanks for catching that. I've also updated the version.

lykwydchykyn commented on 2015-04-21 21:22 (UTC)

There seems to be an error in the "arch=" line of the PKGBUILD. It currently reads: arch=('x86_64 i686') It should read: arch=('x86_64' 'i686') This change was necessary for it to compile on my system using pacaur.

terminalmage commented on 2014-04-02 18:36 (UTC)

Great, thanks for confirming!

facecool commented on 2014-04-02 07:45 (UTC)

@terminalmage just build 2.5 from your PKGBUILD without any errors. sqsh seems to be up and running!

terminalmage commented on 2014-04-02 03:48 (UTC)

@facecool 2.5 was just released, I've updated the PKGBUILD and removed the two patches, and it builds find against the newer readline. Can you try building 2.5 using the updated PKGBUILD and see if it succeeds? They may have already fixed the readline issue in the patch you gave me.

facecool commented on 2014-03-25 07:26 (UTC)

@terminalmage, currently successfully built sqsh with yaourt. Maybe it's possible to send this patch to upstream?

terminalmage commented on 2014-03-24 15:20 (UTC)

@facecool thanks, I was able to replicate the build error when I ran updates a couple days ago and a new readline was installed. I have added the patch you provided to the PKGBUILD.

facecool commented on 2014-03-11 08:04 (UTC)

ok, after doing some research I found http://permalink.gmane.org/gmane.comp.handhelds.openembedded.core/49007 They told that CPPFunction typedef is deprecated and was removed from readline 6.3. And gave a solution which i apply as patch and was able to biuld sqsh-2.4 without any errors. Here is the patch: https://gist.github.com/anonymous/9481406 You may apply it in PKGBUILD the same way as linked_libs.patch

facecool commented on 2014-03-11 06:41 (UTC)

@terminalmage, I had both readline and libedit installed: core/libedit 20130601_3.1-1 core/readline 6.3-1 but build is failed

terminalmage commented on 2014-03-06 16:14 (UTC)

Sorry, meant to say the only *packages*, not files.

terminalmage commented on 2014-03-06 16:13 (UTC)

facecool, dlin, the only files in /usr/include which reference CPPFunction are readline and libedit. Are either of you missing one of these?

facecool commented on 2014-03-06 07:19 (UTC)

I confirm that build of 2.4-1 failed for me. Error messages are same as @dlin reported. It may be due to lack of some c++ library in make dependencies.

jonesdeini commented on 2014-03-04 02:15 (UTC)

@dlin I recently installed the latest version with no issues. Can you provide us with more information?

dlin commented on 2014-03-04 01:57 (UTC)

Build failed. sqsh_readline.c: In function ‘sqsh_readline_init’: sqsh_readline.c:162:41: error: ‘CPPFunction’ undeclared (first use in this function) rl_attempted_completion_function = (CPPFunction*)sqsh_completion ; ^ sqsh_readline.c:162:41: note: each undeclared identifier is reported only once for each function it appears in sqsh_readline.c:162:53: error: expected expression before ‘)’ token rl_attempted_completion_function = (CPPFunction*)sqsh_completion ; ^ <builtin>: recipe for target 'sqsh_readline.o' failed make[1]: *** [sqsh_readline.o] Error 1 make[1]: Leaving directory '/tmp/yaourt-tmp-dlin/aur-sqsh/src/sqsh-2.4/src' Makefile:34: recipe for target 'build-subdirs' failed make: *** [build-subdirs] Error 2

terminalmage commented on 2014-03-02 16:55 (UTC)

@jonesdeini nice, thanks! It looks like SYBASE_OS variable in the configure script is the actual culprit. I patched it, and updated the source package to version 2.4. Thanks again for tracking this down. I've opened a bug report on the sqsh tracker to find out if this is an actual bug in sqsh or if I am just leaving out a necessary argument to the configure script.

jonesdeini commented on 2014-03-02 15:58 (UTC)

It looks like configure did not determine the correct SYBASE_LIBS. The SYBASE_LIBS determined by configure are -ldl -lm. I was able to successfully install the package by adding -lct -lnsl to the Makefile. Just to be clear, the line in my Makefile looked like this: SYBASE_LIBS = -lct -lnsl -ldl -lm

terminalmage commented on 2014-02-18 04:27 (UTC)

I tried updating to the latest release (2.4) and I get the same build error. It seems to not be able to properly link the freetds stuff, even though it finds it when running ./configure. I don't really have time to troubleshoot this at the moment, unfortunately.

anderslundstedt commented on 2014-02-18 03:49 (UTC)

Build fails: http://pastebin.com/x1jjH6ch

terminalmage commented on 2013-05-22 19:37 (UTC)

Thanks. I made the recommended changes, and also updated to 2.2.0 since it was released on 11 May.

anshumanb commented on 2013-05-19 23:27 (UTC)

This installed sqshrc under /usr/etc instead of /etc. Is this expected? I had to change ./configure --prefix=/usr --with-x --with-readline to ./configure --prefix=/usr --sysconfdir=/etc --with-x --with-readline to get sqshrc placed under /etc. Also, makepkg 4.1.1 spits out WARNING: Using a PKGBUILD without a package() function is deprecated.

terminalmage commented on 2013-03-01 17:46 (UTC)

Updated for 2.1.9.

terminalmage commented on 2012-09-17 02:48 (UTC)

Updated to 2.1.8

terminalmage commented on 2010-07-30 21:03 (UTC)

Also added x86_64 support to PKGBUILD as it's running just fine on my Arch64 box.

terminalmage commented on 2010-07-30 21:02 (UTC)

Adopted package, updated to version 2.1.7, and added readline support.

commented on 2010-06-24 21:24 (UTC)

Version 2.1.7 now available.

commented on 2010-06-17 14:04 (UTC)

Can you add x86_64 as well in your PKGBUILD? It seems to be working just fine.