Priest of the Order of the Butterfly
Posts: 634 from 2010/2/10
From: FRANCE
Hi all
I want to compile an example (simple) of libcurl : https://curl.haxx.se/libcurl/c/https.html
I have MOS 3.12/SDK3.14, no external libcurl or openssl.
I made my makefile :
Code:
CC = gcc
GCC = g++
CFLAGS = -O2 -noixemul -I/usr/local/include -Wall
LDFLAGS = -lcurl -noixemul -L/gg/ssl/lib -lssl -lcrypto -lz -lpthread
DEFINES =
OUTPUT = simple
SOURCES = simple.o
OBJS = ${SOURCES:*.c=.o}
${OUTPUT}:${OBJS}
${GCC} -o ${OUTPUT} ${SOURCES} ${LDFLAGS} ${DEFINES}
clean:
rm *.o *.o ${OUTPUT}
and when i make this.. i have a lot of error :
Code:
/System/Development/gg/bin/../lib/gcc-lib/ppc-morphos/5.5.0/../../../../ppc-morphos/bin/ld: /System/Development/gg/bin/../../gg/usr/lib/libcurl.a(libcurl_la-easy.o): in function `sigpipe_ignore.isra.1.part.2':
easy.c:(.text+0x10c): undefined reference to `sigaction'
/System/Development/gg/bin/../lib/gcc-lib/ppc-morphos/5.5.0/../../../../ppc-morphos/bin/ld: easy.c:(.text+0x134): undefined reference to `sigaction'
/System/Development/gg/bin/../lib/gcc-lib/ppc-morphos/5.5.0/../../../../ppc-morphos/bin/ld: /System/Development/gg/bin/../../gg/usr/lib/libcurl.a(libcurl_la-easy.o): in function `curl_easy_perform':
easy.c:(.text+0x4c4): undefined reference to `sigaction'
/System/Development/gg/bin/../lib/gcc-lib/ppc-morphos/5.5.0/../../../../ppc-morphos/bin/ld: /System/Development/gg/bin/../../gg/usr/lib/libcurl.a(libcurl_la-easy.o): in function `curl_easy_cleanup':
easy.c:(.text+0x5cc): undefined reference to `sigaction'
/System/Development/gg/bin/../lib/gcc-lib/ppc-morphos/5.5.0/../../../../ppc-morphos/bin/ld: /System/Development/gg/bin/../../gg/usr/lib/libcurl.a(libcurl_la-multi.o): in function `sigpipe_ignore.isra.5.part.6':
etc......
Finally i want to active "cloud" and "libcurl" on ScummVM.
Any ideas ? ixemul ? version of gcc ?
Thanks.
[
[ Edité par beworld 02.11.2019 - 17:38 ]PowerMac G5 Quad 2.5, IMac G5 2.1, PowerBook G4 1.5, MacMini 1.5
My MOS ports