Cyril Brulebois wrote:
> your package no longer builds on kfreebsd-*:
> | cc -Wl,--as-needed  -o midish builtin.o cons.o conv.o data.o dbg.o ev.o 
> exec.o filt.o frame.o lex.o main.o mdep.o mdep_raw.o mdep_alsa.o mdep_sndio.o 
> metro.o mididev.o mixout.o mux.o name.o node.o norm.o parse.o pool.o 
> saveload.o smf.o song.o state.o str.o sysex.o textio.o timo.o track.o user.o  
>  
> | mdep.o: In function `mux_sleep':
> | /build/buildd-midish_1.0.4-1-kfreebsd-amd64-bLCD9X/midish-1.0.4/mdep.c:270: 
> undefined reference to `clock_gettime'
> | mdep.o: In function `mux_mdep_wait':
> | /build/buildd-midish_1.0.4-1-kfreebsd-amd64-bLCD9X/midish-1.0.4/mdep.c:207: 
> undefined reference to `clock_gettime'
> | mdep.o: In function `mux_mdep_open':
> | /build/buildd-midish_1.0.4-1-kfreebsd-amd64-bLCD9X/midish-1.0.4/mdep.c:102: 
> undefined reference to `clock_gettime'
> | collect2: ld returned 1 exit status

Looking at this FTBFS, I was able to reproduce this behavior on my i386
box, after installing binutils-gold.

Alexandre Ratchov wrote:
> This is because clock_gettime() moved from libc to librt. It's fixed
> in the new upstream release, but unfortunately I've no kfreebsd system
> to test it. An update for the debian package is available here:

Well, I not sure if a new upstream release is suitable as we are in deep
freeze.  But after adding -lrt, the package builds again on my box
indeed, and presumably it will build fine in kfreebsd too. 


--- midish-1.0.4.orig/Makefile.in
+++ midish-1.0.4/Makefile.in
@@ -62,7 +62,7 @@ mixout.o mux.o name.o node.o norm.o pars
 state.o str.o sysex.o textio.o timo.o track.o user.o 
 
 midish:                ${MIDISH_OBJS}
-               ${CC} ${LDFLAGS} ${LIB} -o midish ${MIDISH_OBJS} ${LDADD} 
+               ${CC} ${LDFLAGS} ${LIB} -o midish ${MIDISH_OBJS} ${LDADD} -lrt
 
 rmidish:       rmidish.c
                ${CC} ${CFLAGS} ${READLINE_INCLUDE} \


Best regards
 Ruben

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to