From: Barney, K. L <Ker...@us...> - 2011-04-15 18:08:18
|
The problem was when running csql it would fail with: csql: symbol lookup error: /usr/lib/libreadline.so.5: undefined symbol: PC Kerry Barney Database Administrator Platforms, United Space Alliance Kennedy Space Center, FL 321-861-7467 ________________________________ From: Barney, Kerry L Sent: Friday, April 15, 2011 2:06 PM To: csq...@li... Subject: Re: [Csql-users] undefined symbol: PC It appears to be working! Solution was: Ran into Red Hat bug 499837(see https://bugzilla.redhat.com/show_bug.cgi?id=499837) The automake package wasn't installed right on my machine. That is why I couldn't use the "configure" command successfully before., so I had manually edited one of the makefiles adding -lncurses. Once the automake package was installed properly we could use the "configure: command to set LDFLAGS to -lncurses. I did not want to cloud the issue but part of what made this work was I changed 2 occurrences of _jstring to __jstring (2 underlines instead of 1) in csql3.0-src/src/jdbc/JSqlStatement.cxx. The error I had was: JSqlStatement.cxx:702: error: '_jstring' was not declared in this scope I am not sure how I figured this out but it seems like alot of people could have that problem too. Kerry Barney Database Administrator Platforms, United Space Alliance Kennedy Space Center, FL 321-861-7467 ________________________________ From: Barney, Kerry L Sent: Thursday, April 14, 2011 11:29 AM To: 'csq...@li...' Subject: undefined symbol: PC I am new to CSQL, and have installed csql3.0-linux-x86_64 on 64 bit linux. When I try to run csql it fails with the following- csql: symbol lookup error: /usr/lib64/libreadline.so.5: undefined symbol: PC csqlserver is running and I could successfully connect to the DSN with isql. My $HOME/.odbc.ini file looks like this: [psql] Description = Postgres ODBC Data source Driver = /usr/lib64/libodbcpsql.so Database = dev2 Servername = localhost UserName = myuser Password = mypassword Port = 5432 ReadOnly = No I built Postgres from the source code and I got the same error as shown below: g++ -O2 -I/home/nihar/jdk1.6.0_11/include -I/home/nihar/jdk1.6.0_11/include/linux -o .libs/csql isql.o -lr t -lpthread -lcrypt -lreadline ../../src/storage/.libs/libcsql.so ../../src/sql/.libs/libcsqlsql.so ../../s rc/sqllog/.libs/libcsqlsqllog.so ../../src/network/.libs/libcsqlnw.so ../../src/adapter/.libs/libcsqlodbcad apter.so ../../src/gateway/.libs/libcsqlgw.so ../../src/cache/.libs/libcacheload.so -lodbc ../../src/sqlnet work/.libs/libcsqlsqlnw.so -Wl,--rpath -Wl,/home/nihar/CSQLRELEASE/OPENSOURCE/csql3.2GA-src/install/lib /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `PC' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `tgetflag' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `tgetent' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `UP' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `tputs' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `tgoto' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `tgetnum' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `BC' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so: undefined reference to `tgetstr' collect2: ld returned 1 exit status Kerry Barney Database Administrator Platforms, United Space Alliance Kennedy Space Center, FL 321-861-7467 |