Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874549 - dev-libs/libmcrypt-2.5.8-r5 - mcrypt_symb.c: error: type defaults to int in declaration of cbc_LTX_init_mcrypt [-Werror=implicit-int
Summary: dev-libs/libmcrypt-2.5.8-r5 - mcrypt_symb.c: error: type defaults to int in d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: fixed in 2.5.8-r7
Keywords:
: 870715 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-03 08:13 UTC by Toralf Förster
Modified: 2024-10-27 20:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.21 KB, text/plain)
2022-10-03 08:13 UTC, Toralf Förster
Details
dev-libs:libmcrypt-2.5.8-r4:20221003-055959.log (dev-libs:libmcrypt-2.5.8-r4:20221003-055959.log,130.01 KB, text/plain)
2022-10-03 08:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,73.49 KB, text/plain)
2022-10-03 08:13 UTC, Toralf Förster
Details
environment (environment,75.93 KB, text/plain)
2022-10-03 08:13 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,9.76 KB, application/x-bzip)
2022-10-03 08:13 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,12.65 KB, application/x-bzip)
2022-10-03 08:13 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,31.56 KB, application/x-bzip)
2022-10-03 08:13 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-10-03 08:13:48 UTC
too long lines were shrinked:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/lib64/libmcrypt/\" -I. -I.. -I. -I.. -I../modules/algorithms -I../modules/modes -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c win32_comp.c  -fPIC -DPIC -o .libs/w
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/lib64/libmcrypt/\" -I. -I.. -I. -I.. -I../modules/algorithms -I../modules/modes -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c mcrypt_threads.c  -fPIC -DPIC -o .li
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/lib64/libmcrypt/\"  -I. -I.. -I. -I..  -I../modules/algorithms -I../modules/modes    -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c -o m
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/lib64/libmcrypt/\" -I. -I.. -I. -I.. -I../modules/algorithms -I../modules/modes -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -c mcrypt_symb.c  -fPIC -DPIC -o .libs/
mcrypt_symb.c:5:8: error: type defaults to 'int' in declaration of 'cbc_LTX__init_mcrypt' [-Werror=implicit-int]
    5 | extern cbc_LTX__init_mcrypt();
      |        ^~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20221002-182017

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit af50553c502d12d3163e7ed114fc3646f1d1afd7
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 3 05:33:59 2022 +0000

    2022-10-03 05:33:58 UTC

emerge -qpvO dev-libs/libmcrypt
[ebuild  N    ] dev-libs/libmcrypt-2.5.8-r4
Comment 1 Toralf Förster gentoo-dev 2022-10-03 08:13:49 UTC
Created attachment 817273 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 08:13:51 UTC
Created attachment 817276 [details]
dev-libs:libmcrypt-2.5.8-r4:20221003-055959.log
Comment 3 Toralf Förster gentoo-dev 2022-10-03 08:13:52 UTC
Created attachment 817279 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-03 08:13:54 UTC
Created attachment 817282 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-03 08:13:55 UTC
Created attachment 817285 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 08:13:56 UTC
Created attachment 817288 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-03 08:13:57 UTC
Created attachment 817291 [details]
temp.tar.bz2
Comment 8 Pacho Ramos gentoo-dev 2022-10-28 21:27:37 UTC
*** Bug 870715 has been marked as a duplicate of this bug. ***
Comment 9 Ionen Wolkens gentoo-dev 2022-11-09 02:38:14 UTC
While this is just about fixing the lib/Makefile.am, the grep it does to generate mcrypt_symb.c doesn't include the actual declaration, and just replacing extern by extern int is wrong (e.g. some are char *).

Could grep further for the real declaration from that but may be getting messy. If someone fixes this, it may be easier to pre-generate a proper mcrypt_symb.c not that I've dug further into this.
Comment 10 Agostino Sarubbo gentoo-dev 2023-02-14 08:35:10 UTC
tinderbox_musl has reproduced this issue with version 2.5.8-r5 - Updating summary.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-20 22:33:21 UTC
commit 836dfe489e3087ef00970829697777315ec1f7f6
Author: Sam James <sam@gentoo.org>
Date:   Thu Apr 20 23:28:33 2023 +0100

    dev-libs/libmcrypt: fix -Wimplicit-int

    Signed-off-by: Sam James <sam@gentoo.org>

(just gone for the Fedora fix for now)
Comment 12 Larry the Git Cow gentoo-dev 2024-10-27 20:34:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25c9f1e93bc3da0155d865e2d1afaab90b934254

commit 25c9f1e93bc3da0155d865e2d1afaab90b934254
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-10-27 20:34:17 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-10-27 20:34:30 +0000

    dev-libs/libmcrypt: drop 2.5.8-r6
    
    Bug: https://bugs.gentoo.org/874549
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-libs/libmcrypt/libmcrypt-2.5.8-r6.ebuild | 50 ----------------------------
 1 file changed, 50 deletions(-)