compile example of libcurl
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 588 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 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »02.11.19 - 16:34
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 2968 from 2003/3/5
    From: Canada
    That looks like trying to link ixemul libraries to a non-ixemul binary.
  • »02.11.19 - 16:43
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 588 from 2010/2/10
    From: FRANCE
    ok thanks, where i find libcurl/openssl etc.. for non-ixemul ?
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »02.11.19 - 17:11
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    BSzili
    Posts: 559 from 2012/6/8
    From: Hungary
    I built them myself (at least CURL) when I needed them, as I couldn't find them built for libnix either :\
    This is just like television, only you can see much further.
  • »02.11.19 - 20:46
    Profile Visit Website