On 02/21/2012 12:24 PM, David C. Rankin wrote:
All,
I am having trouble building the new shadow (4.1.5) from ABS so that
libshadow.so.0 is created and installed. I have tried modifying
lib/Makefile.am like was done in 4.1.4:
#Ugh, force this to build shared libraries, for god's sake
sed -i "s/noinst_LTLIBRARIES/lib_LTLIBRARIES/g" lib/Makefile.am
But that produces no pkg/lib at all in the build directory.
I have also tried setting the --enable-share configure option, but
the build fails with that option set:
libtool: link: gcc -march=i686 -mtune=generic -O2 -pipe
-fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro
-Wl,--hash-style=gnu -o login login.o login_nopam.o
../libmisc/libmisc.a ../lib/.libs/libshadow.a -lcrypt -lpam -lpam_misc
login.o: In function `get_failent_user':
login.c:(.text+0x1a): undefined reference to `getdef_bool'
login.o: In function `main':
login.c:(.text.startup+0x4ec): undefined reference to `getdef_unum'
login.c:(.text.startup+0x517): undefined reference to `getdef_unum'
login.c:(.text.startup+0x52f): undefined reference to `getdef_unum'
<snip>
I know /lib/libshadow.so.0 was dropped in the move from shadow
4.1.4.3-5 > 4.1.5, but is it possible to build the new shadow and have
it create libshadow.so.0? If so, how? This might be basic, but
obviously I'm ignorant to the solution. Thanks.
try this
from ./configure --help
--enable-shared[=PKGS] build shared libraries [default=no]
--enable-static[=PKGS] build static libraries [default=yes]
so add
--enable-shared
to your configure command