Subject: pkg/8526: the doscmd package is broken under -current
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthieu Herrb <matthieu@bluenote.laas.fr>
List: netbsd-bugs
Date: 10/01/1999 01:50:57
>Number:         8526
>Category:       pkg
>Synopsis:       emulators/doscmd package broken under -current/i386
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct  1 01:50:01 1999
>Last-Modified:
>Originator:     Matthieu Herrb
>Organization:
	LAAS/CNRS, Toulouse, France
>Release:        NetBSD-current 1999, sep 30
>Environment:
System: NetBSD bluenote 1.4K NetBSD 1.4K (BLUENOTE) #22: Sun Sep 26 21:39:59 CEST 1999 matthieu@bluenote:/local/NetBSD/src/sys/arch/i386/compile/BLUENOTE i386


>Description:
	The emulators/doscmd package doesn't compile under NetBSD-current
on i386, probably because of the switch to ELF. 

	First it fails with the following error:

ld -N -Bstatic -T 110000 -o doscmd.kernel -R/usr/pkg/lib -L/usr/pkg/lib -R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R6/lib crt0.o AsyncIO.o ParseBuffer.o bios.o callback.o cpu.o dos.o cmos.o config.o cwd.o device.o disktab.o doscmd.o exe.o i386-pinsn.o int.o int10.o int11.o int12.o int13.o int14.o int15.o int16.o int17.o int1a.o int2f.o intff.o mem.o mouse.o net.o null.o port.o setver.o signal.o timer.o trace.o trap.o tty.o xms.o -lX11 -li386 -lgcc -lc -lgcc
ld: cannot open linker script file 110000: No such file or directory

	Changing -T to -Ttext (according to the respective a.out/ELF
ld(1) man pages, makes it go one step further but it then fails with:

ld -N -Bstatic -o doscmd -R/usr/pkg/lib -L/usr/pkg/lib -R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R6/lib /usr/lib/crt0.o doscmd_loader.o -lX11 -li386 -lgcc -lc -lgcc
/usr/lib/crt0.o(.text+0xa6): undefined reference to `_fini'
/usr/lib/crt0.o(.text+0xb0): undefined reference to `_init'
*** Error code 1

>How-To-Repeat:
	cd /usr/pkgsrc/emulators/doscmd
	make

>Fix:
	Don't know, sorry.

>Audit-Trail:
>Unformatted: