Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 196337

Summary: net-irc/eggdrop-1.6.18-r3 fails to compile on gentoo freebsd
Product: Gentoo/Alt Reporter: Carmine Paolino <earcar>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: major Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
URL: http://rafb.net/p/DyNNn143.html
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 338211, 437400    
Bug Blocks:    
Attachments: eggdrop-1.6.18-r3.ebuild
30_all_peach-fbsd-gentoo.patch

Description Carmine Paolino 2007-10-18 22:56:11 UTC
eggdrop has a function named encrypt that collide with system's encrypt.
Here is the build log:

i486-gentoo-freebsd6.2-gcc -pipe -fPIC -O2 -march=athlon-xp -pipe -Wall -I. -I../../.. -I../../.. -I../../../src/mod -DHAVE_CONFIG_H   -DMAKING_MODS -c .././rijndael.mod/rijndael.c
In file included from .././rijndael.mod/rijndael.c:8:
.././rijndael.mod/aes.h:105:1: warning: "BIG_ENDIAN" redefined
In file included from /usr/include/sys/types.h:44,
                 from ../../../src/main.h:90,
                 from ../../../src/mod/module.h:29,
                 from .././rijndael.mod/rijndael.c:5:
/usr/include/machine/endian.h:65:1: warning: this is the location of the previous definition
In file included from .././rijndael.mod/rijndael.c:8:
.././rijndael.mod/aes.h:106:1: warning: "LITTLE_ENDIAN" redefined
In file included from /usr/include/sys/types.h:44,
                 from ../../../src/main.h:90,
                 from ../../../src/mod/module.h:29,
                 from .././rijndael.mod/rijndael.c:5:
/usr/include/machine/endian.h:64:1: warning: this is the location of the previous definition
In file included from .././rijndael.mod/rijndael.c:8:
.././rijndael.mod/aes.h:251: error: conflicting types for 'encrypt'
/usr/include/unistd.h:426: error: previous declaration of 'encrypt' was here
.././rijndael.mod/rijndael.c: In function 'rijndael_init':
.././rijndael.mod/rijndael.c:53: warning: pointer targets in passing argument 1 of 'set_key' differ in signedness
.././rijndael.mod/rijndael.c: In function 'rijndael_encipher':
.././rijndael.mod/rijndael.c:60: warning: pointer targets in passing argument 1 of 'encrypt' differ in signedness
.././rijndael.mod/rijndael.c:60: warning: pointer targets in passing argument 2 of 'encrypt' differ in signedness
.././rijndael.mod/rijndael.c: In function 'rijndael_decipher':
.././rijndael.mod/rijndael.c:68: warning: pointer targets in passing argument 1 of 'decrypt' differ in signedness
.././rijndael.mod/rijndael.c:68: warning: pointer targets in passing argument 2 of 'decrypt' differ in signedness
gmake[2]: *** [../rijndael.o] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/net-irc/eggdrop-1.6.18-r3/work/eggdrop1.6.18/src/mod/rijndael.mod'
gmake[1]: *** [rijndael.mod_so] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/net-irc/eggdrop-1.6.18-r3/work/eggdrop1.6.18/src/mod'
gmake: *** [modules] Error 2
 * 
 * ERROR: net-irc/eggdrop-1.6.18-r3 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   eggdrop-1.6.18-r3.ebuild, line 65:   Called die
 * 
 * emake  failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-irc/eggdrop-1.6.18-r3/temp/build.log'.
 *

Reproducible: Always
Comment 1 Carmine Paolino 2007-10-18 22:57:47 UTC
Created attachment 133841 [details]
eggdrop-1.6.18-r3.ebuild
Comment 2 Carmine Paolino 2007-10-18 22:59:53 UTC
Created attachment 133843 [details, diff]
30_all_peach-fbsd-gentoo.patch

This fixes the two above problems, making eggdrop to compile fine
Comment 3 Carmine Paolino 2007-10-19 09:13:34 UTC
There is a problem in megahal.mod also, malloc.h needs to be replaced by stdlib.h
Comment 4 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2011-12-31 13:49:51 UTC
#include <stdlib.h> and renaming encrypt() have been fixed in eggdrop-1.6.21, thanks to Adam's help. Please let us know if this fixes this bug; if there's no response, we'll close it when eggdrop-1.6.21 is stable.