NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [ldm-users] Build Problems for LDM 6.11.2 on Ubuntu Server 12.04

List,

I just wanted to let everyone know, with Unidata's help, I solved the
problem. I had available to me two versions of the "binutils" package: the
traditional binutils package and the newer binutils-gold package. I had
both of them installed. Some quick Google searches suggested that the
binutils-gold package is buggy. Whether that was the case or the two
packages were just interfering with each other, once I deleted the
binutils-gold package, everything worked just fine.

Steve and Tom of Unidata were of great help to me in our various email
exchanges and I probably wouldn't have figured this out without their help.

Jay


On Tue, Mar 26, 2013 at 4:17 PM, Jay Smith - NOAA Federal <
jay.smith@xxxxxxxx> wrote:

> I've been trying to build LDM 6.11.2 on a 64-bit installation of Ubuntu
> Server 12.04. I don't do a lot of program build from source, so I'm not
> very knowledgeable about the process.
>
> As near as I can tell, I've followed all of the instructions correctly
> concerning the ldm user environment and directory structure and I meet the
> prerequisites. My environment is not listed in either the "Successful Build
> Environments" table nor the "Unsuccessful Build Environments" table.
>
> I've invoked the "configure" command with the "disable-root-actions"
> switch and nothing else. This command runs to completion and doesn't
> indicate anything to me that looks like a problem. The "make install"
> command, however, does not finish. This is what the end of the "make
> install" output looks like:
>
> make[2]: Entering directory `/usr/local/ldm/ldm-6.11.2/src/regutil'
> depbase=`echo regutil.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
>         gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../registry -I../ulog
> -I../protocol -I../libxml2/include   -g -O2 -MT regutil.o -MD -MP -MF
> $depbase.Tpo -c -o regutil.o regutil.c &&\
>         mv -f $depbase.Tpo $depbase.Po
> /bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2   -o regutil
> regutil.o ../lib/libldm.la ../libxml2/libxml2.la  -lpthread
> libtool: link: gcc -g -O2 -o .libs/regutil regutil.o
>  ../lib/.libs/libldm.so ../libxml2/.libs/libxml2.so -ldl -lm -lpthread
> -Wl,-rpath -Wl,/usr/local/ldm/ldm-6.11.2/lib
> make[3]: Entering directory `/usr/local/ldm/ldm-6.11.2/src/regutil'
> test -z "/usr/local/ldm/ldm-6.11.2/bin" || /bin/mkdir -p
> "/usr/local/ldm/ldm-6.11.2/bin"
>   /bin/bash ../libtool   --mode=install /usr/bin/install -c regutil
> '/usr/local/ldm/ldm-6.11.2/bin'
> libtool: install: /usr/bin/install -c .libs/regutil
> /usr/local/ldm/ldm-6.11.2/bin/regutil
> sed -e 's;@''LDMHOME@;/usr/local/ldm;g' \
>             -e 's;@''LOGS_DIR@;/usr/local/ldm/var/logs;g' \
>             -e 's;@''QUEUE_DIR@;/usr/local/ldm/var/queues;g' \
>             -e 's;@''DATA_DIR@;/usr/local/ldm;g' \
>             -e 's;@''HOSTNAME@;intranet1;g' \
>             -e 's;@''NTPDATE@;/usr/sbin/ntpdate;g' \
>             -e 's;@''LOG_FILE@;/usr/local/ldm/var/logs/ldmd.log;g' \
>             -e 's;@''METRICS_FILE@;/usr/local/ldm/var/logs/metrics.txt;g'
> \
>             -e 's;@''NETSTAT@;/bin/netstat -A inet -t -n;g' \
>             -e 's;@''TOP@;/usr/bin/top -b -n 1;g' \
>             -e 's;@''ETC_DIR@;/usr/local/ldm/etc;g' \
>             ./regpar.tab.in >regpar.tab.tmp
> mv regpar.tab.tmp regpar.tab
> /usr/bin/perl ./installRegistry regpar.tab ./regutil \
>             /usr/local/ldm/etc/ldmadmin-pl.conf /usr/local/ldm/etc
> /usr/local/ldm/ldm-6.11.2/src/regutil/.libs/lt-regutil: symbol lookup
> error: /usr/local/ldm/ldm-6.11.2/src/lib/.libs/libldm.so.0: undefined
> symbol: xmlFree
> Couldn't ensure that registry exists in directory "/usr/local/ldm/etc" at
> ./installRegistry line 33.
> make[3]: *** [install-exec-local] Error 2
> make[3]: Leaving directory `/usr/local/ldm/ldm-6.11.2/src/regutil'
> make[2]: *** [install-am] Error 2
> make[2]: Leaving directory `/usr/local/ldm/ldm-6.11.2/src/regutil'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/usr/local/ldm/ldm-6.11.2/src/regutil'
> make: *** [install-recursive] Error 1
>
> From the poking around I've done, the xmlFree symbol can be found on the
> system in the libxml2 library, which is installed in the
> /usr/lib/x86_64-linux-gnu directory. When I run the "nm" command with the
> -D switch against the system library, it shows the xmlFree symbol with the
> "D" flag, which I've learned means the symbol is in the data section of the
> library. Of course, the same "nm" command against libldm.so.0 library file
> returns the flag "U" for undefined. I don't really understand what any of
> this means. My Google searches have indicated a symbol should show up with
> either a "D" or "T" flag in a library file.
>
> In the attached tarball are the config.log file the configure command
> creates as well as a configure.log and make.log file I captured when
> running those respective commands. If anyone has any ideas on what I don't
> have right, I'd be grateful to hear them. Thanks in advance.
>
> Jay Smith
>
  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the ldm-users archives: