Menu

#4 compile error in cmpp

open
nobody
None
5
2004-08-24
2004-08-24
Anonymous
No

Compile errors during
make tcl

It seems pp_lst.c is redefining a malloc that already
exists.
In version tclspice-0.2.17
This error occurs in 0.2.15 too

make[3]: Entering directory `tclspice/src/xspice/cmpp'
gcc -g -O2 -Wall -c -o pp_lst.o pp_lst.c
pp_lst.c:55: error: conflicting types for `malloc'
/usr/include/stdlib.h:556: error: previous declaration
of `malloc'
pp_lst.c: In function `preprocess_lst_files':
pp_lst.c:134: warning: implicit declaration of function
`exit'
pp_lst.c: In function `check_uniqueness':
pp_lst.c:621: warning: implicit declaration of function
`str_to_lower'
pp_lst.c: In function `read_udn_type_name':
pp_lst.c:995: warning: unused variable `msg'
make[3]: *** [pp_lst.o] Error 1

Discussion

  • Nobody/Anonymous

    Logged In: NO

    just wanted to add I got around this error by just moving
    stdlib.h out of the way from /usr/include temporarily to
    compile pp_lst.c, and then moving stdlib.h back in.

     
  • Nobody/Anonymous

    Logged In: NO

    I am getting this error while giving the first configure

    Couldn't find Tcl/BLT headers

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.