New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD 10 compiling Errors #3

Closed
devnetirc opened this Issue Aug 23, 2015 · 4 comments

Comments

Projects
None yet
4 participants
@devnetirc

devnetirc commented Aug 23, 2015

cc -pipe -g -O2 -fomit-frame-pointer -c function.c
function.c:1076:2: error: function definition is not allowed here
{
^
1 error generated.
*** Error code 1

Stop.
make[1]: stopped in /usr/home/grumpy/energymech/src
*** Error code 1

Stop.
make: stopped in /usr/home/grumpy/energymech
$

@MadCamel

This comment has been minimized.

Show comment
Hide comment
@MadCamel

MadCamel Aug 24, 2015

Owner

I don't have a freebsd machine to test on or I'd take a look.

Owner

MadCamel commented Aug 24, 2015

I don't have a freebsd machine to test on or I'd take a look.

@MadCamel MadCamel added the bug label Aug 24, 2015

@devnetirc

This comment has been minimized.

Show comment
Hide comment
@devnetirc

devnetirc Aug 24, 2015

If I may contact you somewhere in private I can gave you access to my FreeBSD 10 box

devnetirc commented Aug 24, 2015

If I may contact you somewhere in private I can gave you access to my FreeBSD 10 box

@unixfreaxjp

This comment has been minimized.

Show comment
Hide comment
@unixfreaxjp

unixfreaxjp Dec 2, 2016

Works well now. You can close this issue I guess.

config:

~/energymech]$ ./configure
checking system type ... FreeBSD-i686
checking for C compiler ... gcc
checking whether gcc works or not ... yes
checking C compiler flags ... -g -fomit-frame-pointer -pipe -O2
checking pointer size ... 4
checking if cpu can access unaligned memory ... yes
checking for inet_addr() ... yes
checking for inet_aton() ... yes
checking for socket() ... yes
checking for crypt() ... yes
checking for tcl ... no
checking for python ... no
checking for friendly ld ... no
checking for objcopy ... /usr/bin/objcopy

Do you want ...

Alias support? ............................. [Y/n] n
Amusing misc commands (toybox)? ............ [Y/n] n
Async DNS support? ......................... [y/N] n
Botnet support? ............................ [Y/n] Y
Channel ban support? ....................... [Y/n] n
CTCP? ...................................... [Y/n] n
DCC file support? .......................... [Y/n] n
Debug support? ............................. [y/N] n
Dynamic channel limit (+l)? ................ [Y/n] n
Dynamic command levels support? ............ [Y/n] n
IRC proxy support? ......................... [Y/n] Y
IRCD extensions support? ................... [Y/n] n
Greet support? ............................. [Y/n] n
HTTP server support? ....................... [y/N] n
MD5 password support? ...................... [Y/n] n
Newbie support? ............................ [Y/n] Y
Note support? .............................. [Y/n] n
Notify support? ............................ [Y/n] n
Python scripting support? .................. [y/N] no (unsupported)
Command output redirect? ................... [Y/n] Y
Seen support? .............................. [y/N] n
Session support? ........................... [Y/n] n
Statistics support? ........................ [Y/n] n
Tcl scripting support? ..................... [y/N] no (unsupported)
Telnet support? ............................ [Y/n] Y
Trivia support? ............................ [y/N] n
Uptime support? ............................ [Y/n] n
WinGate support? ........................... [Y/n] n

Creating src/Makefile
Creating src/config.h

All done. You can now "make clean install"

Send your bugreports to <proton@energymech.net>

You have read the README file I hope?

compilation:

~/energymech]$ make
make -C src energymech
gcc -pipe -g -o gencmd gencmd.c
./gencmd > mcmd.h
gcc -pipe -g  -O2   -fomit-frame-pointer -c alias.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c auth.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c bounce.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c chanban.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c channel.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c core.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c ctcp.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c debug.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c dns.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c dynamode.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c function.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c greet.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c help.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c irc.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c kicksay.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c main.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c net.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c net_chan.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c note.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c notify.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c ons.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c parse.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c perl.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c prot.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c python.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c redirect.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c reset.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c seen.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c shit.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c socket.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c spy.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c stats.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c tcl.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c telnet.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c toybox.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c trivia.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c uptime.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c user.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c vars.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c web.c
gcc -pipe -g -o energymech alias.o auth.o bounce.o chanban.o channel.o core.o  ctcp.o debug.o dns.o dynamode.o function.o greet.o help.o irc.o  kicksay.o main.o net.o net_chan.o note.o notify.o ons.o parse.o  perl.o prot.o python.o redirect.o reset.o seen.o shit.o socket.o  spy.o stats.o tcl.o telnet.o toybox.o trivia.o uptime.o  user.o vars.o web.o  -lcrypt
objcopy -R .note -R .comment energymech

test:

[~/energymech]$ ./src/energymech
EnergyMech 3.0.99p3, July 24th, 2009
Compiled on Dec  3 2016 00:53:34
Features: bounce, net, telnet
[~/energymech]$ ./src/energymech -h
Usage: ./src/energymech [switches [args]]
 -f <file>   read configuration from <file>
 -c          make core file instead of coredebug/reset
 -h          show this help
 -v          show EnergyMech version
[~/energymech]$ date; uname
Sat Dec  3 00:59:23 JST 2016
FreeBSD

unixfreaxjp commented Dec 2, 2016

Works well now. You can close this issue I guess.

config:

~/energymech]$ ./configure
checking system type ... FreeBSD-i686
checking for C compiler ... gcc
checking whether gcc works or not ... yes
checking C compiler flags ... -g -fomit-frame-pointer -pipe -O2
checking pointer size ... 4
checking if cpu can access unaligned memory ... yes
checking for inet_addr() ... yes
checking for inet_aton() ... yes
checking for socket() ... yes
checking for crypt() ... yes
checking for tcl ... no
checking for python ... no
checking for friendly ld ... no
checking for objcopy ... /usr/bin/objcopy

Do you want ...

Alias support? ............................. [Y/n] n
Amusing misc commands (toybox)? ............ [Y/n] n
Async DNS support? ......................... [y/N] n
Botnet support? ............................ [Y/n] Y
Channel ban support? ....................... [Y/n] n
CTCP? ...................................... [Y/n] n
DCC file support? .......................... [Y/n] n
Debug support? ............................. [y/N] n
Dynamic channel limit (+l)? ................ [Y/n] n
Dynamic command levels support? ............ [Y/n] n
IRC proxy support? ......................... [Y/n] Y
IRCD extensions support? ................... [Y/n] n
Greet support? ............................. [Y/n] n
HTTP server support? ....................... [y/N] n
MD5 password support? ...................... [Y/n] n
Newbie support? ............................ [Y/n] Y
Note support? .............................. [Y/n] n
Notify support? ............................ [Y/n] n
Python scripting support? .................. [y/N] no (unsupported)
Command output redirect? ................... [Y/n] Y
Seen support? .............................. [y/N] n
Session support? ........................... [Y/n] n
Statistics support? ........................ [Y/n] n
Tcl scripting support? ..................... [y/N] no (unsupported)
Telnet support? ............................ [Y/n] Y
Trivia support? ............................ [y/N] n
Uptime support? ............................ [Y/n] n
WinGate support? ........................... [Y/n] n

Creating src/Makefile
Creating src/config.h

All done. You can now "make clean install"

Send your bugreports to <proton@energymech.net>

You have read the README file I hope?

compilation:

~/energymech]$ make
make -C src energymech
gcc -pipe -g -o gencmd gencmd.c
./gencmd > mcmd.h
gcc -pipe -g  -O2   -fomit-frame-pointer -c alias.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c auth.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c bounce.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c chanban.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c channel.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c core.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c ctcp.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c debug.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c dns.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c dynamode.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c function.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c greet.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c help.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c irc.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c kicksay.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c main.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c net.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c net_chan.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c note.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c notify.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c ons.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c parse.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c perl.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c prot.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c python.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c redirect.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c reset.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c seen.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c shit.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c socket.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c spy.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c stats.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c tcl.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c telnet.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c toybox.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c trivia.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c uptime.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c user.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c vars.c
gcc -pipe -g  -O2   -fomit-frame-pointer -c web.c
gcc -pipe -g -o energymech alias.o auth.o bounce.o chanban.o channel.o core.o  ctcp.o debug.o dns.o dynamode.o function.o greet.o help.o irc.o  kicksay.o main.o net.o net_chan.o note.o notify.o ons.o parse.o  perl.o prot.o python.o redirect.o reset.o seen.o shit.o socket.o  spy.o stats.o tcl.o telnet.o toybox.o trivia.o uptime.o  user.o vars.o web.o  -lcrypt
objcopy -R .note -R .comment energymech

test:

[~/energymech]$ ./src/energymech
EnergyMech 3.0.99p3, July 24th, 2009
Compiled on Dec  3 2016 00:53:34
Features: bounce, net, telnet
[~/energymech]$ ./src/energymech -h
Usage: ./src/energymech [switches [args]]
 -f <file>   read configuration from <file>
 -c          make core file instead of coredebug/reset
 -h          show this help
 -v          show EnergyMech version
[~/energymech]$ date; uname
Sat Dec  3 00:59:23 JST 2016
FreeBSD
@joonicks

This comment has been minimized.

Show comment
Hide comment
@joonicks

joonicks Mar 14, 2018

Collaborator

Fixed in 3.0.99p4

Collaborator

joonicks commented Mar 14, 2018

Fixed in 3.0.99p4

@joonicks joonicks closed this Mar 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment