[MacPorts] #70730: snort fails to build: ERROR! openssl/x509.h or openssl library not found

MacPorts noreply at macports.org
Fri Sep 13 22:20:04 UTC 2024


#70730: snort fails to build: ERROR!  openssl/x509.h or openssl library not found
--------------------------+--------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.1
 Keywords:  ppc, i386     |       Port:  snort
--------------------------+--------------------
 Looks like configure tries to use 64-bit assumptions:
 {{{
 configure:18327: checking openssl/x509.h usability
 configure:18327: ccache /usr/bin/gcc-4.2 -c -pipe
 -I/opt/local/libexec/openssl3/include -Os -arch ppc -DSF_VISIBILITY
 -fvisibility=hidden -I/opt/local/libexec/openssl3/include
 -isystem/opt/local/include/LegacySupport -isystem/opt/local/include
 -I/opt/local/include -I/opt/local/include -DLZMA -DGRE -DMPLS -DPPM_MGR
 -DNDEBUG -DENABLE_REACT -DENABLE_RESPOND -DENABLE_RESPONSE3 conftest.c >&5
 configure:18327: $? = 0
 configure:18327: result: yes
 configure:18327: checking openssl/x509.h presence
 configure:18327: ccache /usr/bin/gcc-4.2 -E
 -I/opt/local/libexec/openssl3/include
 -isystem/opt/local/include/LegacySupport -isystem/opt/local/include
 -I/opt/local/include -I/opt/local/include -DLZMA -DGRE -DMPLS -DPPM_MGR
 -DNDEBUG -DENABLE_REACT -DENABLE_RESPOND -DENABLE_RESPONSE3 conftest.c
 configure:18327: $? = 0
 configure:18327: result: yes
 configure:18327: checking for openssl/x509.h
 configure:18327: result: yes
 configure:18329: checking for d2i_X509 in -lcrypto
 configure:18354: ccache /usr/bin/gcc-4.2 -o conftest -pipe
 -I/opt/local/libexec/openssl3/include -Os -arch ppc -DSF_VISIBILITY
 -fvisibility=hidden -I/opt/local/libexec/openssl3/include
 -isystem/opt/local/include/LegacySupport -isystem/opt/local/include
 -I/opt/local/include -I/opt/local/include -DLZMA -DGRE -DMPLS -DPPM_MGR
 -DNDEBUG -DENABLE_REACT -DENABLE_RESPOND -DENABLE_RESPONSE3
 -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names
 -L/opt/local/lib -lMacportsLegacySupport -arch ppc -L/opt/local/lib -lpcre
 -L/opt/local/lib -ldnet -pagezero_size 10000 -image_base 100000000
 conftest.c -lcrypto  -lz -ldaq_static -ldnet -lpcre -lpcap -luuid -lm -lm
 -lcrypto -ldl -L/opt/local/lib -ldaq_static_modules  -lpcap -lsfbpf -lpcap
 -lz -llzma -lpthread -lpthread -lpthread >&5
 ld: section ._mach_header exceeds 4GB limit
 collect2: ld returned 1 exit status
 configure:18354: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 }}}

 So that fails:
 {{{
 --->  Configuring snort
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_snort/snort/work/snort-2.9.20"
 && ./configure --prefix=/opt/local
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking whether make supports nested variables... yes
 checking whether make supports the include directive... yes (GNU style)
 checking for gcc... ccache /usr/bin/gcc-4.2
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether ccache /usr/bin/gcc-4.2 accepts -g... yes
 checking for ccache /usr/bin/gcc-4.2 option to accept ISO C89... none
 needed
 checking whether ccache /usr/bin/gcc-4.2 understands -c and -o together...
 yes
 checking dependency style of ccache /usr/bin/gcc-4.2... gcc3
 checking for ccache /usr/bin/gcc-4.2 option to accept ISO C99...
 -std=gnu99
 checking for ccache /usr/bin/gcc-4.2 -std=gnu99 option to accept ISO
 Standard C... (cached) -std=gnu99
 checking for gcc... (cached) ccache /usr/bin/gcc-4.2
 checking whether we are using the GNU C compiler... (cached) yes
 checking whether ccache /usr/bin/gcc-4.2 accepts -g... (cached) yes
 checking for ccache /usr/bin/gcc-4.2 option to accept ISO C89... (cached)
 none needed
 checking whether ccache /usr/bin/gcc-4.2 understands -c and -o together...
 (cached) yes
 checking dependency style of ccache /usr/bin/gcc-4.2... (cached) gcc3
 checking build system type... powerpc-apple-darwin10.0.0d2
 checking host system type... powerpc-apple-darwin10.0.0d2
 checking how to print strings... printf
 checking for a sed that does not truncate output... /opt/local/bin/gsed
 checking for grep that handles long lines and -e... /opt/local/bin/ggrep
 checking for egrep... /opt/local/bin/ggrep -E
 checking for fgrep... /opt/local/bin/ggrep -F
 checking for ld used by ccache /usr/bin/gcc-4.2... /usr/libexec/gcc
 /powerpc-apple-darwin10/4.2.1/ld
 checking if the linker (/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/ld)
 is GNU ld... no
 checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm
 -B
 checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
 checking whether ln -s works... yes
 checking the maximum length of command line arguments... 196608
 checking how to convert powerpc-apple-darwin10.0.0d2 file names to
 powerpc-apple-darwin10.0.0d2 format... func_convert_file_noop
 checking how to convert powerpc-apple-darwin10.0.0d2 file names to
 toolchain format... func_convert_file_noop
 checking for /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/ld option to
 reload object files... -r
 checking for objdump... no
 checking how to recognize dependent libraries... pass_all
 checking for dlltool... no
 checking how to associate runtime and link libraries... printf %s\n
 checking for ar... ar
 checking for archiver @FILE support... no
 checking for strip... strip
 checking for ranlib... ranlib
 checking command to parse /opt/local/bin/nm -B output from ccache
 /usr/bin/gcc-4.2 object... ok
 checking for sysroot... no
 checking for a working dd... /bin/dd
 checking how to truncate binary pipes... /bin/dd bs=4096 count=1
 checking for mt... no
 checking if : is a manifest tool... no
 checking for dsymutil... dsymutil
 checking for nmedit... nmedit
 checking for lipo... lipo
 checking for otool... otool
 checking for otool64... no
 checking for -single_module linker flag... yes
 checking for -exported_symbols_list linker flag... yes
 checking for -force_load linker flag... ld: unknown option: -force_load
 no
 checking how to run the C preprocessor... ccache /usr/bin/gcc-4.2 -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking for dlfcn.h... yes
 checking for objdir... .libs
 checking if ccache /usr/bin/gcc-4.2 supports -fno-rtti -fno-exceptions...
 no
 checking for ccache /usr/bin/gcc-4.2 option to produce PIC... -fno-common
 -DPIC
 checking if ccache /usr/bin/gcc-4.2 PIC flag -fno-common -DPIC works...
 yes
 checking if ccache /usr/bin/gcc-4.2 static flag -static works... no
 checking if ccache /usr/bin/gcc-4.2 supports -c -o file.o... yes
 checking if ccache /usr/bin/gcc-4.2 supports -c -o file.o... (cached) yes
 checking whether the ccache /usr/bin/gcc-4.2 linker (/usr/libexec/gcc
 /powerpc-apple-darwin10/4.2.1/ld) supports shared libraries... yes
 checking dynamic linker characteristics... darwin10.0.0d2 dyld
 checking how to hardcode library paths into programs... immediate
 checking whether stripping libraries is possible... yes
 checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether to build static libraries... yes
 checking for ranlib... (cached) ranlib
 checking whether byte ordering is bigendian... yes
 checking for inline... inline
 checking for stdbool.h that conforms to C99... yes
 checking for _Bool... yes
 checking for bison... bison
 checking for flex... flex
 checking for inttypes.h... (cached) yes
 checking math.h usability... yes
 checking math.h presence... yes
 checking for math.h... yes
 checking paths.h usability... yes
 checking paths.h presence... yes
 checking for paths.h... yes
 checking for stdlib.h... (cached) yes
 checking for string.h... (cached) yes
 checking for strings.h... (cached) yes
 checking for unistd.h... (cached) yes
 checking wchar.h usability... yes
 checking wchar.h presence... yes
 checking for wchar.h... yes
 checking sys/sockio.h usability... yes
 checking sys/sockio.h presence... yes
 checking for sys/sockio.h... yes
 checking for floor in -lm... yes
 checking for ceil in -lm... yes
 checking uuid/uuid.h usability... yes
 checking uuid/uuid.h presence... yes
 checking for uuid/uuid.h... yes
 checking for uuid_parse in -luuid... yes
 checking for inet_ntoa in -lnsl... no
 checking for socket in -lsocket... no
 checking whether printf must be declared... no
 checking whether fprintf must be declared... no
 checking whether syslog must be declared... no
 checking whether puts must be declared... no
 checking whether fputs must be declared... no
 checking whether fputc must be declared... no
 checking whether fopen must be declared... no
 checking whether fclose must be declared... no
 checking whether fwrite must be declared... no
 checking whether fflush must be declared... no
 checking whether getopt must be declared... no
 checking whether bzero must be declared... no
 checking whether bcopy must be declared... no
 checking whether memset must be declared... no
 checking whether strtol must be declared... no
 checking whether strcasecmp must be declared... no
 checking whether strncasecmp must be declared... no
 checking whether strerror must be declared... no
 checking whether perror must be declared... no
 checking whether socket must be declared... no
 checking whether sendto must be declared... no
 checking whether vsnprintf must be declared... no
 checking whether snprintf must be declared... no
 checking whether strtoul must be declared... no
 checking for sigaction... yes
 checking for strlcpy... yes
 checking for strlcat... yes
 checking for strerror... yes
 checking for vswprintf... yes
 checking for wprintf... yes
 checking for memrchr... no
 checking for inet_ntop... yes
 checking for gettid... no
 checking for snprintf... yes
 checking for malloc_trim... no
 checking for mallinfo... no
 checking size of char... 1
 checking size of short... 2
 checking size of int... 4
 checking size of long int... 4
 checking size of long long int... 8
 checking size of unsigned int... 4
 checking size of unsigned long int... 4
 checking size of unsigned long long int... 8
 checking for u_int8_t... yes
 checking for u_int16_t... yes
 checking for u_int32_t... yes
 checking for u_int64_t... yes
 checking for uint8_t... yes
 checking for uint16_t... yes
 checking for uint32_t... yes
 checking for uint64_t... yes
 checking for int8_t... yes
 checking for int16_t... yes
 checking for int32_t... yes
 checking for int64_t... yes
 checking for boolean... no
 checking for INADDR_NONE... yes
 checking for __FUNCTION__... yes
 checking for pcap_datalink in -lpcap... yes
 checking for pcap_lex_destroy... no
 checking for pcap_lib_version... yes
 checking pcre.h usability... yes
 checking pcre.h presence... yes
 checking for pcre.h... yes
 checking for pcre_compile in -lpcre... yes
 checking for libpcre version 6.0 or greater... yes
 checking for SHA256_Init in -lcrypto... yes
 checking for MD5_Init in -lcrypto... yes
 DATETIME 2024-09-13T22:15:26Z (1726265726)
 VERSION 0.4.1
 DEVICE=!=
 mares_darwin_device_open
 ERROR: No such file or directory (2) [in serial_posix.c:107 (serial_open)]
 ERROR: Failed to open the serial port. [in mares_darwin.c:123
 (mares_darwin_device_open)]
 mares_darwin_test.c:42: Error opening serial port.
 SUMMARY
 -------
 test_dump_memory:          Input/output error
 DATETIME 2024-09-13T22:15:26Z (1726265726)
 VERSION 0.4.1
 DEVICE=!=
 mares_darwin_device_open
 ERROR: No such file or directory (2) [in serial_posix.c:107 (serial_open)]
 ERROR: Failed to open the serial port. [in mares_darwin.c:123
 (mares_darwin_device_open)]
 mares_darwin_test.c:42: Error opening serial port.
 SUMMARY
 -------
 test_dump_memory:          Input/output error
 checking dnet.h usability... yes
 checking dnet.h presence... yes
 checking for dnet.h... yes
 checking dumbnet.h usability... no
 checking dumbnet.h presence... no
 checking for dumbnet.h... no
 checking for eth_set in -ldnet... yes
 checking for eth_set in -ldumbnet... no
 checking for dlsym in -ldl... yes
 checking for daq_load_modules in -ldaq_static... yes
 checking for daq_hup_apply... yes
 checking for daq_acquire_with_meta... yes
 checking for daq_dp_add_dc... yes
 checking for daq real addresses... no
 checking whether DAQ_PKT_FLAG_DECRYPTED_SSL is declared... no
 checking whether DAQ_PKT_FLAG_LOCALLY_ORIGINATED is declared... no
 checking whether DAQ_PKT_FLAG_LOCALLY_DESTINED is declared... no
 checking for struct _DAQ_DP_key_t.sa.src_ip4... yes
 checking for daq address space ID... yes
 checking for daq flow ID... yes
 checking for daq extended flow modifiers... no
 checking for daq query flow... no
 checking for daq data channel flags... no
 checking for separate IP versions on pinhole endpoints... no
 checking for DAQ_VERDICT_RETRY... yes
 checking for daq packet trace... no
 DAQ version doesn't support packet trace.
 checking for daq verdict reason... no
 DAQ version doesn't support tracing verdict reason.
 checking for sparc... no
 checking for visibility support... yes
 checking zlib.h usability... yes
 checking zlib.h presence... yes
 checking for zlib.h... yes
 checking for inflate in -lz... yes
 checking lzma.h usability... yes
 checking lzma.h presence... yes
 checking for lzma.h... yes
 checking for lzma_stream_decoder in -llzma... yes
 checking for pthread_tryjoin_np... no
 checking for pkg-config... /opt/local/bin/pkg-config
 checking pkg-config is at least version 0.9.0... yes
 checking for luajit... yes
 checking openssl/x509.h usability... yes
 checking openssl/x509.h presence... yes
 checking for openssl/x509.h... yes
 checking for d2i_X509 in -lcrypto... no

    ERROR!  openssl/x509.h or openssl library not found.
    Try compiling without openAppId using '--disable-open-appid'
 configure: error: "Fatal!"
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_snort/snort/work/snort-2.9.20"
 && ./configure --prefix=/opt/local
 Exit code: 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70730>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list