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

[LDM #YGF-571131]: Source-Code Installation: "undefined reference to `LOG_SERROR1'" building feedme



Rodrigo,

> Full Name: Rodrigo Sanchez
> Email Address: address@hidden
> Organization: Universidad de Chile
> Package Version: 6.10.1
> Operating System: Linux: Opensuse 12.1 x86_64
> Hardware:
> Description of problem: Hi all,
> I'm building ldm from the source code, and I got errors in compile time:
> 
> libldm.so: undefined reference to `LOG_SERROR1'
> libldm.so: undefined reference to `LOG_ADD0'
> collect2: ld returned 1 exit status
> make[2]: *** [feedme] Error 1
> make[2]: Leaving directory `/.../ldm-6.10.1/feedme'

Odd. The symbol LOG_SERROR1 is a C macro -- so ld(1) should never see it.

What object file references LOG_SERROR1? Please send me the output of the 
following commands executed by the LDM user:

    cd /home/ldm/ldm/src/lib/.libs
    nm -g --print-file-name *.a *.so | fgrep LOG_SERROR1

> My configuration line:
> ./configure --prefix=/home/ldm/ldm --libdir=/home/ldm/ldm/lib64 
> --libexecdir=/home/ldm/ldm/lib64 --sysconfdir=/home/ldm/ldm/etc 
> --enable-logging=local0 --localstate
> dir=/home/ldm/ldm/var --enable-shared --enable-static --disable-max-size 
> --sharedstatedir=/home/ldm/ldm/var --with-noaaport --with-gribinsert
> 
> My environment variables:
> CC=gcc
> CFLAGS=-O2
> CPPFLAGS='-DNDEBUG -Df2cFortran'
> FC=gfortran
> F77=gfortran
> CXX=g++
> FFLAGS='-O2 -Wuninitialized -fno-automatic'
> CPP_LDM=-I/home/ldm/ldm/include
> LD_LDM='-L/home/ldm/ldm/lib -L/home/ldm/ldm/lib64 -lldm -lxml2'
> CPP_MCIDAS=-I/home/mcidas/inc
> LD_MCIDAS='-L/home/mcidas/lib -lmcidas'
> CPP_NETCDF='-I/home/mcidas/inc'
> LD_NETCDF='-L/home/mcidas/lib -lnetcdf'
> LD_X11='-L/usr/lib64 -lX11'
> LD_MATH=-lm
> LDMHOME=/home/ldm/ldm
> 
> I have googled this error, without any success..
> Any help/hint/link  will be helpful
> 
> Rodrigo

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: YGF-571131
Department: Support LDM
Priority: Normal
Status: Closed