On 1/24/07, Lars Mai <[EMAIL PROTECTED]> wrote:

I'm getting the following error while compiling neko on Debian/AMD64:

Compiling mysql...
gcc -O3 -fPIC -c -I../../vm -I/usr/include/mysql mysql.c
gcc -shared -L../../bin -lneko -L../../libs/include -L/usr/lib
-L/usr/local/lib -L/usr/local/lib/mysql -L/opt/local/lib
-L/opt/local/lib/mysql  -o ../../bin/mysql.ndll -lz mysql.o
/usr/lib/libmysqlclient.a
/usr/bin/ld: /usr/lib/libmysqlclient.a(libmysql.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/libmysqlclient.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Called from tools/install.neko line 336
Uncaught exception - Error 256 : aborted
make: *** [libs] Error 1


This happens with the original sources, the source package from Debian
unstable compiles alright

The file install.neko tries to link with the static library.  I have
attached the patch I use for the Debian package.

Cheers,
--
                                                   Jens Peter Secher.
_DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher gmail com_.
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?

Attachment: 50-include-and-link.dpatch
Description: Binary data

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to