MySQL Forums
Forum List  »  Connector/ODBC

Can't find dependent library "libodbcinst.so.1"
Posted by: Julius Estonia
Date: July 11, 2017 02:28AM

Hi, I'm having problem in running the "make" command for one of my program in HP-UX. The system stated that:

ld: Can't find dependent library "libodbcinst.so.1"
Fatal error.
*** Error exit code 1

Stop.

The program need libodbcinst.so.1 since it is needed by the libmyodbc5.so. I already run test the UnixODBC connection to MySQL using MySQL Connection ODBC and it works fine. And I also make sure that the libodbcinst.so.1 lib path to be in SHLIB_PATH. However, it still shows the following error. Now, I'm running out of idea as to what make the libodbcinst.so.1 to be undetected by the system.

Following is part of the code inside Makefile.

CC = cc -Ae -mt +DSblended +DD64 -Dinline= -Wl,+s -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE +z

CFLAGS = +O2 \
$(ACUSERVER_FLAGS) $(ACUCONNECT_FLAGS) $(ACUSQL_FLAGS) $(EXTSM_FLAGS) \
$(JAVA_FLAG) $(XML_FLAGS) $(EXTFH_FLAGS) -DUSE_RMFM $(EXTRA_CFLAGS)

LDFLAGS = -s $(EXTRA_LDFLAG) /usr/local/lib/libodbcinst.so.1

# Enter the name of your ODBC API library below if you want to relink an
# AcuSQL-ENABLED runtime or the AcuSQL precompiler:
ACUSQL_ODBC_LIB = /mysql/mysql-con/mysql/lib/libmyodbc5.so

# Use the following two lines for an AcuSQL-ENABLED runtime:
ACUSQL_FLAGS = -DNO_ACUSQL=0
ACUSQL_LIBS = $(ACU_LIBDIR)/libesql.a $(ACUSQL_ODBC_LIB)

runcbl: amain.o $(SUBS)
$(CC) $(EXEC_LDFLAG) $(LDFLAGS) -o $@ amain.o $(SUBS) \
libruncbl$(BITS).a $(LIBS) $(SYS_LIBS) $(SYS_C_LIBS) \
$(EXTOBJS) $(EXTLIBS)



Thanks in advance for the reply.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.