Fork me on GitHub

Opened 11 years ago

Closed 11 years ago

#232 closed Bug (fixed)

Compile error in Mac

Reported by: Myeonghun Park Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description (last modified by Pavel Demin)

Dear Delphes team,

I have no idea how to fix this following error: (BTW, I installed ActiveTcl before compiling)

external/tcl/panic.c:59:22: error: variable or field ‘Tcl_SetPanicProc’ declared void
 Tcl_SetPanicProc(proc)
                      ^
external/tcl/panic.c:59:18: error: ‘proc’ was not declared in this scope
 Tcl_SetPanicProc(proc)
                  ^
external/tcl/panic.c:61:1: error: expected unqualified-id before ‘{’ token
 {
 ^
external/tcl/panic.c:83:7: error: variable or field ‘panic’ declared void
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
       ^
external/tcl/panic.c:83:7: error: ‘format’ was not declared in this scope
external/tcl/panic.c:83:15: error: ‘arg1’ was not declared in this scope
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
               ^
external/tcl/panic.c:83:21: error: ‘arg2’ was not declared in this scope
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
                     ^
external/tcl/panic.c:83:27: error: ‘arg3’ was not declared in this scope
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
                           ^
external/tcl/panic.c:83:33: error: ‘arg4’ was not declared in this scope
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
                                 ^
external/tcl/panic.c:83:39: error: ‘arg5’ was not declared in this scope
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
                                       ^
external/tcl/panic.c:83:45: error: ‘arg6’ was not declared in this scope
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
                                             ^
external/tcl/panic.c:83:51: error: ‘arg7’ was not declared in this scope
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
                                                   ^
external/tcl/panic.c:83:57: error: ‘arg8’ was not declared in this scope
 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
                                                         ^
external/tcl/panic.c:89:1: error: expected unqualified-id before ‘{’ token
 {
 ^
make: *** [tmp/external/tcl/panic.o] Error 1
make: *** Waiting for unfinished jobs....

Change History (6)

comment:1 by Pavel Demin, 11 years ago

Could you, please provide more details about your system, compiler and Delphes:

  • MacOS version
  • C++ compiler version
  • Delphes version

Thanks,

Pavel

comment:2 by Pavel Demin, 11 years ago

Description: modified (diff)

comment:3 by Pavel Demin, 11 years ago

Could you, please try to edit 'external/tcl/panic.c' and comment out or remove the following lines?

void
Tcl_SetPanicProc(proc)
    void (*proc) _ANSI_ARGS_(TCL_VARARGS(char *,format));
{
    panicProc = proc;
}

comment:4 by Myeonghun Park, 11 years ago

Solved. Thank you.

comment:5 by Pavel Demin, 11 years ago

I've tried to reproduce the problem but without much success.

Could you, please share you solution?

comment:6 by Pavel Demin, 11 years ago

Resolution: fixed
Status: newclosed

The problem was caused by a symbolic link for gcc pointing to g++.

Fixing the symbolic link solved the problem.

Note: See TracTickets for help on using tickets.