compile example of libcurl
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 276 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 2.7ghz MOS 3.10
    PowerBook 1.5Ghz MOS 3.10
    My MOS ports
  • »02.11.19 - 16:34
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1873 from 2003/3/5
    From: Poland
    That looks like trying to link ixemul libraries to a non-ixemul binary.
  • »02.11.19 - 16:43
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    beworld
    Posts: 276 from 2010/2/10
    From: FRANCE
    ok thanks, where i find libcurl/openssl etc.. for non-ixemul ?
    PowerMac 2.7ghz MOS 3.10
    PowerBook 1.5Ghz MOS 3.10
    My MOS ports
  • »02.11.19 - 17:11
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    BSzili
    Posts: 493 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 :\
    I see the jimmies have been rustled.
  • »02.11.19 - 20:46
    Profile Visit Website