aalib doesn´t know fd_set

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
eiffel56
Posts: 4
Joined: Sun Oct 15, 2006 7:00 am

aalib doesn´t know fd_set

Post by eiffel56 »

Hello,

hope I picked the right sub-forum. Lets begin ;).
I´m trying to compile aalib for PSP projects in cygwin. So i checkout and cd into it:

Code: Select all

svn checkout svn://svn.pspdev.org/psp/trunk/aalib
(works fine..., rev 2211)
cd aalib
Now I type make as the readme.psp says, nothing special so far. Here is the complete output:

Code: Select all

$ make
make -C src all
make[1]: Entering directory `/tmp/aalib/src'
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aafont.o aafont.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aafonts.o aafonts.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aavyhen.o aavyhen.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aamktabl.o aamktabl.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aamem.o aamem.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaprintf.o aaprintf.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aahelp.o aahelp.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaslnkbd.o aaslnkbd.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaslang.o aaslang.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aafastre.o aafastre.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontgl.o fontgl.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o font16.o font16.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o font14.o font14.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontx16.o fontx16.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontx13.o fontx13.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontx13b.o fontx13b.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontcour.o fontcour.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aarec.o aarec.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o font9.o font9.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o font8.o font8.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o fontline.o fontline.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aalib.o aalib.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaflush.o aaflush.c
aaflush.c: In function 'aa_display':
aaflush.c:40: warning: pointer targets in passing argument 2 of 'c->driver->prin
t' differ in signedness
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aarender.o aarender.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaout.o aaout.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aain.o aain.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaedit.o aaedit.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aaregist.o aaregist.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aasave.o aasave.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aastdout.o aastdout.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aagu.o aagu.c
psp-gcc -I../include -I. -I/usr/local/pspdev/psp/sdk/include -G0 -g -O2 -D_PSP_F
W_VERSION=150   -c -o aastdin.o aastdin.c
aastdin.c: In function 'stdin_getchar':
aastdin.c:58: error: 'fd_set' undeclared (first use in this function)
aastdin.c:58: error: (Each undeclared identifier is reported only once
aastdin.c:58: error: for each function it appears in.)
aastdin.c:58: error: syntax error before 'readfds'
aastdin.c:61: error: 'readfds' undeclared (first use in this function)
make[1]: *** [aastdin.o] Error 1
make[1]: Leaving directory `/tmp/aalib/src'
make: *** [all] Error 2
So, could anyone help me get this working? I don´t really know what have to be in a fd_set var :/.

Regards,
eiffel56
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Normally, the fd_set should be defined within the sys/types.h header, but it seems the sys/types.h in PSPSDK fails to do that. Try adding #include <sys/fd_set.h> right after the #include <sys/types.h> in aastdin.c and recompile.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
eiffel56
Posts: 4
Joined: Sun Oct 15, 2006 7:00 am

Post by eiffel56 »

Ah, works fine now. Thank you ;).
Post Reply