laurent a écrit :
laurent a écrit :
Nicolas Cannasse a écrit :
laurent a écrit :
I still have a GC_pthread_create exception on compiling.
GC_pthread_create() is not defined, I changed the /usr/include/gc.h
and /usr/include/gc_pthreads_redirects.h, avoiding if statement to
have the methods declare.
But it's not solving the problem, GC_thread_create is not defined:
Looks like you libgc does not include it. You'll have to recompile
libgc with appropriate pthreads support.
I think you can also disable threads in Neko by adding
NEKO_NO_THREADS to the Makefile CFLAGS
Nicolas
hm...gone much far than ever.
I kept on emerging boehm-gc wuth USE="threads" for pthread support.
Still the GC_pthread_create() error where coming up like nothing
changed.
Emerge boehm-gc wuth USE="threads" for pthread support.
It write the libgc.so.1.0.2 ( I guess this name can be different for
other people ) into /usr/lib64/ and make som sym link with libgc.so
there. You can look at those around the end og the emerge verbose.
Then look "whereis libgc.so", and copy the libgc.so.1.0.2 to libgc.so
in corresponding folders when it's a file and make a new link when it
was a link.
make clean
make
!!it works
till the mysql static or dynamic problem with -fPIC flag for gcc:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/mysql/libmysqlclient_r.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/mysql/libmysqlclient_r.a: could not read symbols: Bad value
so I put -fPIC in install.neko for the shared flag....no change:
Compiling mysql...
gcc -O3 -fPIC -pthread -c -I../../vm -I/usr/include/mysql mysql.c
gcc -shared -L../../bin -pthread -fPIC -lneko -L../../libs/include
-L/usr/lib -L /usr/lib/mysql -L/usr/local/lib
-L/usr/local/lib/mysql -L/opt/local/lib -L/opt/l
ocal/lib/mysql -o ../../bin/mysql.ndll -lz -lssl mysql.o
/usr/lib/mysql/libmys qlclient_r.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld:
/ usr/lib/mysql/libmysqlclient_r.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/mysql/libmysqlclient_r.a: could not read symbols: Bad value
collect2: ld a retourné 1 code d'état d'exécution
Called from tools/install.neko line 384
Called from tools/install.neko line 348
Uncaught exception - Error 256 : aborted
I need the mysql.ndll 64 in /usr/lib/neko....I'm exhausted
thx!!
L
Against the mysql bug, re-emerge mysql with USE="static -ssl"
make clean
make
awesome x x
If someone need the binaries for gentoo apache2 ask me
L
should I re-emerge mysql in dynamic mode with ssl??
yes
--
Neko : One VM to run them all
(http://nekovm.org)