lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Removing visibility modification results in..

make
...
A whole bunch of warnings similar to "lib_math.c:120: warning: visibility attribute not supported in this configuration; ignored"
...
DYNLINK � libluajit.so
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_obj_itypename: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_obj_itypename: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_obj_itypename: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_obj_itypename: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_obj_itypename: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_obj_typename: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_err_allmsg: a GOT relative relocation must reference a local symbol
ld: fatal: relocation error: R_386_GOTOFF: file lj_err_dyn.o: symbol lj_obj_typename: a GOT relative relocation must reference a local symbol

Trying to compile with�BUILDMODE= static results in the following

make
...
AR � � � �libluajit.a
CC � � � �luajit.o
BUILDVM � ../lib/vmdef.lua
LINK � � �luajit
ld: fatal: unrecognized option '-E'
ld: fatal: use the -z help option for usage information
collect2: ld returned 1 exit status
gmake[1]: *** [luajit] Error 1
gmake[1]: Leaving directory `/root/luajit-2.0/src'
gmake: *** [default] Error 2

Regards,

Will
On Mon, Jun 13, 2011 at 4:10 PM, Mike Pall <mikelu-1106@mike.de> wrote:
> Will Metcalf wrote:
>> It appears as if I don't have a define for __solaris__ but do for
>> __sun__ and __srv4__.
>
> Hmm, strange. Lots of software out there has '#ifdef __solaris__'.
>
>> lj_tab_len � � � � � � � � � � � � �0x4aa � � � lj_vm_dyn.o
>> [...]
>> lj_err_throw � � � � � � � � � � � �0x3037 � � �lj_vm_dyn.o
>> ld: fatal: relocations remain against allocatable but non-writable sections
>> collect2: ld returned 1 exit status
>
> Ouch. I guess Solaris handles internal relocations in PIC
> libraries differently than all other ELF systems. I'd need to see
> what assembler code the compiler generates for that. Maybe the
> problem is related to the change you made to the hidden visibility
> of the internal functions? Might be hard to fix, though.
>
> But there's an easier solution: if you don't need the shared
> library, then comment out BUILDMODE= static in src/Makefile.
> Maybe the static build works at least ...
>
> --Mike
>
>