MadCamel / energymech

EnergyMech IRC Bot
GNU General Public License v2.0
20 stars 14 forks source link

error on make install about "channel.c" #50

Closed chandro closed 3 years ago

chandro commented 3 years ago

Hello after doing ./configuration i get an error when doing "make install"

root@localhost: /energymech-master# make install make -C src install make[1]: Entering directory '/root/energymech-master/src' gcc -pipe -g -o gencmd gencmd.c ./gencmd githash.h ./gencmd mcmd.h ./gencmd usercombo.h gcc -pipe -g -Os -march=i586 -fomit-frame-pointer -c alias.c gcc -pipe -g -Os -march=i586 -fomit-frame-pointer -c auth.c gcc -pipe -g -Os -march=i586 -fomit-frame-pointer -c bounce.c gcc -pipe -g -Os -march=i586 -fomit-frame-pointer -c channel.c channel.c:61:7: error: conflicting types for ‘find_channel’ Chan find_channel(const char name, int anychannel) ^~~~ In file included from channel.c:27: h.h:142:10: note: previous declaration of ‘find_channel’ was here LS Chan find_channel(const char , int) attr(CORE_SEG, regparm(2)); ^~~~ channel.c:80:7: error: conflicting types for ‘find_channel_ac’ Chan find_channel_ac(const char name) ^~~~~~~ In file included from channel.c:27: h.h:143:10: note: previous declaration of ‘find_channel_ac’ was here LS Chan find_channel_ac(const char ) attr(CORE_SEG, regparm(1)); ^~~~~~~ channel.c:85:7: error: conflicting types for ‘find_channel_ny’ Chan find_channel_ny(const char name) ^~~~~~~ In file included from channel.c:27: h.h:144:10: note: previous declaration of ‘find_channel_ny’ was here LS Chan find_channel_ny(const char ) __attr(CORE_SEG, __regparm(1)); ^~~~~~~ make[1]: [Makefile:162: channel.o] Error 1 make[1]: Leaving directory '/root/energymech-master/src' make: [Makefile:88: install] Error 2 root@localhost: /energymech-master#

joonicks commented 3 years ago

Your error is dependent on: version, operating system, compiler, configuration options; none of which you have provided. You are using an older version, current version @ github/Energymech

chandro commented 3 years ago

HEllo sorry, it was a debian 10 32bit, also same error on ubuntu 18.

Last version from here.

wget http://github.com/MadCamel/energymech/archive/master.tar.gz tar xvf master.tar.gz ./configure make install

and then error...

configuration options i just follow the installation instructions here on github.

joonicks commented 3 years ago

NEW VERSION: https://github.com/EnergyMech/energymech

chandro commented 3 years ago

i used that master to compile, but i dont know why open issue here.

i have just tested and same error

root@localhost:~/energymech-master# make install make -C src install make[1]: Entering directory '/root/energymech-master/src' gcc -pipe -g -o gencmd gencmd.c ./gencmd githash.h ./gencmd mcmd.h ./gencmd usercombo.h gcc -pipe -g -Os -march=i586 -fomit-frame-pointer -c alias.c gcc -pipe -g -Os -march=i586 -fomit-frame-pointer -c auth.c gcc -pipe -g -Os -march=i586 -fomit-frame-pointer -c bounce.c gcc -pipe -g -Os -march=i586 -fomit-frame-pointer -c channel.c channel.c:61:7: error: conflicting types for 'find_channel' Chan find_channel(const char name, int anychannel) ^ In file included from channel.c:27:0: h.h:142:10: note: previous declaration of 'find_channel' was here LS Chan find_channel(const char , int) attr(CORE_SEG, regparm(2)); ^ channel.c:80:7: error: conflicting types for 'find_channel_ac' Chan find_channel_ac(const char name) ^ In file included from channel.c:27:0: h.h:143:10: note: previous declaration of 'find_channel_ac' was here LS Chan find_channel_ac(const char ) attr(CORE_SEG, regparm(1)); ^ channel.c:85:7: error: conflicting types for 'find_channel_ny' Chan find_channel_ny(const char name)

let me open issue on the other github master

joonicks commented 3 years ago

gcc version, configuration options

chandro commented 3 years ago

gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)

config options are default, only enter on the yes no section.

joonicks commented 3 years ago

edit Makefile, remove the -march=i586 option n try again

chandro commented 3 years ago

there is not -march=i586 option on "Makefile"

chandro commented 3 years ago

but in "configure"

test -z "$cc_arch_opt" && cc_arch_opt=yes if [ "$cc_archopt" = yes ]; then case "$cfGNUCC""$cfMACH" in _95i486 | _33i486 ) if $CC -march=i486 -S -o - -xc /dev/null 1> /dev/null 2> /dev/null; then cc_arch_flag="-march=i486" fi ;; _95i[56789]86 | _33i[56789]86 ) if $CC -march=i586 -S -o - -xc /dev/null 1> /dev/null 2> /dev/null; then cc_arch_flag="-march=i586" fi ;; _33_x8664 ) if $CC -march=native -mtune=native -S -o - -xc /dev/null 1> /dev/null 2> /dev/null; then cc_arch_flag="-march=native -mtune=native" fi

i removed:

   ;;
  _95_i[56789]86_ | _33_i[56789]86_ )
    if $CC -march=i586 -S -o - -xc /dev/null 1> /dev/null 2> /dev/null; then
      cc_arch_flag="-march=i586"
    fi

but error is the same

joonicks commented 3 years ago

src/Makefile Line 32: OPTIMIZE = ....

chandro commented 3 years ago

thanks, but still nope.

i am going to try on another box.