I'm seeing two problems.
1. src/lib/image.h is missing an #include <time.h> (as it uses time_t)
2. the PNG loader seems to assume setjmp is glibc-like
While a patch for the 1st problem is fairly simple (upstream bug report available here: https://phab.enlightenment.org/T2793), the second one needs a solution as well, thus the report here.
Why do you think that 2. is true? (How to reproduce the problem?)
$ mkdir imlib2 && cd imlib2
$ wget http://downloads.sourceforge.net/project/enlightenment/imlib2-src/1.4.4/imlib2-1.4.4.tar.gz
$ tar xf imlib2-1.4.4.tar.gz
$ mkdir work && cd work
$ vim ../imlib2-1.4.4/src/lib/image.h # add an #include <time.h>
$ ../imlib2-1.4.4/configure --without-x
I didn't look into this very deeply at all, but I do remember similar problems when I tried to port gnu pth (with setjmp)
Actually, after taking a second look, it appears that there's some problem with how png_ptr is defined... Might look in deeper sometime this weekend.
Thanks for the test case! (I had no problem building current git and
thought that you were experiencing run time failures or build failures
with something dependent on imlib2.)
The second problem has nothing to do with musl and is fixed with the
commits 5983044ae479efc47f2b6130c865b9252f9e9174 and
d594895dbae9c6de4686e8e3e422bcba0dc4381f (in imlib2-1.4.5).
For the first problem, please prepare a patch and send it upstream
and here. (I think it's better to put the include into common.h.)
attach the patches/reports and i can push them upstream
Any particular desired format for the patch? (e.g diff between old/new common.h ; or git-format-patch; etc)
git format-patch is fine
Created attachment 415398 [details, diff]
add time.h to common.h for time_t on musl
Patch against HEAD of https://git.enlightenment.org/legacy/imlib2.git/
generated by `git format-patch origin`
Disregard PNG issue: already fixed upstream
Link to upstream bug: https://phab.enlightenment.org/T2793
Bug is now resolved upstream.
Hopefully a new release will come soon enough (and we can either stabilize, or notify users on the Project:Musl page).
(In reply to Chloe Kudryavtsev from comment #10)
please list the git sha1's that are needed to make imlib2-1.4.7 work
we don't really care about backporting to older versions
My git install sees it as 521573b (currently: HEAD^^).
The relevant commit can be found here: https://git.enlightenment.org/legacy/imlib2.git/commit/?id=521573be219f27c7bfebb57d5b0b994fdb316721
Quickly checked and compiled: appears to be fine.