Subject: Re: collect2: ld returned 1 exit status
To: Brian Martinez <>
From: Roland Illig <>
List: pkgsrc-users
Date: 12/14/2006 22:51:44
Brian Martinez wrote:
> ----[begin paste]----
> root@irc:/usr/pkgsrc/lang/tcl# bmake
> => Required installed package digest>=20010302: digest-20060826 found
> ===> Checking for vulnerabilities in tcl-8.4.14
> => Checksum SHA1 OK for tcl8.4.14-src.tar.gz
> => Checksum RMD160 OK for tcl8.4.14-src.tar.gz
> ===> Building for tcl-8.4.14
> rm -f
> libtool  --mode=link cc -pipe -rpath /usr/pkg/lib -o

libtool does not know how to create *.so.* files, it only knows how to 
create *.la. Maybe you need to tweak the Makefile or something in that 

> .libs/regerror.o(.text+0xaa): In function `TclReError':
> : warning: strcpy() is almost always misused, please use strlcpy()

It's harmless in this case.

> .libs/regcomp.o(.text+0x3517): In function `stid':
> : warning: sprintf() is often misused, please use snprintf()

It's safe for platforms with 8-bit bytes.

> .libs/tclUnixPipe.o(.text+0x152): In function `TclpCreateTempFile':
> : warning: strcat() is almost always misused, please use strlcat()