On 2014/10/27 13:58, Stuart Henderson wrote: > On 2014/10/27 12:31, David Coppa wrote: > > On Mon, Oct 27, 2014 at 11:10 AM, Stuart Henderson <st...@openbsd.org> > > wrote: > > > anyone have an idea about this? > > > > > > libtool: link: cc -o .libs/kinit -pthread -Wall -Wmissing-prototypes > > > -Wpointer-arith -Wbad-function-cast -Wmissing-declarations > > > -Wnested-externs -DINET6 -O2 -pipe kinit.o > > > /usr/obj/ports/heimdal-1.5.3/heimdal-1.5.3/lib/vers/.libs/libvers.a > > > -L.libs -lkafs -lkrb5 -lasn1 -lcom_err -lroken -lwind -lheimbase -lhx509 > > > -lcrypto -lheimsqlite -lheimntlm -Wl,-rpath,/usr/local/heimdal/lib > > > /usr/bin/ld: .libs/libkafs.so.21.0: invalid string offset 24565 >= 1506 > > > for section `.dynstr' > > > /usr/bin/ld: .libs/libkafs.so.21.0: invalid string offset 3755991007 >= > > > 1506 for section `.dynstr' > > > .libs/libkafs.so.21.0(.rel.plt+0xdfdfcbfb): multiple definition of `no > > > symbol' > > > .libs/libkafs.so.21.0(.gnu.version_r+0xffffed36): first defined here > > > .libs/libcom_err.so.21.0: warning: strcpy() is almost always misused, > > > please use strlcpy() > > > .libs/libcom_err.so.21.0: warning: strcat() is almost always misused, > > > please use strlcat() > > > collect2: ld returned 1 exit status > > > > > > full log attached. > > > > Can this be related to symbol versioning? > > > > http://marc.info/?l=openbsd-misc&m=125552372620228 > > > > Ciao, > > David > > Maybe... > > It built OK with a rebuild. > > And actually, diffing the logs, the "invalid string offset" happens > both times anyway, it isn't the trigger for the failure. > > The actual problem is: > > > > .libs/libkafs.so.21.0(.rel.plt+0xdfdfcbfb): multiple definition of `no > > > symbol' > > dfdf - feels like a use after free. >
...and I had the "invalid string offset" again, but no "multiple definition" or any other errors this time. /usr/bin/libtool --tag=CC --mode=link cc -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -DINET6 -O2 -pipe -L/usr/local/lib -o kinit kinit.o ../lib/kafs/libkafs.la ../lib/krb5/libkrb5.la ../lib/ntlm/libheimntlm.la -lcrypto ../lib/asn1/libasn1.la ../lib/vers/libvers.la ../lib/roken/libroken.la -pthread libtool: link: cc -o .libs/kinit -pthread -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -DINET6 -O2 -pipe kinit.o /usr/obj/ports/heimdal-1.5.3/heimdal-1.5.3/lib/vers/.libs/libvers.a -L.libs -lkafs -lkrb5 -lasn1 -lcom_err -lroken -lwind -lheimbase -lhx509 -lcrypto -lheimsqlite -lheimntlm -Wl,-rpath,/usr/local/heimdal/lib /usr/bin/ld: .libs/libkafs.so.21.0: invalid string offset 611617279 >= 1506 for section `.dynstr' .libs/libkafs.so.21.0: could not read symbols: Bad value collect2: ld returned 1 exit status Tarred up build directory available on request. I think the next thing to try is a round of builds done with this: CONFIGURE_ENV += rk_cv_version_script=no