Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Carob on a Mac: msg#00004

db.carob.general

Subject: Re: Carob on a Mac

Marc Herbert wrote:
Hi,

Ian Holsman <lists-A7rDN4aHdhjR7s880joybQ@xxxxxxxxxxxxxxxx> writes:

I am trying to get carob running on my mac,

Thanks a lot for your time and expertise, much appreciated.


and have had the following issues:

- gnu's c++ locale only works when you use glibc, (which OS/X doesn't,
but default it uses UTF8)

The latter point is good news, cause we try to avoid reinventing the
wheel and having our own UTF8 code. So I'd like to commit a simple
#ifdef __APPLE__ && __MACH__ -based solution for this issue,
but I need to know this: when you say "default", do you mean:

std::locale loc("C"); (= locale::classic())

or:

std::locale loc("");


I would choose the latter, but your patch uses the former, which
should be OK _only_ with pure-ASCII data according to the books. But
maybe that's where MacOSX differs? Does it have some LANG/LC_ env
system too? Any reference appreciated.


I am defiantly not a locale expert.. I was just trying to get it so it can run first. ;-)
yes.. it uses LANG/LC_ stuff like regular BSD box. but from what I remember it uses UTF8 by default. you should be able to reproduce my issue on a regular FreeBSD box I'm guessing...



- MSG_NOSIGNAL doesn't exist on OS/X. so I am replacing the signal
handler instead.

It looks like this flag is not portable indeed, so we are currently
looking for alternative solutions. If anyone has a clue...

Giles mentioned setting SO_NOSIGPIPE via setsockopt which might work universally.


here is the diff so far...
it doesn't pass all the tests, but the 'read_example' runs.

Could you please report about the tests that fail? (besides the one
below) Thanks a lot in advance.

for carob that is the only one.
for libmysequoia I see
$ ./runTests
...ERROR: (Connection::initConnection) Could not authentify to Helios.local:25322. Error while sending database name ((JavaSocket::WriteInt32): could not write Int32 to socket)
F.ERROR: (Connection::initConnection) Could not authentify to Helios.local:25322. Error while sending database name ((JavaSocket::WriteInt32): could not write Int32 to socket)
ERROR: (Connection::initConnection) Could not authentify to Helios.local:25322. Error while sending database name ((JavaSocket::WriteInt32): could not write Int32 to socket)
..ERROR: (Connection::initConnection) Could not authentify to Helios.local:25322. Error while sending database name ((JavaSocket::WriteInt32): could not write Int32 to socket)
F.ERROR: (Connection::initConnection) Could not authentify to Helios.local:25322. Error while sending database name ((JavaSocket::WriteInt32): could not write Int32 to socket)
F.ERROR: (Connection::initConnection) Could not authentify to Helios.local:25322. Error while sending database name ((JavaSocket::WriteInt32): could not write Int32 to socket)
F.ERROR: (Connection::initConnection) Could not authentify to Helios.local:25322. Error while sending database name ((JavaSocket::WriteInt32): could not write Int32 to socket)
F.F.F.F.F.F.ERROR: (Connection::initConnection) Could not authentify to Helios.local:25322. Error while sending database name ((JavaSocket::WriteInt32): could not write Int32 to socket)
F.F.F.


BTW.. I upgraded to java 1.5.x on my box last night and It seems like nothing is working as well anymore (and I am getting that error with the read_example program too)


the output of carobTestLauncher is
1) test: encode_decode (E)
uncaught exception of unknown type

(and I disabled the locale test, as it won't work without glibc's locale)

Agreed.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo