Greetings SQSH Gurus
I need some help !!
I am trying to get sqsh-2.5.16.1 installed on AIX.
I am using gcc.
So tar xvf extracts and creates the folder OK.
configure step goes OK.
But make fails with following messages for "ld" phase
<...snip>
gcc -L/sybase/15/OCS-15_0/lib cmd_alias.o cmd_bcp.o cmd_buf.o cmd_connect.o cmd_do.o cmd_echo.o cmd_exit.o cmd_for.o cmd_func.o cmd_go.o cmd_help.o cmd_history.o cmd_if.o cmd_input.o cmd_jobs.o cmd_kill.o cmd_lock.o cmd_loop.o cmd_misc.o cmd_read.o cmd_reconnect.o cmd_redraw.o cmd_reset.o cmd_return.o cmd_rpc.o cmd_run.o cmd_set.o cmd_shell.o cmd_show.o cmd_sleep.o cmd_wait.o cmd_warranty.o cmd_while.o var_ctlib.o var_date.o var_debug.o var_dsp.o var_hist.o var_misc.o var_passwd.o var_readline.o var_thresh.o dsp.o dsp_bcp.o dsp_csv.o dsp_conv.o dsp_desc.o dsp_horiz.o dsp_html.o dsp_meta.o dsp_none.o dsp_out.o dsp_pretty.o dsp_vert.o dsp_x.o sqsh_alias.o sqsh_args.o sqsh_avl.o sqsh_buf.o sqsh_cmd.o sqsh_compat.o sqsh_debug.o sqsh_env.o sqsh_error.o sqsh_expand.o sqsh_fd.o sqsh_filter.o sqsh_fork.o sqsh_func.o sqsh_getopt.o sqsh_global.o sqsh_history.o sqsh_init.o sqsh_job.o sqsh_readline.o sqsh_sig.o sqsh_sigcld.o sqsh_stdin.o sqsh_strchr.o sqsh_tok.o sqsh_varbuf.o sqsh_main.o -lsybblk -lsybcomn -lsybcs -lsybct -lsybintl -lsybtcl -lsybunic -lm -lreadline -lcurses -lcrypt sqsh_parser/sqsh_parser.a -o sqsh
ld: 0706-006 Cannot find or open library file: -l sybblk
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l sybcomn
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l sybcs
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l sybct
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l sybintl
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l sybtcl
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l sybunic
ld:open(): A file or directory in the path name does not exist.
collect2: error: ld returned 255 exit status
make: 1254-004 The error code from the last command is 1.
I have verified that the library path has the necessary libraies e.g. for sybblk libaries, I have following files
sybase@sw53:/dba/scratch/Avis/sqsh-2.5> ls -l /sybase/15/OCS-15_0/lib/*sybblk*
-rw-r--r-- 1 sybase dba 303 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk.exp
-rwxr-xr-x 1 sybase dba 165212 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk.so
-rw-r--r-- 1 sybase dba 203127 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk64.a
-rw-r--r-- 1 sybase dba 305 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk64.exp
-rwxr-xr-x 1 sybase dba 186924 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk64.so
-rw-r--r-- 1 sybase dba 305 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk_r.exp
-rwxr-xr-x 1 sybase dba 166644 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk_r.so
-rw-r--r-- 1 sybase dba 203503 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk_r64.a
-rw-r--r-- 1 sybase dba 307 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk_r64.exp
-rwxr-xr-x 1 sybase dba 188460 Dec 12 2011 /sybase/15/OCS-15_0/lib/libsybblk_r64.so
I have verified that the library path has the necessary libraies e.g. for sybblk libaries, I have following files
And LIBPATH is
sybase@sw53:/dba/scratch/Avis/sqsh-2.5> echo $LIBPATH
/sybase/15/ASE-15_0/lib:/sybase/15/OCS-15_0/lib:/sybase/15/OCS-15_0/lib3p:/sybase/15/OCS-15_0/lib3p64:/oracle/11.2.0.3/lib:/usr/lib:/usr/lpp/mqm/lib
I have attached my session run.
TIA
Aviansh