compile error on 2.1.2: library libltdl/libltdlc.la

2008-12-04 Thread rgreiner
Hi,

I just downloaded the new version for testing, but I got a compile
error. Di somebody get something similar?

I'm building debian packages, on Debian Lenny-RC1. To compile, I had to
remove --with-system-libtool from debian/rules.

Running dpkg-buildpackage -b -uc, I got the following error bellow after
some time. Any ideas about how to proceed?

Tks,

Roberto

.
libtool: compile:  gcc -Wall -g -O2 -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -W -Wredundant-decls -Wundef
-I/root/freeradius-server-2.1.2/src
-I/root/freeradius-server-2.1.2/libltdl
-I/root/freeradius-server-2.1.2/libltdl -Ilibeap -c mem.c  -fPIC -DPIC
-o .libs/mem.o
libtool: compile:  gcc -Wall -g -O2 -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -W -Wredundant-decls -Wundef
-I/root/freeradius-server-2.1.2/src
-I/root/freeradius-server-2.1.2/libltdl
-I/root/freeradius-server-2.1.2/libltdl -Ilibeap -c mem.c -o mem.o
/dev/null 21
/bin/sh /root/freeradius-server-2.1.2/libtool --mode=link gcc -release
2.2.0 \
-module -export-dynamic   -o rlm_eap.la \
-rpath /usr/lib/freeradius rlm_eap.lo eap.lo mem.lo rlm_eap.c
eap.c mem.c
/root/freeradius-server-2.1.2/src/lib/libfreeradius-radius.la
libeap/libfreeradius-eap.la
/root/freeradius-server-2.1.2/libltdl/libltdlc.la -lnsl -lresolv -ldl 
-lpthread
libtool: link: cannot find the library
`/root/freeradius-server-2.1.2/libltdl/libltdlc.la' or unhandled
argument `/root/freeradius-server-2.1.2/libltdl/libltdlc.la'
make[7]: *** [rlm_eap.la] Error 1
make[7]: Leaving directory
`/root/freeradius-server-2.1.2/src/modules/rlm_eap'
make[6]: *** [common] Error 2
make[6]: Leaving directory `/root/freeradius-server-2.1.2/src/modules'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/root/freeradius-server-2.1.2/src/modules'
make[4]: *** [common] Error 2
make[4]: Leaving directory `/root/freeradius-server-2.1.2/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/freeradius-server-2.1.2/src'
make[2]: *** [common] Error 2
make[2]: Leaving directory `/root/freeradius-server-2.1.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/freeradius-server-2.1.2'
make: *** [build-arch-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2




-- 
  -
Marcos Roberto Greiner

   Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
   Murphy
  -

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: compile error on 2.1.2: library libltdl/libltdlc.la

2008-12-04 Thread John Dennis

rgreiner wrote:

Hi,

I just downloaded the new version for testing, but I got a compile
error. Di somebody get something similar?

I'm building debian packages, on Debian Lenny-RC1. To compile, I had to
remove --with-system-libtool from debian/rules.

Running dpkg-buildpackage -b -uc, I got the following error bellow after
some time. Any ideas about how to proceed?

  
I'm getting an error that I suspect is related, however I'm building 
with --with-system-libtool and --disable-ltdl-install


error: conditional INSTALL_LTDL was never defined.

I'm in the process of trying to track this down, but it's slow going 
because the machine generated autotools scripts are just plain nasty ;-)


--
John Dennis [EMAIL PROTECTED]

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: compile error on 2.1.2: library libltdl/libltdlc.la

2008-12-04 Thread Alan DeKok
rgreiner wrote:
 Running dpkg-buildpackage -b -uc, I got the following error bellow after
 some time. Any ideas about how to proceed?
...
 libtool: link: cannot find the library
 `/root/freeradius-server-2.1.2/libltdl/libltdlc.la' or unhandled

  Bizarre.  Nothing in the source or Makefiles references a
libltdlc.la.  There's a libltdl.la without the C, but that's it.

  I don't know what to suggest.  Maybe it's time for me to set up a
Debian build vmware image.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: compile error on 2.1.2: library libltdl/libltdlc.la

2008-12-04 Thread Alan DeKok
John Dennis wrote:
 I'm getting an error that I suspect is related, however I'm building
 with --with-system-libtool and --disable-ltdl-install
 
 error: conditional INSTALL_LTDL was never defined.
 
 I'm in the process of trying to track this down, but it's slow going
 because the machine generated autotools scripts are just plain nasty ;-)

  If it's coming from the libltdl directory... I have large amounts of
cursing for them.

  I can't find anywhere else in the source that references that name...

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: compile error on 2.1.2: library libltdl/libltdlc.la

2008-12-04 Thread John Dennis

John Dennis wrote:

rgreiner wrote:

Hi,

I just downloaded the new version for testing, but I got a compile
error. Di somebody get something similar?

I'm building debian packages, on Debian Lenny-RC1. To compile, I had to
remove --with-system-libtool from debian/rules.

Running dpkg-buildpackage -b -uc, I got the following error bellow after
some time. Any ideas about how to proceed?

  
I'm getting an error that I suspect is related, however I'm building 
with --with-system-libtool and --disable-ltdl-install


error: conditional INSTALL_LTDL was never defined.

I'm in the process of trying to track this down, but it's slow going 
because the machine generated autotools scripts are just plain nasty ;-)


O.K. I give up. I've begun to truly despise libtool. There are too many 
layers, obsurcifications, and poorly documented configuration options to 
wrap my poor little brain around.


I figured out that the reason why INSTALL_LTDL was never defined is 
because it's defined deep inside the code which only gets turned on when 
--with-system-libtool is not specified.


However if one removes this option then linking fails because libtool 
cannot find libltdl/libltdlc.la in the root of the build tree.


With the prior release (2.1.1) if I didn't define --with-system-libtool 
then I would get an unresolved reference to 
lt__PROGRAM__LTX_preloaded_symbols and I was told by our libtool 
maintainer this is due to incompatibilities with the files included in 
the tarball and the right solution is to specify --with-system-libtool 
so that local files are used but if I do that then it barfs on 
INSTALL_LTDL :-(


Googling all of this did not provide much help other than discovering 
I'm not the only who thinks libtool is too hard to use. If anyone truly 
understands this stuff I'd love an explanation.


--
John Dennis [EMAIL PROTECTED]

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: compile error on 2.1.2: library libltdl/libltdlc.la

2008-12-04 Thread Alan DeKok
John Dennis wrote:
 O.K. I give up. I've begun to truly despise libtool. There are too many
 layers, obsurcifications, and poorly documented configuration options to
 wrap my poor little brain around.

  The libtool people must be *much* smarter than me, because I don't
understand the code.

  My inclination at this point is to remove libltld entirely from the
build.  If your system doesn't have a functional dlopen(), it doesn't
deserve to run FreeRADIUS.

 I figured out that the reason why INSTALL_LTDL was never defined is
 because it's defined deep inside the code which only gets turned on when
 --with-system-libtool is not specified.
 
 However if one removes this option then linking fails because libtool
 cannot find libltdl/libltdlc.la in the root of the build tree.

  What the heck is libltdlc.la?  I don't see it on my system when the
server is being built.

 With the prior release (2.1.1) if I didn't define --with-system-libtool
 then I would get an unresolved reference to
 lt__PROGRAM__LTX_preloaded_symbols and I was told by our libtool
 maintainer this is due to incompatibilities with the files included in
 the tarball and the right solution is to specify --with-system-libtool
 so that local files are used but if I do that then it barfs on
 INSTALL_LTDL :-(
 
 Googling all of this did not provide much help other than discovering
 I'm not the only who thinks libtool is too hard to use. If anyone truly
 understands this stuff I'd love an explanation.

  libtool, libltdl, and autoconf are steaming masses of fertilizer.

  When FreeRADIUS started, I took a look at automake, and decided it was
truly pointless.  So we used gmake, and no one has ever really complained.

  If you look at the source code, there are a few references to
WITHOUT_LIBLTLDL.  It still requires some finalization, but it's been
known to work (after some edits) on some systems.  I might just spend
some time removing ltldl from the system entirely.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html