#5873 Build warning: automake possible forward-incompatibility without 'subdir-objects'
Closed: duplicate 5 years ago by rcritten. Opened 8 years ago by mbasti.

ipa-kdb/Makefile.am:5: warning: source file '$(KRB5_UTIL_DIR)/ipa_krb5.c' is in a subdirectory,
ipa-kdb/Makefile.am:5: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
ipa-kdb/Makefile.am:5: warning: source file '$(KRB5_UTIL_DIR)/ipa_pwd.c' is in a subdirectory,
ipa-kdb/Makefile.am:5: but option 'subdir-objects' is disabled
ipa-kdb/Makefile.am:63: warning: source file 'tests/ipa_kdb_tests.c' is in a subdirectory,
ipa-kdb/Makefile.am:63: but option 'subdir-objects' is disabled
ipa-sam/Makefile.am:10: warning: source file '$(KRB5_UTIL_DIR)/ipa_krb5.c' is in a subdirectory,
ipa-sam/Makefile.am:10: but option 'subdir-objects' is disabled
ipa-sam/Makefile.am:10: warning: source file '$(KRB5_UTIL_DIR)/ipa_pwd_ntlm.c' is in a subdirectory,
ipa-sam/Makefile.am:10: but option 'subdir-objects' is disabled
ipa-slapi-plugins/ipa-pwd-extop/Makefile.am:6: warning: source file '$(KRB5_UTIL_DIR)/ipa_krb5.c' is in a subdirectory,
ipa-slapi-plugins/ipa-pwd-extop/Makefile.am:6: but option 'subdir-objects' is disabled
ipa-slapi-plugins/ipa-pwd-extop/Makefile.am:6: warning: source file '$(KRB5_UTIL_DIR)/ipa_pwd.c' is in a subdirectory,
ipa-slapi-plugins/ipa-pwd-extop/Makefile.am:6: but option 'subdir-objects' is disabled
ipa-slapi-plugins/ipa-pwd-extop/Makefile.am:6: warning: source file '$(KRB5_UTIL_DIR)/ipa_pwd_ntlm.c' is in a subdirectory,
ipa-slapi-plugins/ipa-pwd-extop/Makefile.am:6: but option 'subdir-objects' is disabled

We should enable 'subdir-objects'


I tried to fix this but found that it wasn't quite as 'easyfix' as I was expecting. I wrote up a description of what I tried here: http://blog.benjaminlipton.com/2016/06/14/automake.html. I'm not sure my conclusions in that post are correct, but hopefully it can be a starting point for the next person who looks at this.

This ticket is out of scope of 4.4.0 release. Moving to 4.4.1. Note that 4.4.1 needs to be triaged, therefore not everything will be implemented.

moving out tickets not implemented in 4.4.1

4.4.2 is a stabilization milestone. If this bug is important stabilization bug then please put it to NEEDS TRIAGE milestone for retriage.

Metadata Update from @mbasti:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

7 years ago

Metadata Update from @rcritten:
- Issue close_status updated to: duplicate
- Issue status updated to: Closed (was: Open)

5 years ago

Log in to comment on this ticket.

Metadata