[Solved?] Re: pkg 1.9.4

Herbert J. Skuhra herbert at mailbox.org
Mon Dec 12 11:05:33 UTC 2016


Lewis Butler skrev:
> 
> On 09 Dec 2016, at 17:43, Lewis Butler <gkreme at gmail.com> wrote:
>> Got this when trying to update to pkg-1.9.4
>> 
>> /bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..    -I../compat -DWITH_SSL -Wno-pointer-sign -shared -O2 -pipe  -Wno-error -fstack-protector -fno-strict-aliasing -Wall -Wno-unused-function -D_BSD_SOURCE -DINET6=1 -MT libfetch/libfetch_la-common.lo -MD -MP -MF libfetch/.deps/libfetch_la-common.Tpo -c -o libfetch/libfetch_la-common.lo `test -f 'libfetch/common.c' || echo './'`libfetch/common.c
>> libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../compat -DWITH_SSL -Wno-pointer-sign -O2 -pipe -Wno-error -fstack-protector -fno-strict-aliasing -Wall -Wno-unused-function -D_BSD_SOURCE -DINET6=1 -MT libfetch/libfetch_la-common.lo -MD -MP -MF libfetch/.deps/libfetch_la-common.Tpo -c libfetch/common.c  -fPIC -DPIC -o libfetch/.libs/libfetch_la-common.o
>> libfetch/common.c:52:10: fatal error: 'openssl/x509v3.h' file not found
>> #include <openssl/x509v3.h>
> 
> I created the directory /usr/include/openssl/
> 
> cd /usr/include/openssl
> ln -s /usr/local/include/openssl/* .

You'd better undo this and run 'make buildworld' and 'make
installworld' to cleanup the mess.

> then I was able to make pkg. Not sure why, but
> /usr/local/library/openssl seemed to be where openssl was installed
> but the packages are looking for /usr/library/openssl.
> 
> I'm sure this is not the preferred way to do this.
> 
> There is also an openssl-1.0.1p folder in /usr/include/ with rather
> old files in it. I plan on moving it aside and seeing what happens.

You can try to rename the directory back to openssl and see if 'freebsd-update
fetch install' will update the files. If not remove it and do the above.

--
Herbert


More information about the freebsd-ports mailing list