link problem, help!
Posted by: rui zhu
Date: August 04, 2005 05:57AM

In recently project ,I need to use mysql in linux netfilter . So I linked the libmysqlclient.a with my .o file as a new file
new.o , but when I use command "insmod new.o", the error occurs as next :
The module you are trying to load (new.o) is compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work.
The commond I used to link is
ld -m elf_i386 -r -o new.o myfile.o -L/usr/lib -lmysqlclient -lz
All in C language
Can anyone helpme ,thank you very much.

Options: ReplyQuote


Subject
Views
Written By
Posted
link problem, help!
966
August 04, 2005 05:57AM
472
August 04, 2005 06:01AM


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.