undefined reference to "select"
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    Hi all,

    I'm trying to port a classic prog to MorphOS that uses curl. But on MorphOS I get the linker error:



    Code:

    /usr/local/lib/libcurl.a(select.o): In function `Curl_poll':
    select.o(.text+0x780): undefined reference to `select'


    I cannot find a lib that exports that function on MorphOS. Under OS 3.1 I linked against a libamiga.a that does not exists on MorphOS, maybe that's why it works on OS 3.1 and not on MorphOS. Anybody has an idea? Thx!
  • »22.06.13 - 12:54
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    Quote:

    ciVic wrote:
    Hi all,

    I'm trying to port a classic prog to MorphOS that uses curl. But on MorphOS I get the linker error:



    Code:

    /usr/local/lib/libcurl.a(select.o): In function `Curl_poll':
    select.o(.text+0x780): undefined reference to `select'


    I cannot find a lib that exports that function on MorphOS. Under OS 3.1 I linked against a libamiga.a that does not exists on MorphOS, maybe that's why it works on OS 3.1 and not on MorphOS. Anybody has an idea? Thx!


    If you don't get an answer, try the #morphos channel on IRC. It tends to be a bit quicker for coding support.
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »22.06.13 - 13:14
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    BSzili
    Posts: 482 from 2012/6/8
    From: Hungary
    You are using some screwed up (maybe ixemul?) version of curl, because that function should be defined to WaitSelect in bsdsocket.library.
    I see the jimmies have been rustled.
  • »22.06.13 - 13:59
    Profile Visit Website
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    I've tried 7.12.3 and 7.16.0 from Aminet for MorphOS. Where can I get a better version?
  • »22.06.13 - 15:36
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    BSzili
    Posts: 482 from 2012/6/8
    From: Hungary
    I haven't tried those. What are you trying to compile? I have a fairly recent version of cURL without SSL support.
    I see the jimmies have been rustled.
  • »22.06.13 - 18:29
    Profile Visit Website
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    I want to port twittAmiga. It did not need SSL in the past, but Twitter has updated the API, now we need SSL (so currently twittAmiga do not work). I am now able to compile cURL with SSL, but only with ixemul (at least that works with twittAmiga). The original makefiles for Amiga do not work anymore (or do not work on MorphOS). Maybe I will check that later.
  • »23.06.13 - 09:53
    Profile
  • MorphOS Developer
    cyfm
    Posts: 382 from 2003/4/11
    From: Germany
    You might try this if nothing else works ...

    #ifdef __MORPHOS__
    #include <proto/socket.h>
    static int __inline
    select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exeptfds,
    struct timeval *timeout)
    {
    return WaitSelect(nfds, readfds, writefds, exeptfds, timeout, NULL);
    }

    #endif
  • »23.06.13 - 11:22
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1329 from 2003/6/16
    Quote:

    ciVic wrote:
    I've tried 7.12.3 and 7.16.0 from Aminet for MorphOS. Where can I get a better version?


    I could also supply cURL 7.27.x or so. It's heavily tested, since it's used by Odyssey. ;)
  • »23.06.13 - 12:59
    Profile Visit Website
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    The macro sound like an easy solution. But a good lib sounds also good. Via mail?
  • »23.06.13 - 20:05
    Profile
  • Just looking around
    Posts: 1 from 2014/10/10
    Hi!I'm having a similar problem using curl 7.16 from Aminet.

    Can anyone share a working library with me?

    Thanks in advance
  • »10.10.14 - 22:45
    Profile Visit Website
  • Cocoon
    Cocoon
    ciVic
    Posts: 45 from 2013/6/2
    Quote:

    Fab schrieb:
    Quote:

    ciVic wrote:
    I've tried 7.12.3 and 7.16.0 from Aminet for MorphOS. Where can I get a better version?


    I could also supply cURL 7.27.x or so. It's heavily tested, since it's used by Odyssey. ;)


    An old thread but since some new issues I would love to get that version.
  • »20.06.15 - 17:03
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 388 from 2014/6/11
    From: Germany
    Hi.

    Quote:

    Fab wrote:
    Quote:

    ciVic wrote:
    I've tried 7.12.3 and 7.16.0 from Aminet for MorphOS. Where can I get a better version?


    I could also supply cURL 7.27.x or so. It's heavily tested, since it's used by Odyssey. ;)


    In which way is cURL used by Odyssey?
    The executable or a library of some kind?


    Manfred
  • »24.02.16 - 07:43
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 10540 from 2003/5/22
    From: Germany
    > In which way is cURL used by Odyssey? The executable or a library of some kind?

    libcurl compiled into the Odyssey executable.
  • »24.02.16 - 08:04
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 388 from 2014/6/11
    From: Germany
    Quote:

    Andreas_Wolf wrote:
    > In which way is cURL used by Odyssey? The executable or a library of some kind?

    libcurl compiled into the Odyssey executable.

    OK, is this libcurl compilation freely available?
    I've tried compiling a recent version of libcurl but failed so far.


    Manfred
  • »24.02.16 - 08:30
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 10540 from 2003/5/22
    From: Germany
    > I've tried compiling a recent version of libcurl but failed so far.

    There are diffs for versions 7.28.1 and 7.34.0: http://fabportnawak.free.fr/owb/src/
  • »24.02.16 - 09:18
    Profile