denji / homebrew-nginx

:fire_engine: Community NGINX tap for custom modules
https://denji.github.io/homebrew-nginx/
Other
616 stars 197 forks source link

openresty-openssl install error #417

Closed fsyyft closed 4 months ago

fsyyft commented 1 year ago

Indicate troubleshooting steps taken

Bug reports / build errors:

brew install denji/nginx/openresty-openssl in Ubuntu 22.04

Last 15 lines from /home/fsyyft/.cache/Homebrew/Logs/openresty-openssl/02.make:
chmod a+x apps/tsget
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
    "-oMakefile" util/shlib_wrap.sh.in > "util/shlib_wrap.sh"
chmod a+x tools/c_rehash
gcc-12 -DZLIB -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/linuxbrew/.linuxbrew/etc/openssl@1.1\"" -DENGINESDIR="\"/home/linuxbrew/.linuxbrew/Cellar/openresty-openssl/1.1.0l_1/lib/engines-1.1\"" -O3 -arch x86_64 -DL_ENDIAN -Wall  -g -fPIC -c -o crypto/aes/aes-x86_64.o crypto/aes/aes-x86_64.s
chmod a+x util/shlib_wrap.sh
gcc-12 -DZLIB -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/home/linuxbrew/.linuxbrew/etc/openssl@1.1\"" -DENGINESDIR="\"/home/linuxbrew/.linuxbrew/Cellar/openresty-openssl/1.1.0l_1/lib/engines-1.1\"" -O3 -arch x86_64 -DL_ENDIAN -Wall  -g -fPIC -c -o crypto/aes/aesni-mb-x86_64.o crypto/aes/aesni-mb-x86_64.s
crypto/aes/aes-x86_64.s: Assembler messages:
crypto/aes/aes-x86_64.s:332: Error: unknown pseudo-op: `.private_extern'
crypto/aes/aes-x86_64.s:779: Error: unknown pseudo-op: `.private_extern'
crypto/aes/aes-x86_64.s:1297: Error: unknown pseudo-op: `.private_extern'
make[1]: *** [Makefile:648: crypto/aes/aes-x86_64.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/openresty-openssl-20221218-12192-cfbvj9/openssl-1.1.0l'
make: *** [Makefile:132: all] Error 2

Brief summary of issue:

The complete command that you issued:

Gist with output of brew doctor:

Link output by brew gist-logs <formula>:

Output of brew config:

HOMEBREW_VERSION: 3.6.15-33-g884c4be
ORIGIN: https://mirrors.aliyun.com/homebrew/brew.git
HEAD: 884c4bec14073314ac6e8e9a6a64bc3b26161ab6
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 584a67494104dca904358ed1701b68008fd2cd25
Core tap last commit: 35 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.aliyun.com/homebrew/homebrew-bottles
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_MAKE_JOBS: 4
http_proxy: http://172.27.27.9:1810
https_proxy: http://172.27.27.9:1810
Homebrew Ruby: 2.6.8 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/bin/ruby
CPU: quad-core 64-bit haswell
Clang: 14.0.0
Git: 2.34.1 => /bin/git
Curl: 7.81.0 => /bin/curl
Kernel: Linux 5.15.79.1-microsoft-standard-WSL2 x86_64 GNU/Linux
OS: Ubuntu 22.04.1 LTS (jammy)
Host glibc: 2.35
/usr/bin/gcc: N/A
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: 12.2.0
xorg: N/A

Formula Requests:

The quickest way to get a new formula into Homebrew is to file a Pull Request.

We will consider your request but it may be closed if it's something we're not actively planning to work on.