This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] aix: Add fork-inferior.o to NATDEPFILES
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Tue, 13 Jun 2017 12:12:20 +0100
- Subject: Re: [PATCH 1/2] aix: Add fork-inferior.o to NATDEPFILES
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=palves at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com E0A189D42C
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E0A189D42C
- References: <1497119266-19643-1-git-send-email-simon.marchi@ericsson.com>
On 06/10/2017 07:27 PM, Simon Marchi wrote:
> Trying to build on AIX gives:
>
> ld: 0711-317 ERROR: Undefined symbol: .trace_start_error_with_name(char const*)
> ld: 0711-317 ERROR: Undefined symbol: .fork_inferior(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char**, void (*)(), void (*)(int), void (*)(), char const*, void (*)(char const*, char* const*, char* const*))
> ld: 0711-317 ERROR: Undefined symbol: .startup_inferior(int, int, target_waitstatus*, ptid_t*)
>
> Including fork-inferior.o in the build should help. I also factored out
> the AIX bits that are not architecture-specific to be consistent with the other
> OSes.
OK, and obvious, IMO. Every port that builds fork-child.c must
also build nat/fork-inferior.c.
The other patches look good too.
Thanks,
Pedro Alves