Re: Compiling execline shared fails without --with-lib configure opt

2019-12-02 Thread J. Lewis Muir
On 12/03, Laurent Bercot wrote:
> > Since I'm not using static libraries, I would not expect to need the
> > "--with-lib" configure option.
> 
>  The --disable-static flag only tells the build system not to
> build the static execline library. By default, executables are still
> built against the static version of skalibs.
> 
>  If you want to link executables against the dynamic version of skalibs,
> you need to add the --disable-allstatic option to configure.
> 
>  IOW: to make a dynamic install, you need both --disable-static
> and --disable-allstatic.

OK, got it; that worked.  It compiled successfully, and so did s6, both
without any compile warnings!  Nice!

Lewis


Re: Compiling execline shared fails without --with-lib configure opt

2019-12-02 Thread Laurent Bercot

Since I'm not using static libraries, I would not expect to need the
"--with-lib" configure option.


 The --disable-static flag only tells the build system not to
build the static execline library. By default, executables are still
built against the static version of skalibs.

 If you want to link executables against the dynamic version of skalibs,
you need to add the --disable-allstatic option to configure.

 IOW: to make a dynamic install, you need both --disable-static
and --disable-allstatic.

--
 Laurent



Compiling execline shared fails without --with-lib configure opt

2019-12-02 Thread J. Lewis Muir
Hello!

On x86_64 RHEL 7.7 with GCC 4.8.5, configuring and compiling execline
2.5.3.0 against skalibs 2.9.1.0 (which has been compiled with the
"--disable-static" configure option) with


$ ./configure --prefix=/opt/local/encap/execline-2.5.3.0 --enable-shared 
--disable-static --with-sysdeps=/opt/local/lib/skalibs/sysdeps 
--with-include=/opt/local/include --with-dynlib=/opt/local/lib
$ make


fails as follows:


exec gcc -o background -pipe -Wall -std=c99 -fno-exceptions -fno-unwind-tables 
-fno-asynchronous-unwind-tables -Wa,--noexecstack -ffunction-sections 
-fdata-sections -O2 -fomit-frame-pointer -fno-stack-protector  
-Wl,--sort-section=alignment -Wl,--sort-common -Wl,--hash-style=both  
-Wl,--gc-sections src/execline/background.o libexecline.a.xyzzy -lskarnet
/usr/bin/ld: cannot find -lskarnet
collect2: error: ld returned 1 exit status
make: *** [background] Error 1


If I add the "--with-lib=/opt/local/lib" configure option, it succeeds.

This is unexpected because the "./configure --help" output says:


Dependencies:
  --with-sysdeps=DIRuse sysdeps in DIR [PREFIX/lib/skalibs/sysdeps]
  --with-include=DIRadd DIR to the list of searched directories for 
headers
  --with-lib=DIRadd DIR to the list of searched directories for 
static libraries
  --with-dynlib=DIR add DIR to the list of searched directories for 
shared libraries


Since I'm not using static libraries, I would not expect to need the
"--with-lib" configure option.

Thank you,

Lewis