Menu

#10 main.cpp barfs on bsd

open
None
5
2003-04-10
2002-03-23
No

main.cpp barfs on bsd. If I add the following line to
config.h, kyim compiles(and runs).

#define HAVE_STDARG_H 1

If not it barfs with this:

main.cpp: In method `void KYahoo::debugmsg(const
char *, ...)':
main.cpp:1055: syntax error before `;'
main.cpp:1056: `args' undeclared (first use this function)
main.cpp:1056: (Each undeclared identifier is reported
only once
main.cpp:1056: for each function it appears in.)
main.cpp:1056: implicit declaration of function `int
va_start(...)'
main.cpp:1072: implicit declaration of function `int
va_end(...)'

HAVE_STDARG_H should be defined by the configure
script. Correct me if I am wrong but I think
aclocal.m4.in needs to be changed to check for this file,
since it doesn't appear to.

I have tested this with the development snapshot
031102, and current cvs version of KYim, on FreeBSD
4.5, but this should be the same accross the rest of the
BSD's. Included is a copy of my config.log from Kyim
from cvs(as of 22 Mar 02).

Discussion

  • Anonymous

    Anonymous - 2002-03-23

    config.log

     
  • Alexandre Aufrere

    Logged In: YES
    user_id=29293

    ok, i'm lost now.
    did u try the autoconf stuff before compiling ? normally, those platform very specific issues can be fixed
    by that...
    it's easy, just type :

    make -f Makefile.dist
    ./configure
    make

    if it still doesn't work, please report that to me :-)

     
  • Jay Lubomirski

    Jay Lubomirski - 2003-04-10
    • assigned_to: nobody --> jaylubo
     

Log in to post a comment.