Quoth adr via 9fans <9fans@9fans.net>:
> Hi, let see if someone can put me in the right direction.
> 
> I'm having now this issue compiling ape/lib/sec (/sys/src/libsec
> is modified):
> 
> pcc -FTVw -c -+ -D_POSIX_SOURCE -D_PLAN9_SOURCE -I../../../../libmp/port -I. 
> -I/sys/include/ape -I/sys/include ../../../../libsec/port/tlshand.c
> /sys/src/ape/lib/sec/port/../../../../libsec/port/tlshand.c:2896[stdin:5401] 
> function args not checked: setrealloctag
> 
> So I thought setrealloctag is not been declared, so I added it to
> the local libc.h (/sys/src/ape/lib/sec/port/libc.h):
> 
> [...]
> extern  void    setmalloctag(void*, ulong);
> extern  void    setrealloctag(void*, uintptr);
> extern  ulong   getcallerpc(void*);
> [...]
> 
> But now:
> 
> pcc -FTVw -c -+ -D_POSIX_SOURCE -D_PLAN9_SOURCE -I../../../../libmp/port -I. 
> -I/sys/include/ape -I/sys/include ../../../../libsec/port/des.c
> /sys/src/ape/lib/sec/port/./libc.h:173[stdin:1533] mixed ansi/old function 
> declaration: setrealloctag
> 
> I'm missing something about how ape is importing the headers, any hint?
> 

You need to spell ulong, uintptr in posix types.
look at how it's done in 9front's ape/lib/9/libc.h
for a working example.

ape is its own separate world -- even fds are emulated
so that select and friends can be implemented with
procs in userspace.




------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T5d3998509603ebde-M2b943cc25dc92598f092e0d0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to