Closed githubaf closed 4 years ago
it fails more early
m68k-amigaos-gcc: error: unrecognized command line option '-mrestore-a4'
I've compiled AmiSSL with gcc version 6.5.0b 191023121710 (GCC)
out of the box with make OS=os3.
When launching NetSurf I get: Couldn't initialize amisslmaster.library!
SnoopDOS says it's loaded.
Amissl build fails here
/d/amiga-gcc2/bin/m68k-amigaos-ld: ./build_os3/amisslmaster_libinit.o: in function
LibOpen': src/amisslmaster_libinit.c:864: undefined reference to
restore_a4' /d/amiga-gcc2/bin/m68k-amigaos-ld: ./build_os3/amisslmaster_libinit.o: in functionLibInit': src/amisslmaster_libinit.c:616: undefined reference to
restore_a4' /d/amiga-gcc2/bin/m68k-amigaos-ld: ./build_os3/amisslmaster_libinit.o: in functionLibExpunge': src/amisslmaster_libinit.c:798: undefined reference to
restore_a4' /d/amiga-gcc2/bin/m68k-amigaos-ld: ./build_os3/amisslmaster_libinit.o: in functionLibClose': src/amisslmaster_libinit.c:1106: undefined reference to
restore_a4'
you have to provide a __restore_a4()
function which sets a4 to the correct value.
any updates here?
Sorry bebbo, forgot about this thread.
I can't compile NetSurf with latest builds unfortunately but IIRC I could build AmiSSL.
what's the problem with netsurf?
Errors like these appeared:
In file included from D:/amiga-gcc2/m68k-amigaos/clib2/include/stdlib.h:43:0, from /e/opt/netsurf/share/include/libcss/types.h:18, from /e/opt/netsurf/share/include/libcss/libcss.h:19, from content/handlers/css/utils.h:22, from desktop/treeview.c:42: D:/amiga-gcc2/m68k-amigaos/sys-include/stdlib.h: In function 'reallocarray': D:/amiga-gcc2/m68k-amigaos/sys-include/stdlib.h:146:54: error: unknown type name '__result_use_check' __stdargs void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size((2,3)); ^~~~~~~~~~~~~~~~~~
Compiles with original clib2 headers.
closing - you better open tickets at amissl.
Out of curiosity I tried to compile https://github.com/jens-maus/amissl with your gcc.
Compilation/linking works with gcc 2.95 from https://github.com/adtools/amigaos-cross-toolchain
With your gcc it failes after a while with
Are there additional options necessary with your compiler?