[Ecls-list] Build problem on OpenBSD

Stian Sletner stian at sletner.com
Fri Feb 10 10:53:49 UTC 2012


Hello.

I'm trying to build ECL on an OpenBSD/hppa system, and I'm getting this
peculiar error:

        gcc -Wl,--rpath,/usr/local/lib -L/usr/local/lib -o ecl_min
cinit.o c/all_symbols.o -L./ libeclmin.a  -lgmp -lgc -lffi -lpthread -lm
-lm ;\
fi
/usr/local/lib/libgmp.so.9.0: warning: vsprintf() is often misused,
please use vsnprintf()
libeclmin.a(unixfsys.o)(.text+0x628): In function `current_dir':
/home/stian/ecl-12.2.1/src/c/unixfsys.d:166: warning: strcpy() is almost
always misused, please use strlcpy()
/usr/local/lib/libgc.so.3.0: warning: sprintf() is often misused, please
use snprintf()
libeclmin.a(number.o)(.text+0x220): In function
`long_double_to_integer':
/home/stian/ecl-12.2.1/src/c/number.d:862: undefined reference to
`floorl'
libeclmin.a(num_co.o)(.text+0x2a0): In function `round_long_double':
/home/stian/ecl-12.2.1/src/c/num_co.d:641: undefined reference to
`floorl'
libeclmin.a(num_co.o)(.text+0x1478): In function `ecl_ceiling2':
/home/stian/ecl-12.2.1/src/c/num_co.d:536: undefined reference to
`ceill'
libeclmin.a(num_co.o)(.text+0x181c):/home/stian/ecl-12.2.1/src/c/num_co.d:494:
undefined reference to `ceill'
libeclmin.a(num_co.o)(.text+0x1a84): In function `ecl_ceiling1':
/home/stian/ecl-12.2.1/src/c/num_co.d:375: undefined reference to
`ceill'
libeclmin.a(num_co.o)(.text+0x1d40): In function `ecl_floor2':
/home/stian/ecl-12.2.1/src/c/num_co.d:324: undefined reference to
`floorl'
libeclmin.a(num_co.o)(.text+0x20b4):/home/stian/ecl-12.2.1/src/c/num_co.d:279:
undefined reference to `floorl'
libeclmin.a(num_co.o)(.text+0x23a4): In function `ecl_truncate1':
/home/stian/ecl-12.2.1/src/c/num_co.d:588: undefined reference to
`ceill'
libeclmin.a(num_co.o)(.text+0x23b8):/home/stian/ecl-12.2.1/src/c/num_co.d:588:
undefined reference to `floorl'
libeclmin.a(num_co.o)(.text+0x26a0): In function `ecl_floor1':
/home/stian/ecl-12.2.1/src/c/num_co.d:161: undefined reference to
`floorl'
collect2: ld returned 1 exit status
gmake[1]: *** [ecl_min] Error 1

Any idea what could be the problem?  I've made test programs calling
ceill() and floorl() with no problem (they don't even require -lm), so
this has me stumped.

Thanks.

-- 
Stian Sletner




More information about the ecl-devel mailing list