[jira] [Commented] (TS-2885) luajit build ignores compiler flags

2014-06-11 Thread James Peach (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14028497#comment-14028497
 ] 

James Peach commented on TS-2885:
-

It would be helpful to have a {{--disable-luajit}} option so that users can 
work around this kind of build problem.

> luajit build ignores compiler flags
> ---
>
> Key: TS-2885
> URL: https://issues.apache.org/jira/browse/TS-2885
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: James Peach
>
> The luajit build ignores operator-supplied CFLAGS in certain circumstances, 
> causing the build to break. For example, if you try to build Traffic Server 
> as a position independent executable:
> {code}
> # The Q= is to get luajit to emit the complier line :-/
> $ ./configure CXXFLAGS=-fPIE CFLAGS=-fPIE Q=
> ...
>  Building LuaJIT 2.0.3 
> make -C src
> make[4]: Entering directory `/home/vagrant/trafficserver.git/lib/luajit/src'
> DYNLINK   libluajit.so
> cc   -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so 
> lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o 
> lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o 
> lj_debug_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o 
> lj_vmmath_dyn.o lj_strscan_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o 
> lj_bcread_dyn.o lj_bcwrite_dyn.o lj_load_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o 
> lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o 
> lj_opt_split_dyn.o lj_opt_sink_dyn.o lj_mcode_dyn.o lj_snap_dyn.o 
> lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o 
> lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o 
> lj_ccall_dyn.o lj_ccallback_dyn.o lj_carith_dyn.o lj_clib_dyn.o 
> lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o 
> lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o 
> lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o 
> lib_init_dyn.o -lm -ldl
> /usr/bin/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' 
> can not be used when making a shared object; recompile with -fPIC
> lj_err_dyn.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> {code}
> Note that it used {{-fPIC}} instead of {{-fPIE}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2885) luajit build ignores compiler flags

2014-06-12 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14029302#comment-14029302
 ] 

ASF subversion and git services commented on TS-2885:
-

Commit a292af9564a907f701b0f78a775a4e0f1a141429 in trafficserver's branch 
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=a292af9 ]

TS-2885 Change LuaJIT to build statically, and add --disable-luajit


> luajit build ignores compiler flags
> ---
>
> Key: TS-2885
> URL: https://issues.apache.org/jira/browse/TS-2885
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: James Peach
>Assignee: Leif Hedstrom
>
> The luajit build ignores operator-supplied CFLAGS in certain circumstances, 
> causing the build to break. For example, if you try to build Traffic Server 
> as a position independent executable:
> {code}
> # The Q= is to get luajit to emit the complier line :-/
> $ ./configure CXXFLAGS=-fPIE CFLAGS=-fPIE Q=
> ...
>  Building LuaJIT 2.0.3 
> make -C src
> make[4]: Entering directory `/home/vagrant/trafficserver.git/lib/luajit/src'
> DYNLINK   libluajit.so
> cc   -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so 
> lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o 
> lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o 
> lj_debug_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o 
> lj_vmmath_dyn.o lj_strscan_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o 
> lj_bcread_dyn.o lj_bcwrite_dyn.o lj_load_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o 
> lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o 
> lj_opt_split_dyn.o lj_opt_sink_dyn.o lj_mcode_dyn.o lj_snap_dyn.o 
> lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o 
> lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o 
> lj_ccall_dyn.o lj_ccallback_dyn.o lj_carith_dyn.o lj_clib_dyn.o 
> lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o 
> lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o 
> lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o 
> lib_init_dyn.o -lm -ldl
> /usr/bin/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' 
> can not be used when making a shared object; recompile with -fPIC
> lj_err_dyn.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> {code}
> Note that it used {{-fPIC}} instead of {{-fPIE}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2885) luajit build ignores compiler flags

2014-06-12 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14029313#comment-14029313
 ] 

ASF subversion and git services commented on TS-2885:
-

Commit d86023d0d892584bbf854236465528d05710d8a6 in trafficserver's branch 
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=d86023d ]

TS-2885 Rename automake variable to BUILD_LUAJIT


> luajit build ignores compiler flags
> ---
>
> Key: TS-2885
> URL: https://issues.apache.org/jira/browse/TS-2885
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: James Peach
>Assignee: Leif Hedstrom
>
> The luajit build ignores operator-supplied CFLAGS in certain circumstances, 
> causing the build to break. For example, if you try to build Traffic Server 
> as a position independent executable:
> {code}
> # The Q= is to get luajit to emit the complier line :-/
> $ ./configure CXXFLAGS=-fPIE CFLAGS=-fPIE Q=
> ...
>  Building LuaJIT 2.0.3 
> make -C src
> make[4]: Entering directory `/home/vagrant/trafficserver.git/lib/luajit/src'
> DYNLINK   libluajit.so
> cc   -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so 
> lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o 
> lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o 
> lj_debug_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o 
> lj_vmmath_dyn.o lj_strscan_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o 
> lj_bcread_dyn.o lj_bcwrite_dyn.o lj_load_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o 
> lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o 
> lj_opt_split_dyn.o lj_opt_sink_dyn.o lj_mcode_dyn.o lj_snap_dyn.o 
> lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o 
> lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o 
> lj_ccall_dyn.o lj_ccallback_dyn.o lj_carith_dyn.o lj_clib_dyn.o 
> lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o 
> lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o 
> lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o 
> lib_init_dyn.o -lm -ldl
> /usr/bin/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' 
> can not be used when making a shared object; recompile with -fPIC
> lj_err_dyn.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> {code}
> Note that it used {{-fPIC}} instead of {{-fPIE}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2885) luajit build ignores compiler flags

2014-06-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030866#comment-14030866
 ] 

ASF subversion and git services commented on TS-2885:
-

Commit 6aae0e29d118c34706e1ab0915ae07ded5c76dfb in trafficserver's branch 
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=6aae0e2 ]

TS-2885 Fix experimental builds, and add DIST_SUBDIRS where needed


> luajit build ignores compiler flags
> ---
>
> Key: TS-2885
> URL: https://issues.apache.org/jira/browse/TS-2885
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: James Peach
>Assignee: Leif Hedstrom
> Fix For: 5.1.0
>
>
> The luajit build ignores operator-supplied CFLAGS in certain circumstances, 
> causing the build to break. For example, if you try to build Traffic Server 
> as a position independent executable:
> {code}
> # The Q= is to get luajit to emit the complier line :-/
> $ ./configure CXXFLAGS=-fPIE CFLAGS=-fPIE Q=
> ...
>  Building LuaJIT 2.0.3 
> make -C src
> make[4]: Entering directory `/home/vagrant/trafficserver.git/lib/luajit/src'
> DYNLINK   libluajit.so
> cc   -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so 
> lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o 
> lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o 
> lj_debug_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o 
> lj_vmmath_dyn.o lj_strscan_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o 
> lj_bcread_dyn.o lj_bcwrite_dyn.o lj_load_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o 
> lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o 
> lj_opt_split_dyn.o lj_opt_sink_dyn.o lj_mcode_dyn.o lj_snap_dyn.o 
> lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o 
> lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o 
> lj_ccall_dyn.o lj_ccallback_dyn.o lj_carith_dyn.o lj_clib_dyn.o 
> lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o 
> lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o 
> lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o 
> lib_init_dyn.o -lm -ldl
> /usr/bin/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' 
> can not be used when making a shared object; recompile with -fPIC
> lj_err_dyn.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> {code}
> Note that it used {{-fPIC}} instead of {{-fPIE}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2885) luajit build ignores compiler flags

2014-06-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031198#comment-14031198
 ] 

ASF subversion and git services commented on TS-2885:
-

Commit 44afb44869effcacdbdd622a38bdbc844062b7f5 in trafficserver's branch 
refs/heads/master from [~bcall]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=44afb44 ]

Moving TS-2885 to the 5.0.0 release


> luajit build ignores compiler flags
> ---
>
> Key: TS-2885
> URL: https://issues.apache.org/jira/browse/TS-2885
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: James Peach
>Assignee: Leif Hedstrom
> Fix For: 5.1.0
>
>
> The luajit build ignores operator-supplied CFLAGS in certain circumstances, 
> causing the build to break. For example, if you try to build Traffic Server 
> as a position independent executable:
> {code}
> # The Q= is to get luajit to emit the complier line :-/
> $ ./configure CXXFLAGS=-fPIE CFLAGS=-fPIE Q=
> ...
>  Building LuaJIT 2.0.3 
> make -C src
> make[4]: Entering directory `/home/vagrant/trafficserver.git/lib/luajit/src'
> DYNLINK   libluajit.so
> cc   -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so 
> lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o 
> lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o 
> lj_debug_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o 
> lj_vmmath_dyn.o lj_strscan_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o 
> lj_bcread_dyn.o lj_bcwrite_dyn.o lj_load_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o 
> lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o 
> lj_opt_split_dyn.o lj_opt_sink_dyn.o lj_mcode_dyn.o lj_snap_dyn.o 
> lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o 
> lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o 
> lj_ccall_dyn.o lj_ccallback_dyn.o lj_carith_dyn.o lj_clib_dyn.o 
> lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o 
> lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o 
> lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o 
> lib_init_dyn.o -lm -ldl
> /usr/bin/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' 
> can not be used when making a shared object; recompile with -fPIC
> lj_err_dyn.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> {code}
> Note that it used {{-fPIC}} instead of {{-fPIE}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2885) luajit build ignores compiler flags

2014-06-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031241#comment-14031241
 ] 

ASF subversion and git services commented on TS-2885:
-

Commit b1d0ffa51bed3f6ae4187b579de13374f405c1a7 in trafficserver's branch 
refs/heads/5.0.x from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=b1d0ffa ]

TS-2885 Rename automake variable to BUILD_LUAJIT


> luajit build ignores compiler flags
> ---
>
> Key: TS-2885
> URL: https://issues.apache.org/jira/browse/TS-2885
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: James Peach
>Assignee: Leif Hedstrom
> Fix For: 5.1.0
>
>
> The luajit build ignores operator-supplied CFLAGS in certain circumstances, 
> causing the build to break. For example, if you try to build Traffic Server 
> as a position independent executable:
> {code}
> # The Q= is to get luajit to emit the complier line :-/
> $ ./configure CXXFLAGS=-fPIE CFLAGS=-fPIE Q=
> ...
>  Building LuaJIT 2.0.3 
> make -C src
> make[4]: Entering directory `/home/vagrant/trafficserver.git/lib/luajit/src'
> DYNLINK   libluajit.so
> cc   -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so 
> lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o 
> lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o 
> lj_debug_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o 
> lj_vmmath_dyn.o lj_strscan_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o 
> lj_bcread_dyn.o lj_bcwrite_dyn.o lj_load_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o 
> lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o 
> lj_opt_split_dyn.o lj_opt_sink_dyn.o lj_mcode_dyn.o lj_snap_dyn.o 
> lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o 
> lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o 
> lj_ccall_dyn.o lj_ccallback_dyn.o lj_carith_dyn.o lj_clib_dyn.o 
> lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o 
> lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o 
> lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o 
> lib_init_dyn.o -lm -ldl
> /usr/bin/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' 
> can not be used when making a shared object; recompile with -fPIC
> lj_err_dyn.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> {code}
> Note that it used {{-fPIC}} instead of {{-fPIE}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2885) luajit build ignores compiler flags

2014-06-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031242#comment-14031242
 ] 

ASF subversion and git services commented on TS-2885:
-

Commit 5379350a6b0bb2141aaa3ea94a4270cb18e32028 in trafficserver's branch 
refs/heads/5.0.x from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=5379350 ]

TS-2885 Fix experimental builds, and add DIST_SUBDIRS where needed


> luajit build ignores compiler flags
> ---
>
> Key: TS-2885
> URL: https://issues.apache.org/jira/browse/TS-2885
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: James Peach
>Assignee: Leif Hedstrom
> Fix For: 5.1.0
>
>
> The luajit build ignores operator-supplied CFLAGS in certain circumstances, 
> causing the build to break. For example, if you try to build Traffic Server 
> as a position independent executable:
> {code}
> # The Q= is to get luajit to emit the complier line :-/
> $ ./configure CXXFLAGS=-fPIE CFLAGS=-fPIE Q=
> ...
>  Building LuaJIT 2.0.3 
> make -C src
> make[4]: Entering directory `/home/vagrant/trafficserver.git/lib/luajit/src'
> DYNLINK   libluajit.so
> cc   -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so 
> lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o 
> lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o 
> lj_debug_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o 
> lj_vmmath_dyn.o lj_strscan_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o 
> lj_bcread_dyn.o lj_bcwrite_dyn.o lj_load_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o 
> lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o 
> lj_opt_split_dyn.o lj_opt_sink_dyn.o lj_mcode_dyn.o lj_snap_dyn.o 
> lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o 
> lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o 
> lj_ccall_dyn.o lj_ccallback_dyn.o lj_carith_dyn.o lj_clib_dyn.o 
> lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o 
> lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o 
> lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o 
> lib_init_dyn.o -lm -ldl
> /usr/bin/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' 
> can not be used when making a shared object; recompile with -fPIC
> lj_err_dyn.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> {code}
> Note that it used {{-fPIC}} instead of {{-fPIE}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (TS-2885) luajit build ignores compiler flags

2014-06-13 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/TS-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031240#comment-14031240
 ] 

ASF subversion and git services commented on TS-2885:
-

Commit 4a0b97943d2430faa79e124446a24c4b5a0fbe18 in trafficserver's branch 
refs/heads/5.0.x from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=4a0b979 ]

TS-2885 Change LuaJIT to build statically, and add --disable-luajit

Conflicts:
CHANGES


> luajit build ignores compiler flags
> ---
>
> Key: TS-2885
> URL: https://issues.apache.org/jira/browse/TS-2885
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Build
>Reporter: James Peach
>Assignee: Leif Hedstrom
> Fix For: 5.1.0
>
>
> The luajit build ignores operator-supplied CFLAGS in certain circumstances, 
> causing the build to break. For example, if you try to build Traffic Server 
> as a position independent executable:
> {code}
> # The Q= is to get luajit to emit the complier line :-/
> $ ./configure CXXFLAGS=-fPIE CFLAGS=-fPIE Q=
> ...
>  Building LuaJIT 2.0.3 
> make -C src
> make[4]: Entering directory `/home/vagrant/trafficserver.git/lib/luajit/src'
> DYNLINK   libluajit.so
> cc   -shared -fPIC -Wl,-soname,libluajit-5.1.so.2   -o libluajit.so 
> lj_vm_dyn.o lj_gc_dyn.o lj_err_dyn.o lj_char_dyn.o lj_bc_dyn.o lj_obj_dyn.o 
> lj_str_dyn.o lj_tab_dyn.o lj_func_dyn.o lj_udata_dyn.o lj_meta_dyn.o 
> lj_debug_dyn.o lj_state_dyn.o lj_dispatch_dyn.o lj_vmevent_dyn.o 
> lj_vmmath_dyn.o lj_strscan_dyn.o lj_api_dyn.o lj_lex_dyn.o lj_parse_dyn.o 
> lj_bcread_dyn.o lj_bcwrite_dyn.o lj_load_dyn.o lj_ir_dyn.o lj_opt_mem_dyn.o 
> lj_opt_fold_dyn.o lj_opt_narrow_dyn.o lj_opt_dce_dyn.o lj_opt_loop_dyn.o 
> lj_opt_split_dyn.o lj_opt_sink_dyn.o lj_mcode_dyn.o lj_snap_dyn.o 
> lj_record_dyn.o lj_crecord_dyn.o lj_ffrecord_dyn.o lj_asm_dyn.o 
> lj_trace_dyn.o lj_gdbjit_dyn.o lj_ctype_dyn.o lj_cdata_dyn.o lj_cconv_dyn.o 
> lj_ccall_dyn.o lj_ccallback_dyn.o lj_carith_dyn.o lj_clib_dyn.o 
> lj_cparse_dyn.o lj_lib_dyn.o lj_alloc_dyn.o lib_aux_dyn.o lib_base_dyn.o 
> lib_math_dyn.o lib_bit_dyn.o lib_string_dyn.o lib_table_dyn.o lib_io_dyn.o 
> lib_os_dyn.o lib_package_dyn.o lib_debug_dyn.o lib_jit_dyn.o lib_ffi_dyn.o 
> lib_init_dyn.o -lm -ldl
> /usr/bin/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' 
> can not be used when making a shared object; recompile with -fPIC
> lj_err_dyn.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> {code}
> Note that it used {{-fPIC}} instead of {{-fPIE}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)