2011-05-10 02:17:32     mysql client executable format mismatch non-fdpic object error

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-05-10 02:17:32     mysql client executable format mismatch non-fdpic object error

Richard Haydon (NORWAY)

Message: 100532   

 

I try to include mysqlclient in my application for the BF537 stamp and at link time I get:

 

/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: libmysql.o: cannot link non-fdpic object file into fdpic executable

 

I tried with the newest tool chain and distribution on a clean install, but have the same problem as my original development rig.

 

 

 

Toolchain: 2010R1-RC4

 

uCLinux distribution: 2010R1-RC5

 

In my Makefile I try to make the target sqlif like this

 

 

 

CC=bfin-linux-uclibc-gcc -mfdpic  -Wall  -DADE_PLATFORM -O2 -mstack-check-l1

 

 

sqlif:   $(MSGLIB_OBJS) $(TIMMON_IF_OBJS) $(SEQMAN_IF_OBJS) 

    ${CC} ${CFLAGS}  ../sql/sqlif.c $(SEQMAN_IF_OBJS) $(MSGLIB_OBJS) $(TIMMON_IF_OBJS)  -L/home/saturn120/bf/uClinux-dist/user/mysql/libmysql/.libs/ -lmysqlclient   -lnsl -lm -o sqlif

 

 

 

From make menuconfig I specified "mysql" and "client (new)"

 

I cant find anything out there to get past this problem so would appreciate any help!

QuoteReplyEditDelete

 

 

2011-05-10 03:13:25     Re: mysql client executable format mismatch non-fdpic object error

Aaron Wu (CHINA)

Message: 100533   

 

You may use "file" to check your binary. When building the distribution, make sure to do make clean first after changing the build option from FLAT to FDPIC.

Attachments

    Outcomes