LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lvsbutil: error building resource file: 1

... I am having a problem with trying to build an lsb. When I run make I get the following.

bash-3.00$ make
gcc -I/usr/local/lv70/cintools -fPIC -O -Wall /usr/include/mysql   -c -o mySQL_open.o mySQL_open.c
gcc: /usr/include/mysql: linker input file unused because linking not done
gcc -shared -o mySQL_open.tmp \
        /usr/local/lv70/cintools/cin.o mySQL_open.o  /usr/local/lv70/cintools/libcin.a /usr/lib/libmysqlclient.a
/usr/local/lv70/cintools/lvsbutil -c mySQL_open -t CIN -d `pwd`
/home/dino/bckg/LV_shared/CIN_source/mySQL_open/mySQL_open.tmp: undefined symbol: ERR_get_error_line_data
/usr/local/lv70/cintools/lvsbutil: error building resource file: 1
make: *** [mySQL_open.lsb] Error 2
bash-3.00$


Here is my complete Makefile:-
# This Makefile was generated automatically by lvmkmf & subsequently
# modified by K.D.Giles.
#

CC=gcc
LD=gcc
LDFLAGS=-shared
MYSQLINCDIR=/usr/include/mysql
XFLAGS=-fPIC -O -Wall
CINDIR=/usr/local/lv70/cintools
CFLAGS=-I$(CINDIR) $(XFLAGS) $(MYSQLINCDIR)
MYSQLLIB=/usr/lib/libmysqlclient.a
#MYSQLLIB=-lmysqlclient.a
CINLIB=$(CINDIR)/libcin.a
MAKEGLUE=$(CINDIR)/makeglueLinux.awk
AS=gcc -fPIC -c

.SUFFIXES: .lsb .lsb~ $(SUFFIXES)

# Default rule to create an lsb from a C source file
.c.lsb:    ; make $*.o
    $(LD) $(LDFLAGS) -o $*.tmp \
        $(CINDIR)/cin.o $(XLDFLAGS) $*.o $(CINLIB)
    $(CINDIR)/lvsbutil -c $* -t CIN -d `pwd`
    @rm -f $*.tmp


mySQL_open.lsb:    mySQL_open.o
    $(LD) $(LDFLAGS) -o mySQL_open.tmp \
        $(CINDIR)/cin.o $(XLDFLAGS) mySQL_open.o  $(CINLIB) $(MYSQLLIB)
    $(CINDIR)/lvsbutil -c mySQL_open -t CIN -d `pwd`
    @rm -f mySQL_open.tmp

clean:
    $(RM) -f mySQL_open.o mySQL_open.tmp

spotless: clean
    $(RM) -f mySQL_open.lsb

A check of 'libmysqlclient.a' shows that 'ERR_get_error_line_data' does exist in there. Various functions contained in 'libmysqlclient.a' (e.g. mysql_init) appear to be found by the linker with no problem, as there is no complaint about specific calls to these function from my C code. My code makes no explicit call on 'ERR_get_error_line_data'.

Could anyone point me to where I'm going wrong?
Thanks.
0 Kudos
Message 1 of 2
(3,131 Views)
Hi Kimdino,

Please follow instructions on your previous post found here.

I will still try and help you but you will have a much better chance of finding speacialised help if you post in the correct area. 

I would recommend posting on the Measurment Studio for VC++ site found here.

Regards,

Seamus
NIUK
0 Kudos
Message 2 of 2
(3,104 Views)