29 December 2015, 15:29 | #1 |
Registered User
Join Date: Oct 2013
Location: Germany
Posts: 39
|
Crosscompiling with bsdsocket.library
Hi all,
I'm trying to compile curl 7.46 as I need some new features. I'm using the m68k-amigaos cross compiler on Mac OS. The libcurl.a is compiled but linking the curl executable itself fails: Code:
CCLD curl curl-tool_getpass.o(.text+0x18): undefined reference to `tcgetattr' curl-tool_getpass.o(.text+0xa0): undefined reference to `tcsetattr' curl-tool_getpass.o(.text+0xba): undefined reference to `tcsetattr' curl-tool_paramhlp.o(.text+0x22e): undefined reference to `strtod' curl-tool_sleep.o(.text+0x30): undefined reference to `WaitSelect' ../lib/.libs/libcurl.a(libcurl_la-amigaos.o)(.text+0xae): undefined reference to `SocketBaseTags' ../lib/.libs/libcurl.a(libcurl_la-select.o)(.text+0x3a): undefined reference to `WaitSelect' ../lib/.libs/libcurl.a(libcurl_la-select.o)(.text+0x202): undefined reference to `WaitSelect' ../lib/.libs/libcurl.a(libcurl_la-select.o)(.text+0x490): undefined reference to `WaitSelect' |
30 December 2015, 11:40 | #2 |
dev
|
Hi
tcgetattr and tcsetattr are (POSIX) termios functions. I have looked for an open source Amiga implementation of termios but never found one. You would need to implement those for AmigaDOS yourself. strtod are an standard C90/C99 function. There are several open source implementations available. WaitSelect is not in the original bsdsocket.library, but you can find it in AmiTCP or Roadshow. The same goes for SocketBaseTags. You need to link to one of those GCC Amiga specific libraries. Or use inline includes (look for something like "..netinclude/inline/socket.h"). strtod, WaitSelect and SocketBaseTags are easy to solve. tcgetattr and tcsetattr are a bit harder. Add extra link libraries to GCC with option -L Please tell if you get it to work Last edited by cla; 30 December 2015 at 11:51. |
30 December 2015, 17:49 | #3 |
Registered User
Join Date: Oct 2013
Location: Germany
Posts: 39
|
Thx, you're right, termios would be hard to reimplement and as I only need the lib I think porting or reimplementing it would be waste of time. Must be something new as older versions of curl were successfully ported.
|
31 December 2015, 03:06 | #4 |
dev
|
By coincidence I stumble across an implementation today. Its on github:
https://github.com/arczi84/NetSurf-6...migaos3/libnix Maybe it can be of use. |
01 January 2016, 09:43 | #5 |
Registered User
Join Date: Oct 2013
Location: Germany
Posts: 39
|
That looks promising. But, libnix, shouldn't it be within the libnix of my m68-amigaos-gcc?
|
01 January 2016, 10:55 | #6 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,200
|
It is an updated version of the library.
|
05 January 2016, 11:56 | #7 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 665
|
I took it from clib2 but it works.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
winuae bsdsocket.library | clauddio | support.WinUAE | 5 | 21 July 2015 21:47 |
e-uae bsdsocket.library with tcpip servers (telnetd)?? | GeoKM | support.OtherUAE | 6 | 09 August 2013 12:34 |
FS-UAE and Internet (bsdsocket.library) on Windows | elowan | support.FS-UAE | 11 | 26 January 2013 20:37 |
Can't connect with bsdsocket.library error (WinUAE 2.5.0) | arti | support.WinUAE | 12 | 13 December 2012 21:29 |
BSDSocket.library error with version 1.5+ | Icreadence | support.WinUAE | 7 | 28 August 2008 04:16 |
|
|