delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/17/10:01:27

Date: Mon, 17 Sep 2001 16:55:50 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: heviaop AT ciudad DOT com DOT ar
Message-Id: <2110-Mon17Sep2001165549+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <200109171148.f8HBmTj78398@postino3.int.prima.com.ar>
(heviaop AT ciudad DOT com DOT ar)
Subject: Re: link error with gpc
References: <200109111130 DOT f8BBUTV25979 AT postino5 DOT prima DOT com DOT ar> <200109171148 DOT f8HBmTj78398 AT postino3 DOT int DOT prima DOT com DOT ar>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Orlando P. Hevia" <heviaop AT ciudad DOT com DOT ar>
> Date: Mon, 17 Sep 2001 08:47:09 -0300
> 
> Eli Zaretskii wrote:
> 
> > 
> > These functions are in libc.a, so I'm guessing that the
> > order of the libraries on the link command line was wrong. 
> > Link with -v and look at the command used to invoke the
> > linker; if that doesn't give a clue, post everything the
> > compiler printed here.
> 
> Here is the output:
> 
> 
> g77 version 2.95.3 20010315/djgpp (release) (from FSF-g77 
> version 0.5.25 20010315 (release))
> Driving: G:\USR\BIN/g77.exe -v -o tpbigp.exe dimdef.o 
> newmods.o comtac.o fgnptest.o fgnmod.o usernl.o tpbig.a 
> dislin.a -lgpc -lg2c -lm
> Reading specs from g:/usr/lib/gcc-lib/djgpp/2.953/specs
> gcc version 2.95.3 20010315/djgpp (release)
>  g:/usr/lib/gcc-lib/djgpp/2.953/collect2.exe -o tpbigp.exe 
> g:/usr/lib/crt0.o -Lg:/usr/lib/gcc-lib/djgpp/2.953 -
> Lg:/usr/bin -Lg:/usr/lib dimdef.o newmods.o comtac.o 
> fgnptest.o fgnmod.o usernl.o tpbig.a dislin.a -lgpc -lg2c -
> lm -lgcc -lc -lgcc -Tdjgpp.djl
> g:/usr/lib/gcc-
> lib/djgpp/2.953/libgpc.a(rts.o)(.text+0x19c4):rts.c: 
> undefined reference to `tcsetpgrp'
> g:/usr/lib/gcc-
> lib/djgpp/2.953/libgpc.a(rts.o)(.text+0x19f0):rts.c: 
> undefined reference to `tcgetpgrp'
> collect2: ld returned 1 exit status
> make.exe: *** [tpbigp.exe] Error 1

This is very strange: the linker does scan libc.a, but doesn't find a
function that is in there.  What version of the DJGPP library do you
have?  What is the value of __DJGPP_MINOR__ in the sys/version.h
header file?

- Raw text -


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