boypt / openssh-rpms

A script to backport openssh rpm package from upstream.
287 stars 103 forks source link

RPM build errors: Macro expanded in comment on line 116: %{compat_openssl} #20

Open kumukaihua opened 4 months ago

kumukaihua commented 4 months ago

使用openssh-9.7p1 + openssl-1.1.1k版本运行脚本后半部分时报错: make: [Makefile:195: sshd.o] Error 1 make: Waiting for unfinished jobs.... In file included from openbsd-compat/openbsd-compat.h:218, from includes.h:173, from auth-rhosts.c:17: openbsd-compat/bsd-misc.h:143:39: error: expected identifier or '(' before 'do'

define krb5_free_error_message(a,b) do { } while(0)

                                   ^~

openbsd-compat/bsd-misc.h:143:46: error: expected identifier or '(' before 'while'

define krb5_free_error_message(a,b) do { } while(0)

                                          ^~~~~

In file included from /usr/include/krb5/krb5.h:8694, from /usr/include/krb5.h:8, from auth.h:41, from auth-rhosts.c:45: /usr/include/et/com_err.h:38:20: error: conflicting types for 'error_message' extern char const *error_message (long); ^~~~~ In file included from includes.h:170, from auth-rhosts.c:17: defines.h:725:43: note: previous declaration of 'error_message' was here

define krb5_get_err_text(context,code) error_message(code)

                                       ^~~~~~~~~~~~~

make: *** [Makefile:195: auth-rhosts.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.AraQyV (%build)

RPM build errors: Macro expanded in comment on line 116: %{compat_openssl}

Bad exit status from /var/tmp/rpm-tmp.AraQyV (%build)