Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2276 - libmcrypt 2.4.19 doesn't compile
Summary: libmcrypt 2.4.19 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 2277 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-30 07:31 UTC by Chris Arndt
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Arndt 2002-04-30 07:31:10 UTC
libmcrypt 2.4.19 fails to compile with the following error:

rm -fr .libs/loki97.la .libs/loki97.* .libs/loki97.*
i586-pc-linux-gnu-gcc -shared  loki97.lo  /usr/lib/libltdl.so  -Wl,-soname
-Wl,loki97.so -o .libs/loki97.so
ar cru .libs/loki97.a  loki97.o 
ranlib .libs/loki97.a
creating loki97.la
(cd .libs && rm -f loki97.la && ln -s ../loki97.la loki97.la)
/bin/sh ../../libtool --mode=compile i586-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I../..  -I../../lib     -mcpu=k6 -march=k6 -O3 -pipe -c gost.c
rm -f .libs/gost.lo
i586-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib -mcpu=k6 -march=k6
-O3 -pipe -c gost.c  -fPIC -DPIC -o .libs/gost.lo
gost.c:98: parse error before `1'
gost.c: In function `_mcrypt_kboxinit':
gost.c:153: subscripted value is neither array nor pointer
make[3]: *** [gost.lo] Error 1
make[3]: Leaving directory
`/var/tmp/portage/libmcrypt-2.4.19/work/libmcrypt-2.4.19/modules/algorithms'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/libmcrypt-2.4.19/work/libmcrypt-2.4.19/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libmcrypt-2.4.19/work/libmcrypt-2.4.19'
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -63, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/dev-libs/libmcrypt/libmcrypt-2.4.19.ebuild
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-30 07:47:34 UTC
*** Bug 2277 has been marked as a duplicate of this bug. ***
Comment 2 Gontran Zepeda 2002-04-30 10:49:25 UTC
What gcc, m4, autoconf are you using? 
Comment 3 Chris Arndt 2002-04-30 22:43:23 UTC
using:
gcc 2.95.3
m4 1.4p
autoconf 2.52d
Comment 4 Gontran Zepeda 2002-04-30 23:35:10 UTC
Works for me && only difference in my setup is autoconf.  
I'm using version sys-devel/autoconf-2.13-r2
Comment 5 Ryan Phillips (RETIRED) gentoo-dev 2002-05-01 02:25:47 UTC
I have the same setup as comment #3.  Works fine here...
Comment 6 Matt Caesar 2002-05-02 09:35:04 UTC
Doesn't compile for me either. The problem arises when using -mcpu=k6 -march=k6
optimizations. A quick work around is to use the i586 option instead.

versions: (as reported by emerge)
gcc 2.95.3 
m4 1.4p
autoconf 2.52d

# autoconf --version
Autoconf version 2.13

# m4 --version
GNU m4 1.4ppre2 (options: modules)

# gcc --version
2.95.3
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-05 03:13:11 UTC
Works fine for me when I have -march=k6, although this do not look like
a automake/autoconf problem, but rather a gcc/"included headers" problem.

What version linux-headers do you guys have ?
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-05 03:18:13 UTC
Hmm, ok, it is the "-mcpu=k6" that breaks things, as modules/algorithms/gosh.c
have a "k6" array.
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-05 03:25:12 UTC
Hi guys, libmcrypt-2.4.19-r1 should fix this.