Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 1998 09:49:19 +0200
From:      Frank Nobis <fn@radio-do.de>
To:        Jean-Marc Zucconi <jmz@FreeBSD.ORG>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Bug in elf c++
Message-ID:  <19980919094919.A7853@radio-do.de>
In-Reply-To: <199809190020.CAA00821@qix>; from Jean-Marc Zucconi on Sat, Sep 19, 1998 at 02:20:31AM %2B0200
References:  <19980918190509.A2708@radio-do.de> <199809190020.CAA00821@qix>

next in thread | previous in thread | raw e-mail | index | archive | help

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii

On Sat, Sep 19, 1998 at 02:20:31AM +0200, Jean-Marc Zucconi wrote:
> I tried the example and it exits with value 0 in both cases. Is your
> c++ /usr/bin/c++ ?

Of course, it is.

su-2.01# which c++
/usr/bin/c++
su-2.01# c++ -v
 cc -v
gcc version 2.7.2.1
su-2.01# c++ xxx.cc
su-2.01# ./a.out
su-2.01# echo $?
1

I had a mess with aout ldconfig path and elf ldconfig path, but that was not the reaseon.
When going from aout to elf, one should look into the files in /usr/local/etc/rc.d
for possibly bogus ldconfig commands :-/

The system is SMP+CAM+ELF. I will attach my kernel config and the latest boot messages.
Maybe there is something I have overseen untill now.

Regards
	Frank
-- 
 Frank Nobis                            Email: PGP AVAILABLE
 Landgrafenstr. 130                     dg3dcn   http://www.radio-do.de/~fn/
 44139 Dortmund				Powered by FreeBSD


--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dmesg.today"

Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.0-CURRENT #0: Thu Sep 17 16:33:19 CEST 1998
    root@trinity.radio-do.de:/usr/src/sys/compile/SMP-TRINITY
Timecounter "i8254"  frequency 1193163 Hz  cost 3192 ns
CPU: Pentium II (quarter-micron) (686-class CPU)
  Origin = "GenuineIntel"  Id = 0x651  Stepping=1
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,<b24>>
real memory  = 536870912 (524288K bytes)
avail memory = 520142848 (507952K bytes)
Programming 24 pins in IOAPIC #0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Probing for devices on PCI bus 0:
chip0: <Intel 82443BX host to PCI bridge> rev 0x02 on pci0.0.0
chip1: <Intel 82443BX host to AGP bridge> rev 0x02 on pci0.1.0
chip2: <Intel 82371AB PCI to ISA bridge> rev 0x02 on pci0.4.0
ide_pci0: <Intel PIIX4 Bus-master IDE controller> rev 0x01 on pci0.4.1
Freeing (NOT implemented) redirected ISA irq 9.
chip3: <Intel 82371AB USB host controller> rev 0x01 int d irq 19 on pci0.4.2
chip4: <Intel 82371AB Power management controller> rev 0x02 on pci0.4.3
Freeing (NOT implemented) redirected ISA irq 9.
ahc0: <Adaptec aic7890/91 Ultra2 SCSI adapter> rev 0x00 int a irq 19 on pci0.6.0
ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs
Freeing (NOT implemented) redirected ISA irq 9.
bktr0: <BrookTree 848> rev 0x12 int a irq 19 on pci0.9.0
Hauppauge WinCast/TV, Philips FR1216 PAL tuner, msp3400c stereo.
Freeing (NOT implemented) redirected ISA irq 12.
ed1: <NE2000 PCI Ethernet (RealTek 8029)> rev 0x00 int a irq 17 on pci0.11.0
ed1: address 00:40:05:64:a9:fb, type NE2000 (16 bit) 
Freeing (NOT implemented) redirected ISA irq 11.
ahc1: <Adaptec 2940 SCSI adapter> rev 0x03 int a irq 16 on pci0.12.0
ahc1: aic7870 Single Channel A, SCSI Id=7, 16/255 SCBs
Probing for devices on PCI bus 1:
Freeing (NOT implemented) redirected ISA irq 11.
vga0: <Matrox model 0521 graphics accelerator> rev 0x01 int a irq 16 on pci1.0.0
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
psm0 not found at 0x60
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
npx0 on motherboard
npx0: INT 16 interface
sb0 at 0x220 irq 10 drq 1 on isa
snd0: <SoundBlaster 16 4.13> 
sbxvi0 at ? drq 5 on isa
snd0: <SoundBlaster 16 4.13> 
soundcard buffer alloc failed 
snd: Unable to allocate 131072 bytes of buffer
sbmidi0 not found at 0x330
opl0 at 0x388 on isa
snd0: <Yamaha OPL3 FM> 
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via pin 2
SMP: AP CPU #1 Launched!
(probe19:ahc1:0:4:0): Sending SDTR!!
changing root device to da0s2a
da2 at ahc1 bus 0 target 2 lun 0
da2: <NEC DSE2100S 0306> Fixed Direct Access SCSI2 device 
da2: 10.0MB/s transfers (10.0MHz, offset 15)
da2: 2014MB (4124736 512 byte sectors: 64H 32S/T 2014C)
da0 at ahc1 bus 0 target 0 lun 0
da0: <CONNER CFP2105S  2.14GB 2B4B> Fixed Direct Access SCSI2 device 
da0: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled
da0: 2048MB (4194304 512 byte sectors: 64H 32S/T 2048C)
da1 at ahc1 bus 0 target 1 lun 0
da1: <QUANTUM FIREBALL_TM3200S 300N> Fixed Direct Access SCSI2 device 
da1: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled
da1: 3067MB (6281856 512 byte sectors: 64H 32S/T 3067C)
da4 at ahc1 bus 0 target 5 lun 0
da4: <FUJITSU M2513A 1300> Removable Optical SCSI2 device 
da4: 10.0MB/s transfers (10.0MHz, offset 10)
da4: 606MB (310352 2048 byte sectors: 64H 32S/T 151C)
cd0 at ahc1 bus 0 target 3 lun 0
cd0: <SANYO CRD-254S 1.05> Removable CD-ROM SCSI2 device 
cd0: 3.300MB/s transfers
cd0: cd present [233265 x 2048 byte records]
da3 at ahc1 bus 0 target 4 lun 0
da3: < DFRSS4F 4B4B> Fixed Direct Access SCSI2 device 
da3: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled
da3: 4303MB (8813870 512 byte sectors: 64H 32S/T 4303C)
lpt0 switched to polled mode
(da3:ahc1:0:4:0): tagged openings now 40
(da1:ahc1:0:1:0): tagged openings now 15
(da0:ahc1:0:0:0): tagged openings now 32

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=SMP-TRINITY

# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information read the handbook part System Administration -> 
# Configuring the FreeBSD Kernel -> The Configuration File. 
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server 
# <URL:http://www.FreeBSD.ORG/>;
#
# An exhaustive list of options and more detailed explanations of the 
# device lines is present in the ./LINT configuration file. If you are 
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
#	$Id: GENERIC,v 1.101 1997/10/31 22:10:02 jseger Exp $

machine		"i386"
cpu		"I586_CPU"
cpu		"I686_CPU"
ident		SMP-TRINITY
maxusers	15

# Create a SMP capable kernel (mandatory options):
options		SMP			# Symmetric MultiProcessor Kernel
options		APIC_IO			# Symmetric (APIC) I/O

# Optional, these are the defaults:
#options		NCPU=2			# number of CPUs
#options		NBUS=4			# number of busses
#options		NAPIC=1			# number of IO APICs
#options		NINTR=24		# number of INTs

# Lets always enable the kernel debugger for SMP.
options		DDB

##options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		MFS			#Memory File System
options		NFS			#Network Filesystem
##options		MSDOSFS			#MSDOS Filesystem
##options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
#options		SCSI_DELAY=5		#Be pessimistic about Joe SCSI device
##options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console
##options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor
###options		CLK_CALIBRATION_LOOP
options		"CLK_USE_I8254_CALIBRATION"
options		"CLK_USE_TSC_CALIBRATION" 
options		"VM86"
### Keine Softupdates mit SMP z.Z.
###options		SOFTUPDATES

# NFS options:
options         "NFS_MINATTRTIMO=3"     # VREG attrib cache timeout in sec
options         "NFS_MAXATTRTIMO=60"
options         "NFS_MINDIRATTRTIMO=30" # VDIR attrib cache timeout in sec
options         "NFS_MAXDIRATTRTIMO=60"
options         "NFS_GATHERDELAY=10"    # Default write gather delay (msec)
options         "NFS_UIDHASHSIZ=29"     # Tune the size of nfssvc_sock with this
options         "NFS_WDELAYHASHSIZ=16"  # and with this
options         "NFS_MUIDHASHSIZ=63"    # Tune the size of nfsmount with this
##options         NFS_DEBUG               # Enable NFS Debugging

config		kernel	root on sa0

controller	isa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1
##tape		ft0	at fdc0 drive 2

##options		"CMD640"	# work around CMD640 chip deficiency
controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
###disk		wd1	at wdc0 drive 1


#####################################################################
# SCSI DEVICES

# SCSI DEVICE CONFIGURATION

# The SCSI subsystem consists of the `base' SCSI code, a number of
# high-level SCSI device `type' drivers, and the low-level host-adapter
# device drivers.  The host adapters are listed in the ISA and PCI
# device configuration sections below.
#
# Beginning with FreeBSD 2.0.5 you can wire down your SCSI devices so
# that a given bus, target, and LUN always come on line as the same
# device unit.  In earlier versions the unit numbers were assigned
# in the order that the devices were probed on the SCSI bus.  This
# means that if you removed a disk drive, you may have had to rewrite
# your /etc/fstab file, and also that you had to be careful when adding
# a new disk as it may have been probed earlier and moved your device
# configuration around.

# This old behavior is maintained as the default behavior.  The unit
# assignment begins with the first non-wired down unit for a device
# type.  For example, if you wire a disk as "da3" then the first
# non-wired disk will be assigned da4.

# The syntax for wiring down devices is:

# controller	scbus0 at ahc0		# Single bus device
# controller	scbus1 at ahc1 bus 0	# Single bus device
# controller	scbus3 at ahc2 bus 0	# Twin bus device
# controller	scbus2 at ahc2 bus 1	# Twin bus device
# disk 		da0 at scbus0 target 0 unit 0
# disk		da1 at scbus3 target 1
# disk		da2 at scbus2 target 3
# tape		st1 at scbus1 target 6
# device	cd0 at scbus?

# "units" (SCSI logical unit number) that are not specified are
# treated as if specified as LUN 0.

# All SCSI devices allocate as many units as are required.

# The "unknown" device (uk? in pre-2.0.5) is now part of the base SCSI
# configuration and doesn't have to be explicitly configured.

controller	scbus0	#base SCSI code
device		ch0	#SCSI media changers
device		da0	#SCSI direct access devices (aka disks)
device		sa0	#SCSI tapes
device		cd0	#SCSI CD-ROMs
#device		od0	#SCSI optical disk
device		pass0	#CAM passthrough driver

# The previous devices (ch, da, st, cd) are recognized by config.
# config doesn't (and shouldn't) know about these newer ones,
# so we have to specify that they are on a SCSI bus with the "at scbus?"
# clause.

device pt0 at scbus?	# SCSI processor type
device sctarg0 at scbus? # SCSI target

# CAM OPTIONS:
# debugging options:
# -- NOTE --  If you specify one of the bus/target/lun options, you must
#             specify them all!
# CAMDEBUG: When defined enables debugging macros
# CAM_DEBUG_BUS:  Debug the given bus.  Use -1 to debug all busses.
# CAM_DEBUG_TARGET:  Debug the given target.  Use -1 to debug all targets.
# CAM_DEBUG_LUN:  Debug the given lun.  Use -1 to debug all luns.
# CAM_DEBUG_FLAGS:  OR together CAM_DEBUG_INFO, CAM_DEBUG_TRACE and
#                   CAM_DEBUG_SUBTRACE
# 
# CAM_MAX_HIGHPOWER: Maximum number of concurrent high power (start unit) cmds
# SCSI_NO_SENSE_STRINGS: When defined disables sense descriptions
# SCSI_NO_OP_STRINGS: When defined disables opcode descriptions
# SCSI_REPORT_GEOMETRY: Always report disk geometry at boot up instead
#                       of only when booting verbosely.
#options		CAMDEBUG
#options		"CAM_DEBUG_BUS=-1"
#options		"CAM_DEBUG_TARGET=-1"
#options		"CAM_DEBUG_LUN=-1"
#options		"CAM_DEBUG_FLAGS=CAM_DEBUG_INFO|CAM_DEBUG_TRACE|CAM_DEBUG_SUBTRACE"
#options		"CAM_MAX_HIGHPOWER=4"
#options		SCSI_NO_SENSE_STRINGS
#options		SCSI_NO_OP_STRINGS
#options		SCSI_REPORT_GEOMETRY

# Options for the CAM CDROM driver:
# CHANGER_MIN_BUSY_SECONDS: Guaranteed minimum time quantum for a changer LUN
# CHANGER_MAX_BUSY_SECONDS: Maximum time quantum per changer LUN, only
#                           enforced if there is I/O waiting for another LUN
# The compiled in defaults for these variables are 2 and 10 seconds,
# respectively.
#
# These can also be changed on the fly with the following sysctl variables:
# kern.cam.cd.changer.min_busy_seconds
# kern.cam.cd.changer.max_busy_seconds
#
options		"CHANGER_MIN_BUSY_SECONDS=2"
options		"CHANGER_MAX_BUSY_SECONDS=10"

#
# SCSI host adapters: `aha', `aic', `bt', `nca'
#
# adv: Most AdvanSys SCSI controllers
# aha: Adaptec 154x
# ahc: Adaptec 274x/284x/294x
# aic: Adaptec 152x and sound cards using the Adaptec AIC-6360 (slow!)
# bt: Most Buslogic controllers
# nca: ProAudioSpectrum cards using the NCR 5380 or Trantor T130
# uha: UltraStor ULTRA 14F/24F/34F
# sea: Seagate ST01/02 8 bit controller (slow!)
# wds: Western Digital WD7000 controller (no scatter/gather!).
#
# Note that the order is important in order for Buslogic cards to be
# probed correctly.
#

controller	ahc0
controller	ahc1


# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
options		XSERVER			# support for X server
options		FAT_CURSOR		# start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options		PCVT_SCANSET=2		# IBM keyboards are non-std

device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

#
# Laptop support (see LINT for more options)
#
device		apm0    at isa?	disable	flags 0x31 # Advanced Power Management

device		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
#device          si0     at isa? iomem 0xd0000 tty irq 15


device		lpt0	at isa? port? tty irq 7 vector lptintr

device		psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device de0

device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 vector edintr
#
# Autodetect all of the skg16 card
###device sk0 at isa? port? net irq? flags 0x0000 vector skintr
#
# Hardwire all of the skg16 card, flags disable the bootrom detection
#device sk0 at isa? port 0x390 net irq 5 flags 0x0001 iomem 0xcc000 vector skintr

pseudo-device   bpfilter        8       #Berkeley packet filter
pseudo-device	loop
pseudo-device	ether
pseudo-device	sl	1
# iijppp uses tun instead of ppp device
pseudo-device	ppp	1
pseudo-device	tun	2
pseudo-device	pty	64
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	snp	4	#Snoop device - to look at pty/vty/etc..

#####################################################################
# DEBUGGING OPTIONS

#
# Don't drop into DDB for a panic. Intended for unattended operation
# where you may want to drop to DDB from the console, but still want
# the machine to recover from a panic
#
###options		DDB_UNATTENDED

#
# If using GDB remote mode to debug the kernel, there's a non-standard
# extension to the remote protocol that can be used to use the serial
# port as both the debugging port and the system console.  It's non-
# standard and you're on your own if you enable it.  See also the
# "remotechat" variables in the FreeBSD specific version of gdb.
#
###options		GDB_REMOTE_CHAT

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options		KTRACE		#kernel tracing

# This provides support for System V shared memory.
#
options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

# get wine running
options		USER_LDT

# Luigi's snd code
#device pcm0 at isa? port 0x220 tty irq 10 drq 1 flags 0x15 vector pcmintr

controller	snd0
device sb0      at isa? port 0x220 irq 10 drq 1 vector sbintr
device sbxvi0   at isa? drq 5
device sbmidi0  at isa? port 0x330
device opl0     at isa? port 0x388

#
# support for win/tv tuner card
#options		OVERRIDE_CARD=2
#options		OVERRIDE_TUNER=10
device		bktr0
#
# EOF

--T4sUOijqQbZv57TR--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980919094919.A7853>