Compiling using VBCC (sys/types.h)

4 posts / 0 new
Last post
jabirulo
jabirulo's picture
Offline
Last seen: 11 hours 31 min ago
Joined: 2013-05-30 00:53
Compiling using VBCC (sys/types.h)

When I do small/simple programs I try to test it with VBCC too if it compiles and so.
When trying to compile this "version" clone with some "features", under GCC no problems, but when trying VBCC I get the following error "sys/types.h" not found.
Do I need to copy gcc "???" drawer into vbcc includes or do I need an external package (posixlib in os4depot)?

TIA

#vc md5.c testVER2.c -o ram:testVER -v
vc frontend for vbcc (c) in 1995-2014 by Volker Barthelmann
vbccppc -quiet "md5.c" -o= "T:t_5_0.asm" -elf -no-regnames -no-multiple-ccs -madd -c99 -use-commons -O=1 -Ivincludeos4: -D__amigaos4__
vasmppc_std -quiet -Felf -opt-branch -no-regnames -nowarn=62 "T:t_5_0.asm" -o "T:t_5_0.o"
vbccppc -quiet "testVER2.c" -o= "T:t_5_1.asm" -elf -no-regnames -no-multiple-ccs -madd -c99 -use-commons -O=1 -Ivincludeos4: -D__amigaos4__
># include <sys/types.h>
error 248 in line 29 of "openssl/buffer.h": file 'sys/types.h' not found
included from file "vincludeos4:amissl/amissl.h":30
included from file "vincludeos4:proto/amissl.h":31
included from file "vincludeos4:openssl/md5.h":2
included from file "md5.h":27
included from file "testVER2.c":43
1 error found!
vbccppc falló con el código de retorno 20
vbccppc -quiet "testVER2.c" -o= "T:t_5_1.asm" -elf -no-regnames -no-multiple-ccs -madd -c99 -use-commons -O=1 -Ivincludeos4: -D__amigaos4__ failed
#

xenic
xenic's picture
Offline
Last seen: 1 year 10 months ago
Joined: 2011-05-07 04:52
Re: Compiling using VBCC (sys/types.h)

I don't think sys/types.h is in the GCC directory. It's in the newlib or clib2 includes. I don't know anything about vbcc but I'm guessing that the C library (clib2 or newlib?) includes are not in your vbcc include paths.

X1000 - OS 4.1FE

salass00
salass00's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2011-02-03 11:27
Re: Compiling using VBCC (sys/types.h)

@jabirulo

The default clib of vbcc only supports the ANSI standard.

To compile programs that need POSIX features you can either install the posixlib you mentioned or you can compile using the vbcc newlib config with "vc +newlib".

jabirulo
jabirulo's picture
Offline
Last seen: 11 hours 31 min ago
Joined: 2013-05-30 00:53
Re: Compiling using VBCC (sys/types.h)

Ok thx, will try with vbcc posixlib and/or +newlib and see what I get. THX

Found that if I use -lcrypto I don't need md5.c (as it seems such methods/functions are inside such lib)

AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P

Log in or register to post comments