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
Created attachment 133841 [details] eggdrop-1.6.18-r3.ebuild
Created attachment 133843 [details, diff] 30_all_peach-fbsd-gentoo.patch This fixes the two above problems, making eggdrop to compile fine
There is a problem in megahal.mod also, malloc.h needs to be replaced by stdlib.h
#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.