On Mon, Sep 11, 2017 at 10:23 AM, Stefan Eissing
<[email protected]> wrote:
>
>> Am 08.09.2017 um 17:14 schrieb Yann Ylavic <[email protected]>:
>>
>> Hi Stefan,
>>
>> On Fri, Sep 8, 2017 at 5:06 PM, <[email protected]> wrote:
>>> Author: icing
>>> Date: Fri Sep 8 15:06:44 2017
>>> New Revision: 1807777
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1807777&view=rev
>>> Log:
>>> On the trunk:
>>>
>>> mod_md: added necessary CPPFLAGS for a2md build.
>>
>> Thanks, it fixed some APR dependencies for me.
>>
>> Now I'm here:
>>
>> || *** Warning: Linking the shared library mod_md.la against the non-libtool
>> || *** objects md_acme.o md_acme_acct.o md_acme_authz.o
>> md_acme_drive.o md_core.o md_curl.o md_crypt.o md_http.o md_json.o
>> md_jws.o md_log.o md_reg.o md_store.o md_store_fs.o md_util.o is not
>> portable!
>> || /home/yle/bin/ld: error: md_json.o: requires dynamic R_X86_64_PC32
>> reloc against 'md_json_destroy' which may overflow at runtime;
>> recompile with -fPIC
>> || /home/yle/bin/ld: error: md_reg.o: requires dynamic R_X86_64_PC32
>> reloc against 'md_reg_find_overlap' which may overflow at runtime;
>> recompile with -fPIC
>> || /home/yle/bin/ld: error: md_util.o: requires dynamic R_X86_64_PC32
>> reloc against 'md_array_str_index' which may overflow at runtime;
>> recompile with -fPIC
>> || collect2: error: ld returned 1 exit status
>>
>> Any idea?
>
> Really did a buildconf && configure && make clean? This worked
> for others...
Yes, but then make -j8...
Looks like a dependencies race, and indeed with the below it now works with -j.
Index: modules/md/Makefile.in
===================================================================
--- modules/md/Makefile.in (revision 1807999)
+++ modules/md/Makefile.in (working copy)
@@ -41,7 +41,7 @@ a2md_OBJECTS = \
md_cmd_reg.c \
md_cmd_store.c
-a2md: $(a2md_OBJECTS) $(COMMON_SHOBJECTS) md.h
+a2md: $(a2md_OBJECTS) $(COMMON_OBJECTS) $(COMMON_SHOBJECTS) md.h
$(LINK) $(a2md_CFLAGS) $(a2md_LTFLAGS) $(a2md_OBJECTS)
$(COMMON_OBJECTS) $(A2MD_LDADD) $(AP_LIBS)
# top be installed in bin dir
_
Looks good to commit?