X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c326cd87479b6b4bb083364f934ca89b82873f7d..c4ccb9efe6484be48997a62e36e4045ccfa8a615:/doc/index/discussion.mdwn diff --git a/doc/index/discussion.mdwn b/doc/index/discussion.mdwn index 70abce1b1..1e4d2a12b 100644 --- a/doc/index/discussion.mdwn +++ b/doc/index/discussion.mdwn @@ -176,4 +176,34 @@ aren't allowed in WikiLinks now? My best regards, ---Pawel \ No newline at end of file +--[[Paweł|ptecza]] + +---- + +# Build in OpenSolaris? + +I've learned I'm not yet clever enough to get IkiWiki to build in OpenSolaris (as running on a [Joyent Accelerator][ja]). Anyone figured this out already? + +I think problem lies mostly, if not entirely, in getting ikiwiki.cgi.c to compile in an OpenSolaris context (this is ikiwiki-2.2): + +> $ ikiwiki --setup ~/etc/ikiwiki/ikiwiki-edit.setup +> [...] +> Error: failed to compile /home/username/domains/domain.tld/cgi-bin/ikiwiki.cgi.c at /opt/local/lib/perl5/site_perl/IkiWiki.pm line 104. +BEGIN failed--compilation aborted at (eval 3) line 145. + +More specifically, + +> $ /usr/sfw/bin/gcc ikiwiki.cgi.c +> Undefined first referenced +> symbol in file +> asprintf /var/tmp//cczPaG7R.o +> ld: fatal: Symbol referencing errors. No output written to a.out +> collect2: ld returned 1 exit status + +[ja]: + +Thanks, Joey et al., for a really cool tool. + +--Mike + +> Looks like the ikiwiki wrapper uses asprintf. glibc has that, and I think some other libc implementations have that, but apparently the Solaris libc does not. The same problem will come up on other platforms that don't use glibc. The ikiwiki wrapper needs to either avoid asprintf or use a portable asprintf implementation from somewhere like gnulib. --[[JoshTriplett]] \ No newline at end of file