Well, I got by that problem by including strings.h (note: strings.h, not
string.h) in that file. I also had to edit config.h by hand.. since as far
as I can tell AIX 4.2.1 doesn't have snprintf or vsnprintf.
I found this in /usr/include/sys with grep.
time.h:#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p)))
and in /usr/include
NLregexp.h: bzero((char *)ep, _BRACKET_LEN);
strings.h:extern void bzero();
strings.h:extern void bzero(void *, size_t);
Anyways, everything now compiles fine with those little changes I made,
but I'm getting a linker error which I can't figure out how to get pass.
Anyone have any ideas?
make[2]: Entering directory
`/afs/clarkson.edu/software/X/blackbox-0.61.0/rs_aix42/src/blackbox-0.61.0/src'
c++ -g -O2 -o blackbox BaseDisplay.o Basemenu.o Clientmenu.o
Configmenu.o Icon.o Image.o LinkedList.o Netizen.o Rootmenu.o Screen.o
Slit.o Timer.o Toolbar.o Window.o Windowmenu.o Workspace.o Workspacemenu.o
blackbox.o bsd-snprintf.o i18n.o main.o -lX11 -lXext
ld: 0711-317 ERROR: Undefined symbol: .snprintf(char *, unsigned long,
char const *,...)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make[2]: *** [blackbox] Error 1
On Wed, 4 Oct 2000, Jeff Raven wrote:
> On Wed, Oct 04, 2000 at 05:28:42PM -0400, Todd Cohen wrote:
> > Hi,
> > I'm trying to compile version 0.61.0 on AIX 4.2.1. I get the
> > error below.. any ideas before I look more into this?
> >
> > BaseDisplay.cc: In method `void BaseDisplay::eventLoop()':
> > BaseDisplay.cc:435: implicit declaration of function `int bzero(...)'
>
> Seems like it's got a problem with the FD_ZERO macro, which I'd
> guess is responsible for trying to use bzero...
>
> If you could track down where the FD_ZERO macro and bzero are
> defined (maybe /usr/include/sys/select.h and /usr/include/string.h)
> and see if FD_ZERO does in fact call bzero, it might help. I'd have
> expected the include file containing the select macros to take care
> of including bzero if they use it, but who knows?
>
> Jeff Raven
>
________________________________________________
http://wckn.clarkson.edu/~cohentl/
"The answers to lifes problems aren't at the bottom of bottles, they're on
TV" - Homer J. Simpson