From: John <st...@un...> - 2004-04-12 17:26:55
|
On Mon, Apr 12, 2004 at 10:08:17AM -0400, Steve Kann wrote: > John wrote: > > >i'm trying to compile the snapshot > >http://iaxclient.sourceforge.net/snapshots/iaxclient.tar.gz > >seems to be from 11-Apr-2004 22:05 > > > >This is the error i'm getting. > > > > > > Sorry about that. I think Michael committed his iaxcomm code before > some associated changes to the library, including the iaxc_unquelch > API. You'll probably need to use CVS to get a slightly earlier version > of iaxcomm sources in order to make things work, until this is > resolved. [you could still use the latest lib/* sources, though]. > > > >make > > > > > >(cd ../../lib; make libiaxclient.a) > >make[1]: Entering directory `/home/strgout/iaxclient/lib' > >make[1]: `libiaxclient.a' is up to date. > >make[1]: Leaving directory `/home/strgout/iaxclient/lib' > >g++ -I../../lib -g -Wall `wx-config --cflags` `gtk-config --cflags` -c > >-o main.o main.cc > >g++ -I../../lib -g -Wall `wx-config --cflags` `gtk-config --cflags` -c > >-o prefs.o prefs.cc > >g++ -I../../lib -g -Wall `wx-config --cflags` `gtk-config --cflags` -c > >-o calls.o calls.cc > >calls.cc: In member function `void CallList::OnSelect(wxListEvent&)': > >calls.cc:125: error: `iaxc_unquelch' undeclared (first use this function) > >calls.cc:125: error: (Each undeclared identifier is reported only once for > >each > > function it appears in.) > >calls.cc: In member function `int > > CallList::HandleStateEvent(iaxc_ev_call_state)': > >calls.cc:244: error: `iaxc_unquelch' undeclared (first use this function) > >make: *** [calls.o] Error 1 > > > > > >The end result i'd like to work towards is a staticly link iaxcomm binary > >so that i can dump this onto my freebsd box. > > > > > Do you need _everything_ linked statically? The binaries on the > sourceforge pages should be linked against wxwindows statically, and > dynamically to the standard system libs. It is my understanding that > linking glibc statically these days is pretty impossible. [the library > itself uses dynamic loading for parts of itself, I think]. > > >or if someone has a patch set for freebsd .. :) > > > Someone early on contributed, and we merged, patches for the library to > compile on FreeBSD. Everything also works with MacOSX, which is based > on FreeBSD, so it might not be hard to compile on FreeBSD itself. > > -SteveK > > Ok... i checked out the src and here is what needs to be done to compile on freebsd (so far..) Well after some hacking i'm at the same error on my freebsd box. I'll checkout cvs (head?) and see if that fixes my problems. BTW some things i've had to do to get to this point... replace make with gmake in all the make files. iaxclient/lib/libiax2/src/md5.c there is a FreeBSD ifdef, however no FreeBSD OSTYPE in the Makefile. iaxclient/lib/libiax2/src/iax.c Seems to want to use MAXOSX + LINUX include lines FreeBSD doesn't have a error.h and stdlib.h replaces malloc.h at least from the thats what the warning said. FreeBSD also wants #include <sys/types.h> include before #include <sys/socket.h> #define IAX_SOCKOPTS MSG_DONTWAIT | MSG_NOSIGNAL <- no idea what MSG_NOSIGNAL is or should be in freebsd but removing the | MSG_NOSIGNAL is the last step. at this point the lib compiles clean. even though it thinks this is Linux ;) ok so next... i installed wxgtk (wxgtk-2.4.2_7) wxgtk-common (wxgtk-common-2.4.2_1) from the ports/x11-toolkits dir.. and that got me to the " Makefile:27: OSTYPE cannot be detected, assuming Linux (cd ../../lib; gmake libiaxclient.a) gmake[1]: Entering directory `/home/strgout/iaxclient/lib' Makefile:92: OSTYPE cannot be detected, assuming Linux gmake[1]: `libiaxclient.a' is up to date. gmake[1]: Leaving directory `/home/strgout/iaxclient/lib' g++ -I../../lib -g -Wall `wx-config --cflags` `gtk-config --cflags` -c -o calls.o calls.cc calls.cc: In method `void CallList::OnSelect(wxListEvent &)': calls.cc:125: implicit declaration of function `int iaxc_unquelch(...)' gmake: *** [calls.o] Error 1 " under FreeBSD. who needs linulation anyways ;) i also just noticed the cvs commit message, so i'll check out and try again. |