adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
531 stars 128 forks source link

Error in core.d when building on freebsd #426

Closed lenoil98 closed 5 months ago

lenoil98 commented 5 months ago

The below error occurs:

arsd-official:core 11.4.2: building configuration "library"... .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4212,10): Error: function core.sys.freebsd.sys.event.EV_SET(kevent_t* kevp, ulong, short, ushort, uint, long, void*, ulong[4]) is not callable using argument types (kevent_t*, int, int, int, int, int, void*) .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4212,10): too few arguments, expected 8, got 7 .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4916,10): Error: function core.sys.freebsd.sys.event.EV_SET(kevent_t* kevp, ulong, short, ushort, uint, long, void*, ulong[4]) is not callable using argument types (kevent_t*, int, int, int, int, int, void*) .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4916,10): too few arguments, expected 8, got 7 .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4926,10): Error: function core.sys.freebsd.sys.event.EV_SET(kevent_t* kevp, ulong, short, ushort, uint, long, void*, ulong[4]) is not callable using argument types (kevent_t*, int, int, int, int, int, void*) .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4926,10): too few arguments, expected 8, got 7 .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4936,10): Error: function core.sys.freebsd.sys.event.EV_SET(kevent_t* kevp, ulong, short, ushort, uint, long, void*, ulong[4]) is not callable using argument types (kevent_t*, int, int, int, int, int, void*) .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4936,10): too few arguments, expected 8, got 7 .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4971,10): Error: function core.sys.freebsd.sys.event.EV_SET(kevent_t* kevp, ulong, short, ushort, uint, long, void*, ulong[4]) is not callable using argument types (kevent_t*, int, int, int, int, int, typeof(null)) .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4971,10): too few arguments, expected 8, got 7 .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4973,10): Error: function core.sys.freebsd.sys.event.EV_SET(kevent_t* kevp, ulong, short, ushort, uint, long, void*, ulong[4]) is not callable using argument types (kevent_t*, int, int, int, int, int, typeof(null)) .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4973,10): too few arguments, expected 8, got 7 .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4977,10): Error: function core.sys.freebsd.sys.event.EV_SET(kevent_t* kevp, ulong, short, ushort, uint, long, void*, ulong[4]) is not callable using argument types (kevent_t*, int, int, int, int, int, void*) .dub/packages/arsd-official-11.4.2/arsd-official/core.d(4977,10): too few arguments, expected 8, got 7 /usr/local/bin/ldc2 failed with exit code 1.

adamdruppe commented 5 months ago

what compiler version do you have? i tested on freebsd like a year ago and it worked then but maybe things changed

lenoil98 commented 5 months ago

I'm using LDC 1.32.0

adamdruppe commented 5 months ago

ok i see it there too. there seems to have been a new argument added since i last tried it, it says it is new to freebsd 12. i could swear i tested 13 but maybe i built against the old thing (i was using dmd for those tests, not ldc, so probably older version packaged anyway)

regardless it looks optional, i can zero it out then try it again

adamdruppe commented 5 months ago

give master a try i think that commit will fix it

lenoil98 commented 5 months ago

Yep, that fixed the initial errors.

However, I found minor errors in pcx.d and targa.d. In pcx.d line 406 and targa.d line 558, replace "isLittleEndianness" with "isBigEndianness".

lenoil98 commented 5 months ago

Issue solved.