[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #YVG-914431]: Build Problems for LDM 6.11.2 on Ubuntu Server 12.04


> 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

The error messages indicate that the utility "src/regutil/.libs/lt-regutil" 
wasn't able to find the XML library, which is odd because that library is part 
of the LDM package and should have been already built and installed at this 

> >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.

What is the output of the following command:

    cd /usr/local/ldm/ldm-6.11.2/src/regutil/.libs && ldd lt-regutil

> Jay Smith

Steve Emmerson

Ticket Details
Ticket ID: YVG-914431
Department: Support LDM
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.