From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] makefile: fail to compile if there are more than one exported symbols.
Date: Mon, 15 Jun 2015 11:12:31 +0200 [thread overview]
Message-ID: <557E96FF.1050509@redhat.com> (raw)
In-Reply-To: <557EAFC6020000E1000108C5@relay2.provo.novell.com>
Dne 15.6.2015 v 04:58 Lidong Zhong napsal(a):
>>>> On 6/12/2015 at 11:51 PM, in message <557B001F.30804@redhat.com>, Zdenek
> Kabelac <zkabelac@redhat.com> wrote:
>> Dne 12.6.2015 v 09:33 Lidong Zhong napsal(a):
>>> ---
>>> make.tmpl.in | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/make.tmpl.in b/make.tmpl.in
>>> index 731dab7..60ddd01 100644
>>> --- a/make.tmpl.in
>>> +++ b/make.tmpl.in
>>> @@ -499,7 +499,7 @@ ifeq (,$(firstword $(EXPORTED_SYMBOLS)))
>>> echo " local:"; echo " *;"; echo "};") > $@
>>> else
>>> set -e;\
>>> - R=$$(sort $^ | uniq -u);\
>>> + R="$$(sort $^ | uniq -u)";\
>>> test -z "$$R" || { echo "Mismatch between symbols in shared library and
>> lists in .exported_symbols.* files: $$R"; false; } ;\
>>> for i in $(EXPORTED_SYMBOLS); do\
>>> echo "$${i##*.} {"; echo " global:";\
>>
>> Hi
>>
>> Do you have some example where it fails without "" ?
>> Bash normally should assign $VARS directly.
> Hi Zdenek,
>
> As the `echo` outputs, if there are more symbols got from `sort $^ | uniq -u`, there will be
> an bash error.
> I found this exactly because I forgot to add these symbols to .exported_symbols.* files.
But the bash error here is wanted when symbols are missing - it's the purpose
to stop compilation. So please specify more closely the example where it fails
because of missing "".
This output is wanted:
Mismatch between symbols in shared library and lists in .exported_symbols.*
files: dm_tree_node_set_XXXX
dm_tree_node_set_YYYY
../make.tmpl:501: recipe for target '.export.sym' failed
make: *** [.export.sym] Error 1
If the dm_tree_node_set_XXXX|YYYY is not defined in any .exported_symbols*
Zdenek
next prev parent reply other threads:[~2015-06-15 9:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 7:33 [PATCH] makefile: fail to compile if there are more than one exported symbols Lidong Zhong
2015-06-12 15:51 ` Zdenek Kabelac
2015-06-15 2:58 ` Lidong Zhong
2015-06-15 9:12 ` Zdenek Kabelac [this message]
2015-06-15 9:26 ` Lidong Zhong
2015-06-15 9:43 ` Zdenek Kabelac
2015-06-16 2:24 ` Lidong Zhong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=557E96FF.1050509@redhat.com \
--to=zkabelac@redhat.com \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.