Re: [users@httpd] cannot run test program while cross compiling

2023-02-14 Thread Yann Ylavic
On Tue, Feb 14, 2023 at 6:56 PM Yann Ylavic  wrote:
>
> On Tue, Feb 14, 2023 at 1:13 PM 유원석  wrote:
> >
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
>
> Can you try the attached patch?

Possible adding ap_cv_crypt_sha2=no (or =yes if you know that the
target system's crypt() supports SHA-2) to the "./configure ..."
command line could do it too, by forcing the test decision rather than
running it.

>
> Regards;
> Yann.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] cannot run test program while cross compiling

2023-02-14 Thread Yann Ylavic
On Tue, Feb 14, 2023 at 1:13 PM 유원석  wrote:
>
> Hello
> I was trying to cross-compile apache to no avail
> How can I fix this error below?

Can you try the attached patch?

Regards;
Yann.
Index: configure.in
===
--- configure.in	(revision 1907007)
+++ configure.in	(working copy)
@@ -519,7 +519,7 @@ if test "$ac_cv_search_crypt" != "no"; then
 ]], [char *result = crypt(PASSWD_0, SALT_0);
  if (!result) return 1;
  if (strcmp(result, EXPECT_0)) return 2;
-])], [ap_cv_crypt_sha2=yes], [ap_cv_crypt_sha2=no])])
+])], [ap_cv_crypt_sha2=yes], [ap_cv_crypt_sha2=no], [ap_cv_crypt_sha2=no])])
if test "$ap_cv_crypt_sha2" = yes; then
  AC_DEFINE([HAVE_CRYPT_SHA2], 1, [Define if crypt() supports SHA-2 hashes])
fi

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Re: [users@httpd] cannot run test program while cross compiling

2023-02-14 Thread 유원석
Q) Copy and paste (text) of the command you run and the *error* output you get
would be helpful.

A) ./configure --prefix=$PWD/final --host=aarch64-linux 
--with-pcre=/usr/local/pcre/bin/pcre2-config


Q) Is "cannot run test program while cross compiling" an error message, or 
simply
a notification telling you that this bit won't be run?

A) error message, it can't run further


Q) Does the source code compile?

A) I'm not sure of the words. I didn't put custom or private codes in httpd as 
well as I'm trying building it


-Original Message-
From: "Antony Stone"
To: ;
Cc:
Sent: 2023-02-14 (화) 21:43:00 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

On Tuesday 14 February 2023 at 13:35:14, 유원석 wrote:

> Png file would be helpful

Copy and paste (text) of the command you run and the *error* output you get
would be helpful.

> As i was configurating, it shows the same message as the title.

Is "cannot run test program while cross compiling" an error message, or simply
a notification telling you that this bit won't be run?

> Namely, building issues

Does the source code compile?


Antony.

> -Original Message-
> From: "Antony Stone"
> To: ;
> Cc:
> Sent: 2023-02-14 (화) 21:28:29 (GMT+09:00)
> Subject: Re: [users@httpd] cannot run test program while cross compiling
>
> On Tuesday 14 February 2023 at 13:12:19, 유원석 wrote:
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
>
> What error are you trying to fix?
>
> > apache2 branch trunk
> > install pcre-config from pcre.org
> >
> > ./configure --prefix=$PWD/final --host=aarch64-linux
> > --with-pcre=/usr/local/pcre/bin/pcre2-config CC = aarch64-gnu-linux-gcc
> > -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2
> > -Wformat -Wformat-security
> > --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux
> > -lcrypt -lm

--
BASIC is to computer languages what Roman numerals are to arithmetic.

  Please reply to the list;
please *don't* CC me.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] cannot run test program while cross compiling

2023-02-14 Thread Antony Stone
On Tuesday 14 February 2023 at 13:35:14, 유원석 wrote:

> Png file would be helpful

Copy and paste (text) of the command you run and the *error* output you get 
would be helpful.

> As i was configurating, it shows the same message as the title.

Is "cannot run test program while cross compiling" an error message, or simply 
a notification telling you that this bit won't be run?

> Namely, building issues

Does the source code compile?


Antony.

> -Original Message-
> From: "Antony Stone"
> To: ;
> Cc:
> Sent: 2023-02-14 (화) 21:28:29 (GMT+09:00)
> Subject: Re: [users@httpd] cannot run test program while cross compiling
> 
> On Tuesday 14 February 2023 at 13:12:19, 유원석 wrote:
> > Hello
> > I was trying to cross-compile apache to no avail
> > How can I fix this error below?
> 
> What error are you trying to fix?
> 
> > apache2 branch trunk
> > install pcre-config from pcre.org
> > 
> > ./configure --prefix=$PWD/final --host=aarch64-linux
> > --with-pcre=/usr/local/pcre/bin/pcre2-config CC = aarch64-gnu-linux-gcc
> > -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2
> > -Wformat -Wformat-security
> > --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux
> > -lcrypt -lm

-- 
BASIC is to computer languages what Roman numerals are to arithmetic.

   Please reply to the list;
 please *don't* CC me.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] cannot run test program while cross compiling

2023-02-14 Thread 유원석
Png file would be helpful
As i was configurating, it shows the same message as the title.

Namely, building issues
Thank you


-Original Message-
From: "Antony Stone"
To: ;
Cc:
Sent: 2023-02-14 (화) 21:28:29 (GMT+09:00)
Subject: Re: [users@httpd] cannot run test program while cross compiling

On Tuesday 14 February 2023 at 13:12:19, 유원석 wrote:

> Hello
> I was trying to cross-compile apache to no avail
> How can I fix this error below?

What error are you trying to fix?

> apache2 branch trunk
> install pcre-config from pcre.org
>
> ./configure --prefix=$PWD/final --host=aarch64-linux
> --with-pcre=/usr/local/pcre/bin/pcre2-config CC = aarch64-gnu-linux-gcc
> -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2
> -Wformat -Wformat-security
> --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux
> -lcrypt -lm


Regards,


Antony.

--
Schrödinger's rule of data integrity: the condition of any backup is unknown
until a restore is attempted.

  Please reply to the list;
please *don't* CC me.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] cannot run test program while cross compiling

2023-02-14 Thread Antony Stone
On Tuesday 14 February 2023 at 13:12:19, 유원석 wrote:

> Hello
> I was trying to cross-compile apache to no avail
> How can I fix this error below?

What error are you trying to fix?

> apache2 branch trunk
> install pcre-config from pcre.org
> 
> ./configure --prefix=$PWD/final --host=aarch64-linux
> --with-pcre=/usr/local/pcre/bin/pcre2-config CC = aarch64-gnu-linux-gcc
> -march=armv8-a+crc+sha2+sha3 -fstack-protector-strong -D_FORTIFY_SOURCE=2
> -Wformat -Wformat-security
> --sysroot=/opt/drive5-linux/5.0.40.0-29154167/sysroots/aarch64-gnu-linux
> -lcrypt -lm


Regards,


Antony.

-- 
Schrödinger's rule of data integrity: the condition of any backup is unknown 
until a restore is attempted.

   Please reply to the list;
 please *don't* CC me.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org