Opened 7 weeks ago

Closed 7 weeks ago

#70875 closed defect (fixed)

libmcrypt @2.5.8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int

Reported by: florinche (Florin C) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc:
Port: libmcrypt

Description

I was trying to install php82-mcrypt and the libmcrypt dependency fails to build. I am on a Apple M2 15.0, i know there are a lot of issue with Seqoia right now but this seams a different problem.

...
--->  Fetching archive for libmcrypt
--->  Attempting to fetch libmcrypt-2.5.8_1.darwin_24.arm64.tbz2 from https://vie.at.packages.macports.org/libmcrypt
--->  Attempting to fetch libmcrypt-2.5.8_1.darwin_24.arm64.tbz2 from https://packages.macports.org/libmcrypt
--->  Attempting to fetch libmcrypt-2.5.8_1.darwin_24.arm64.tbz2 from https://nue.de.packages.macports.org/libmcrypt
--->  Fetching distfiles for libmcrypt
--->  Verifying checksums for libmcrypt
--->  Extracting libmcrypt
--->  Applying patches to libmcrypt
--->  Configuring libmcrypt
--->  Building libmcrypt
Error: Failed to build libmcrypt: command execution failed

I can attach the build log, mostly is because of this:

:info:build mcrypt_symb.c:18:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build    18 | extern cfb_LTX__mcrypt_set_state();
:info:build       | ~~~~~~ ^
:info:build       | int
:info:build mcrypt_symb.c:19:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build    19 | extern cfb_LTX__mcrypt_get_state();
:info:build       | ~~~~~~ ^
:info:build       | int
:info:build mcrypt_symb.c:20:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build    20 | extern cfb_LTX__end_mcrypt();
:info:build       | ~~~~~~ ^
:info:build       | int
:info:build mcrypt_symb.c:21:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build    21 | extern cfb_LTX__mcrypt();
:info:build       | ~~~~~~ ^
:info:build       | int
:info:build mcrypt_symb.c:22:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build    22 | extern cfb_LTX__mdecrypt();
:info:build       | ~~~~~~ ^
:info:build       | int
:info:build mcrypt_symb.c:23:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
:info:build    23 | extern cfb_LTX__has_iv();
:info:build       | ~~~~~~ ^
:info:build       | int
:info:build fatal error: too many errors emitted, stopping now [-ferror-limit=]
:info:build 20 errors generated.
:info:build make[2]: *** [mcrypt_symb.lo] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libmcrypt/libmcrypt/work/libmcrypt-2.5.8/lib'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libmcrypt/libmcrypt/work/libmcrypt-2.5.8'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libmcrypt/libmcrypt/work/libmcrypt-2.5.8'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libmcrypt/libmcrypt/work/libmcrypt-2.5.8" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build Failed to build libmcrypt: command execution failed

...

Attachments (1)

main.log (169.2 KB) - added by florinche (Florin C) 7 weeks ago.

Download all attachments as: .zip

Change History (4)

Changed 7 weeks ago by florinche (Florin C)

Attachment: main.log added

comment:1 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Port: libmcrypt added; php82-mcrypt removed
Status: newaccepted
Summary: libmcrypt @2.5.8 fails to buildlibmcrypt @2.5.8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int

comment:2 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

A patch to fix this was already submitted to the developers here:

https://sourceforge.net/p/mcrypt/patches/15/

There has not been a release of mcrypt since 2008 so I do not anticipate any fixes from them. I'll apply the patch to MacPorts.

comment:3 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 87b55a9fa8934281f02219876850b14a911be006/macports-ports (master):

libmcrypt: Fix build failure due to implicit int

Also fix configure script detection of bcopy and readdir and fix a bug
in tripledes so increase revision.

Closes: #70875

Note: See TracTickets for help on using tickets.