www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/03/11:45:35

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <7CDD7B94357FD5119E800002A537C46E0D3427@s5-ccr-r1.ccrs.nrcan.gc.ca>
From: "Brooks, Rupert" <Rupert DOT Brooks AT CCRS DOT NRCan DOT gc DOT ca>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: newbie question
Date: Sun, 3 Feb 2002 11:45:30 -0500
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Reply-To: djgpp AT delorie DOT com

Hi,

Looking for an alternative to Cygwin, I downloaded DJGPP the other day.  I
believe that I have installed it according to the instructions but I am
having trouble compiling things that used to compile properly under Cygwin.

Basically the linker is unable to find the library containing Assert.  On
attempted compilation I get the following message or something similar

D:\DEVELO~1\shapelib\SHAPEL~1.8>make
gcc  shpcreate.c shpopen.o  -o shpcreate
shpopen.o(.text+0x189b):shpopen.c: undefined reference to `__assert'
shpopen.o(.text+0x18bf):shpopen.c: undefined reference to `__assert'
shpopen.o(.text+0x1aa7):shpopen.c: undefined reference to `__assert'
shpopen.o(.text+0x24eb):shpopen.c: undefined reference to `__assert'
collect2: ld returned 1 exit status
make.exe: *** [shpcreate] Error 1

Now this probably means that I don't have the right library path or
something similar, which likely has a really trivial solution.  But I can't
find it.  

Please CC responses back to me directly, as I am not subscribed to the list.

Thanks much
Rupert B.

As you request in the faq, here is some config information
The output of gcc with -v turned on:

D:\DEVELO~1\shapelib\SHAPEL~1.8>make
gcc -v shpcreate.c shpopen.o  -o shpcreate
Reading specs from C:/DJGPP/lib/gcc-lib/djgpp/2.953/specs
gcc version 2.95.3 20010315/djgpp (release)
 C:/DJGPP/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2
-D__GNUC_MINO
R__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__
-D__GO32__ -
D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS
-Asyst
em(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Acpu(i386)
-Amachine(i386)
 -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros
C:/DJGPP/lib/djgpp.ver -
remap shpcreate.c C:/DJGPP/tmp\cc1JkwQK.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 C:/DJGPP/lib/gcc-lib/djgpp/2.953/include
 C:/DJGPP/include
End of search list.
The following default directories have been omitted from the search path:
 $DJDIR/lang/cxx
 $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
 C:/DJGPP/lib/gcc-lib/djgpp/2.953/cc1.exe C:/DJGPP/tmp\cc1JkwQK.i -quiet
-dumpba
se shpcreate.c -version -o C:/DJGPP/tmp\ccudqWYt.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version
2.95.3 20010315/djgpp (release).
 C:/DJGPP/bin/as.exe -o C:/DJGPP/tmp\ccvwlk9o.o C:/DJGPP/tmp\ccudqWYt.s
 C:/DJGPP/lib/gcc-lib/djgpp/2.953/collect2.exe -o shpcreate
C:/DJGPP/lib/crt0.o
-LC:/DJGPP/lib -LC:/DJGPP/lib/gcc-lib/djgpp/2.953 -LC:/DJGPP/bin
-LC:/DJGPP/lib
C:/DJGPP/tmp\ccvwlk9o.o shpopen.o -lgcc -lc -lgcc -Tdjgpp.djl
shpopen.o(.text+0x189b):shpopen.c: undefined reference to `__assert'
shpopen.o(.text+0x18bf):shpopen.c: undefined reference to `__assert'
shpopen.o(.text+0x1aa7):shpopen.c: undefined reference to `__assert'
shpopen.o(.text+0x24eb):shpopen.c: undefined reference to `__assert'
collect2: ld returned 1 exit status
make.exe: *** [shpcreate] Error 1

The output of set

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\brooks\Application Data
APRESSTMPDIR=C:\DOCUME~1\brooks\LOCALS~1\Temp
ARCHOME=D:\arcgis\arcexe81
ARCHOME_USER=D:\arcgis\arcexe81
ARCINFOFONTNAME=Courier New
ARCINFOFONTSIZE=8
ATHOME=D:\arcgis\arcexe81\arctools
CANVASCOLOR=white
CLASSPATH=c:\jdk1.3\saxon\saxon.jar;.
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=PPCRBROOKS
ComSpec=C:\WINNT\system32\cmd.exe
DJGPP=c:\DJGPP\DJGPP.ENV
HOMEDRIVE=c:
HOMEPATH=\users\brooks
LOGONSERVER=\\CCRS-NTS2
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\PROGRAM
FILES\ORACLE\JRE\1.1.7\BIN;C:\PERL\BIN\;C:\WINNT\SYSTEM32;C:\WINNT;C:\WINNT\
SYSTEM32\WBEM;"C:\PROGRAM FILES\HUMMIN
IRD\CONNECTIVITY\7.00\ACCESSORIES\";C:\JDK1.3\BIN;C:\DMI\WIN32\BIN;D:\arcgis
\arcexe81\bin;c:\bin;c:\djgpp\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PL
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0502
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\brooks\LOCALS~1\Temp
TMP=C:\DOCUME~1\brooks\LOCALS~1\Temp
USERDOMAIN=CCRS
USERNAME=brooks
USERPROFILE=C:\Documents and Settings\brooks
WIN32DMIPATH=C:\DMI\WIN32
windir=C:\WINNT

The output of go-32
D:\DEVELO~1\shapelib\SHAPEL~1.8>go32-v2
go32/v2 version 2.0 built Dec 24 2001 21:25:02
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries as
 well as v1 binaries (old makefiles).  Put ahead of the old go32 in your
PATH
 but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.

DPMI memory available: 7515 Kb
DPMI swap space available: 7845 Kb

D:\DEVELO~1\shapelib\SHAPEL~1.8>
******************************************************
* Rupert Brooks                  
* Map Generalisation Specialist
* GeoAccess Division CCRS               "I
* Natural Resources Canada               hate
* Room 650, 615 Booth St.                quotations."
* Ottawa, ON, K1A 0E9
* brooks AT nrcan DOT gc DOT ca                   --R. W. Emerson
* http://www.nrcan.gc.ca/~rbrooks
* Vox: 613.992-7650
* Fax: 613.947-2410




- Raw text -


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