delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/09/18:13:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: an DOT rei AT aon DOT at
To: cygwin AT sourceware DOT cygnus DOT com
Date: Tue, 10 Oct 2000 00:21:38 +0200
MIME-Version: 1.0
Subject: unresolved externals linking nlmconv.exe (binutils 2.9.1)
Message-ID: <39E26112.2440.99F46A@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)

Dear Cygwinlist,

I am not sure if this is the right list for my problem.
I am trying to compile nlmconv.exe unter NT 4.0.
Compiling seems ok but linking give a lot of unresolved externals.
Here are some of them:

d:/usr/lib/libbfd.a(bfd.o)(.text+0x25a):bfd.c: undefined reference to 
`xstrerror'
d:/usr/lib/libbfd.a(bfd.o)(.text+0x27d):bfd.c: undefined reference to 
`dcgettext__'
d:/usr/lib/libbfd.a(bfd.o)(.text+0x4cf):bfd.c: undefined reference to 
`_nl_msg_cat_cntr'

d:/usr/lib/libbfd.a(opncls.o)(.text+0x22):opncls.c: undefined 
reference to `objalloc_create'
d:/usr/lib/libbfd.a(opncls.o)(.text+0x119):opncls.c: undefined 
reference to `objalloc_free'

d:/usr/lib/libbfd.a(ihex.o)(.text+0xdae):ihex.c: undefined reference 
to `_hex_value'
d:/usr/lib/libbfd.a(ihex.o)(.text+0xdcc):ihex.c: undefined reference 
to `_nl_msg_cat_cntr'

Here is the makefile I am using:

#
# Makefile for a nlmconv program
#

TARGET	 = nlmconv

SOURCES  = nlmconv.c nlmheader.c version.c filemode.c 
bucomm.c

COBJECTS = $(SOURCES:.c=.o)

CFLAGS   = -O2 -DNLMCONV_I386
# CFLAGS   = -g

LDFLAGS +=	-Ld:/usr/lib

LDLIBS +=       -lopcodes -liberty -lbfd

# The name of your C compiler:
CC= gcc
# linker
LN= $(CC)
# file deletion command
# library (.a) file creation command
AR= ar rc

$(TARGET): $(COBJECTS)
	   $(LN) $(CFLAGS) $(LDFLAGS) \
	   $(COBJECTS) $(LDLIBS) -o $(TARGET)

$(COBJECTS):

clean:
	del $(TARGET) $(COBJECTS)

rmo:
	make clean
	$(RM)  $(TARGET) *.o

The three linked libs (-lopcodes -liberty -lbfd) are from 22.07.00.
Do I need extra libs to link with or newer versions?

Thanks for all tips.
Andreas




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019