Opened 15 years ago

Last modified 15 years ago

#950 assigned Defect

Boinc doesn't build onopensolaris (with patch)

Reported by: mich181189 Owned by: Eric Korpela
Priority: Undetermined Milestone: Undetermined
Component: Client - Build Version:
Keywords: Cc:

Description

Boinc doesn't build on opensolaris because it fails on res_init not being declared. The key is to link against resolv.so. A patch is attached that adds this to the solaris line in autoconf.

(patched from 6.6.39 but should probably work on pretty much any release)

Attachments (3)

boinc_solaris_build.diff (414 bytes) - added by mich181189 15 years ago.
Patch to make boinc build on opensolaris
config.log (253.0 KB) - added by mich181189 15 years ago.
config.log from unmodified 6.6.36 on opensolaris 2009.06
config.h (14.3 KB) - added by mich181189 15 years ago.
config.h from unmodified 6.6.36 on opensolaris 2009.06

Download all attachments as: .zip

Change History (14)

Changed 15 years ago by mich181189

Attachment: boinc_solaris_build.diff added

Patch to make boinc build on opensolaris

comment:1 Changed 15 years ago by mich181189

Type: EnhancementDefect
Version: 6.6.36

comment:2 Changed 15 years ago by romw

Owner: changed from romw to Eric Korpela

comment:3 Changed 15 years ago by Eric Korpela

Status: newassigned

I'll check to make sure the patch works on (non-open) Solaris 10 before committing.

comment:4 Changed 15 years ago by mich181189

jut noticed it doesn't quite work on opensolaris - looks like it needs to be added somewhere else. Exactly where I'm not sure as I'm not very familiar with the build system, but it needs to end up in client/Makefile on the BOINC_EXTRA_LIBS line. (I forgot to check it on a clean build initially)

comment:5 Changed 15 years ago by mich181189

resolv is mentioned in other parts of the configure.ac file so maybe something else is going on, either way, the result is that for whatever reason, it's not getting linked in.

comment:6 Changed 15 years ago by mich181189

further to my last comment, it's mentioned on line 409 where it is added to STATIC_LIB_LIST so this patch is somewhat irrelevant.

comment:7 Changed 15 years ago by mich181189

The more I use this, the more I realise it's going to take a lot more work to get this working out of the box. (for example, the client reports itself as i386-pc-solaris not the i686-pc-solaris the projects are configured for!) so it's probably a bit simplistic to expect this patch to do much.

comment:8 Changed 15 years ago by Eric Korpela

Opensolaris must report itself much differently to config.guess to than earlier sun colaris revisions did. When I run on Solaris 10 I get a BOINC_PLATFORM of i686-pc-solaris. Are you sure you are looking at BOINC_PLATFORM and not host, build or target?

comment:9 Changed 15 years ago by Eric Korpela

If so, please upload config.log and config.h.

comment:10 Changed 15 years ago by mich181189

Yes, it's definitely thinking that's the platform, I actually saw it report it to my boinc server as i386-pc-solaris - I think I've discovered a bit in config.guess that when tweaked, reads it correctly (for some reason, there is no mention if i686-pc-solaris in there, only i386-pc-solaris) I've also now tracked down that for some reason, libresolv, although it was in the list of static libraries, wasn't actually checked for existance or added to the list to link in. What supprises me more is that this was presumably included in other builds (or it was not needed) either way, I'll attach a patch once I'm happy it runs stable enough so you can see what you think. I've put the config.log and config.h on as well (from unpatched version) .

Changed 15 years ago by mich181189

Attachment: config.log added

config.log from unmodified 6.6.36 on opensolaris 2009.06

Changed 15 years ago by mich181189

Attachment: config.h added

config.h from unmodified 6.6.36 on opensolaris 2009.06

comment:11 Changed 15 years ago by Nicolas

Is this still being worked on?

Note: See TracTickets for help on using tickets.