Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
35 crawler(s) on-line.
 42 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 ggw:  19 mins ago
 clint:  43 mins ago
 kolla:  54 mins ago
 MichaelMerkel:  1 hr 31 mins ago
 zipper:  2 hrs 9 mins ago
 NutsAboutAmiga:  2 hrs 39 mins ago
 Gunnar:  2 hrs 46 mins ago
 t0lkien:  2 hrs 48 mins ago
 retrofaza:  3 hrs 19 mins ago
 Rob:  3 hrs 26 mins ago

/  Forum Index
   /  Amiga Development
      /  Small error in SDK?
Register To Post

PosterThread
Varthall 
Small error in SDK?
Posted on 29-Apr-2009 9:43:59
#1 ]
Super Member
Joined: 17-Feb-2004
Posts: 1559
From: Up Rough

I have just noticed this in the latest SDK:

$ grep -r sa_family_t *
Include/netinclude/netinet/in.h: sa_family_t sin_family;
Include/netinclude/sys/socket.h:typedef unsigned char sa_family_t;
Include/netinclude/sys/socket.h: sa_family_t sa_family; /* address family */
newlib/include/netinet/in.h: sa_family_t sin_family;
newlib/include/sys/socket.h:typedef unsigned char sa_family_t;
newlib/include/sys/socket.h: sa_family_t sa_family; /* address family */

Netinet/ and sys/ are present both in the newlib and generic includes trees. Shouldn't they be defined in one place only?

Varthall

_________________
AmigaOne XE - AmigaOS 4.1 - Freescale 7457 1GHz - 1GB ram

 Status: Offline
Profile     Report this post  
Slayer 
Re: Small error in SDK?
Posted on 29-Apr-2009 11:12:35
#2 ]
Regular Member
Joined: 4-Jan-2005
Posts: 416
From: New Zealand

@Varthall

I get the same

I hope there is method to the madness?

Perhaps some work around clouded with ifdef or else blah blah

since it doesn't show up in clib2 as well I can only guess it needs to be removed from newlib if anything? unless it is newlib specific...

I'm tired and I just watched a movie and I need sleep and I can't program, but I showed some interest

_________________
~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x

 Status: Offline
Profile     Report this post  
Hans 
Re: Small error in SDK?
Posted on 29-Apr-2009 11:20:36
#3 ]
Elite Member
Joined: 27-Dec-2003
Posts: 5067
From: New Zealand

@Varthall

Is this in a fresh install (i.e., no update over a previous version)?

Hans

_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
https://keasigmadelta.com/ - More of my work.

 Status: Offline
Profile     Report this post  
xeron 
Re: Small error in SDK?
Posted on 29-Apr-2009 12:05:31
#4 ]
Elite Member
Joined: 22-Jun-2003
Posts: 2440
From: Weston-Super-Mare, Somerset, England, UK, Europe, Earth, The Milky Way, The Universe

@Varthall

I believe one is for roadshow's socket interface, and one is for newlibs. Or something like that.

_________________
Playstation Network ID: xeron6

 Status: Offline
Profile     Report this post  
Varthall 
Re: Small error in SDK?
Posted on 29-Apr-2009 12:40:31
#5 ]
Super Member
Joined: 17-Feb-2004
Posts: 1559
From: Up Rough

@Hans

Yes, this is over a freshly installed SDK, with just a couple of not related libraries installed in addition.

@all

There seems to be a little mess regarding sys/socket.h when compiling for clib2. I need to use clib2 for one of my ports since newlib lacks getrlimit(). First of all, there are sys/socket.h under Include/netinclude/, newlib/include and clib2/include/.

I need sa_family_t which is missing under clib2/include/, so I'm now trying to use the one under Include/netinclude/ by including /SDK/Include/netinclude/sys/socket.h instead of sys/socket.h, but now I'm stuck at missing '::recv' and '::send', I'll see if I can proceed from here.

I still wonder why there are two sets of socket.h, and if the Roadshow's one could be used instead of the clib2/newlib specific ones.

Varthall

Last edited by Varthall on 29-Apr-2009 at 01:47 PM.
Last edited by Varthall on 29-Apr-2009 at 12:41 PM.

_________________
AmigaOne XE - AmigaOS 4.1 - Freescale 7457 1GHz - 1GB ram

 Status: Offline
Profile     Report this post  
Varthall 
Re: Small error in SDK?
Posted on 29-Apr-2009 15:22:29
#6 ]
Super Member
Joined: 17-Feb-2004
Posts: 1559
From: Up Rough

Not a problem anymore since I need addrinfo which isn't implemented in the SDK. I was trying to port libtorrent, which is required by the torrent client rtorrent.

Varthall

_________________
AmigaOne XE - AmigaOS 4.1 - Freescale 7457 1GHz - 1GB ram

 Status: Offline
Profile     Report this post  
turbo4.1 
Re: Small error in SDK?
Posted on 12-Feb-2010 18:55:08
#7 ]
Member
Joined: 23-Jan-2010
Posts: 96
From: north of germany

i think in the sdk 53.15 is a bug in the grep command.
grep does not work with a wildcard in the filename, for example
grep AMIGAOS #?.c
under sdk 53.13 this commands works (so i copy the older grep in local/c).

_________________
Sam460ex, Sam667Flex, CDTV, A600 und CD32
Amiga User since 1987

 Status: Offline
Profile     Report this post  
ssolie 
Re: Small error in SDK?
Posted on 14-Feb-2010 2:50:24
#8 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@Varthall
It is not an error and is setup that way on purpose. When you use the sockets via a C library then you must use the headers in that C library. When you bypass the C library and go direct to bsdsocket.library you use the netinclude headers.

_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle