My salutations to all,

I'm a new user of OpenBSD, so I made sure to strictly stick to
official instructions. I installed 3.7-release on my Athlon box (dmesg
attached below - pretty typical gear), fetched the -stable branch

# cd /usr
# export [EMAIL PROTECTED]:/cvs
# cvs -d$CVSROOT checkout -rOPENBSD_3_7 -P src

rebuilt the GENERIC kernel (accordingly to the instructions found in
FAQ5) and rebooted the machine. Then I decided to rebuild the userland:

# cd /usr/src
# rm -rf ../obj/*
# make obj
...
# export DESTDIR=/
# export CFLAGS='-O3 -mcpu=athlon-xp -march=athlon-xp -mmmx -msse -m3dnow
-mfpmath=sse'
# export CXXFLAGS=$CFLAGS
# cd etc
# make distrib-dirs
...
# cd ..
# make build
...(all seems to go well until...)
===> libcurses++
c++ -O3 -mcpu=athlon-xp -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse
-idirafter //usr/include/g++  -nostdinc -idirafter //usr/include
-c /usr/src/lib/libcurses++/cursesapp.cc -o cursesapp.o
c++ -O3 -mcpu=athlon-xp -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse
-idirafter //usr/include/g++  -nostdinc -idirafter //usr/include
-c /usr/src/lib/libcurses++/cursesf.cc -o cursesf.o
In file included from /usr/src/lib/libcurses++/cursesf.h:39,
                 from /usr/src/lib/libcurses++/cursesf.cc:34:
//usr/include/g++/cursesp.h:182: error: template with C linkage
*** Error code 1

Stop in /usr/src/lib/libcurses++.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src (line 72 of Makefile).

After some unsuccessful attempts to tweak the 'extern "C" {'
blocks all around the filesystem I decided to
skip building libcurses++ by removing the alike-named item
from /usr/src/lib/Makefile. Wiped /usr/obj clean, 'make build' again. Runs
much longer now, but eventually fails with another error elsewhere.
I figure I need to get past libcurses++ in a regular way. Could you please
give me a pointer as to how shall I accomplish that or what do I
keep doing wrong? (Removing the CFLAGS and
CXXFLAGS environment variables makes no difference.)
My thanks and best regards
- Roman Zilka

---------------------------

# pkg_info
ImageMagick-6.0.0-2p4 image processing tools
ORBit2-2.12.0       high-performance CORBA Object Request Broker
Xaw3d-1.5           3D Athena Widget set that looks like Motif
atk-1.8.0           accessibility toolkit used by gtk+
aumix-2.8           full-screen ncurses or GTK-based audio mixer
bash-3.0.16p0       GNU Bourne Again Shell
bzip2-1.0.2         block-sorting file compressor, unencumbered
cdparanoia-3.a9.8   CDDA reading utility with extra data
verification features
cdrtools-2.01       ISO 9660 filesystem and CD creation tools
curl-7.11.2p0       get files from FTP, Gopher, HTTP or HTTPS servers
dvd+rw-tools-5.21.4.10.8 mastering tools for DVD+RW/+R/-R/-RW
esound-0.2.34       sound library for Enlightenment
gconf2-2.8.1p0      configuration database system for GNOME
gettext-0.10.40p2   GNU gettext
ghostscript-7.05p5  GNU PostScript interpreter
ghostscript-fonts-6.0 35 standard PostScript fonts with Adobe name aliases
glib-1.2.10         useful routines for C programming
glib2-2.4.8         general-purpose utility library
gnome-mime-data-2.4.2 MIME and Application database for GNOME
gnome-vfs2-2.8.3p0  GNOME Virtual File System
gqview-1.4.5        Gtk-based graphic file viewer
gtk+-1.2.10p1       General Toolkit for X11 GUI
gtk+2-2.4.14        multi-platform graphical toolkit
gv-3.5.8p4          PostScript and PDF previewer
hicolor-icon-theme-0.5 high-color icon theme shell for GNOME and KDE
jasper-1.701.0      reference implementation of JPEG-2000
jbigkit-1.5         lossless image compression library
joe-2.9.8pre1p1     joe's own editor
jpeg-6b             IJG's JPEG compression utilities
lame-3.96.1         lame ain't an MP3 encoder
lcms-1.12p0         color management library
libIDL-0.8.4        IDL parsing library
libaudiofile-0.2.6  SGI audiofile library clone
libbonobo-2.8.0     GNOME component and compound document system
libiconv-1.9.2      character set conversion library
libogg-1.1.2        Ogg bitstream library
libungif-4.1.0b1    tools and library routines for working with GIF images
libvorbis-1.1.0p0   audio compression codec library
libxml-2.6.16p0     XML parsing library
links+-2.1pre16     graphics and text browser with javascript support
lsof-4.69p0         list information about open files
mc-4.6.1pre1p0      free Norton Commander clone with many useful features
micq-0.5.0.1p0      text-based ICQ implementation
mozilla-1.7.5-gtk2  open source version of the Netscape browser
mplayer-1.0pre6ap0  Movie player supporting MPEG, DivX, AVI, ASF, MOV & more
mutt-1.5.8i         tty-based e-mail client, development version
netpbm-9.24p1       toolkit for converting images between different formats
openmotif-2.1.30.5  Motif toolkit
pango-1.6.0         library for layout and rendering of text
png-1.2.7p1         library for manipulating PNG images
popt-1.7            getopt(3)-like library with a number of enhancements
shared-mime-info-0.15 Shared mime database for desktops
t1lib-5.0.0         Type 1 rasterizer library for UNIX/X11
tiff-3.6.1p4        tools and library routines for working with TIFF images
transfig-3.2.4      tools to convert Xfig's .fig files
unzip-5.51          extract, list & test files in a ZIP archive
vim-6.3.85-gtk      vi clone, many additional features
wget-1.8.2          retrieve files from the 'net via HTTP and FTP
xosd-2.2.12         displays text on your screen
xpdf-3.00p4         PDF viewer for X
zip-2.3p0           create/update ZIP files compatible with PKZip(tm)

---------------------------

# dmesg
OpenBSD 3.7-stable (GENERIC) #0: Fri Aug 26 12:45:51 CEST 2005
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) Processor ("AuthenticAMD" 686-class)
1.29 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,
FXSR,SSE
real mem  = 804823040 (785960K)
avail mem = 727089152 (710048K)
using 4278 buffers containing 40345600 bytes (39400K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 09/27/02, BIOS32 rev. 0 @ 0xfdad0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf8070/192 (10 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x1106 product 0x3177
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8377 PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8235 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon 7500 QW" rev 0x00
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
rl0 at pci0 dev 7 function 0 "Realtek 8139" rev 0x10: irq 10 address
00:08:a1:2a:a
b:c3
rlphy0 at rl0 phy 0: RTL internal phy
adv0 at pci0 dev 11 function 0 "Advansys ABP-930/40UA" rev 0x03: irq 10
scsibus0 at adv0: 7 targets
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 12
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: single transaction translator
uhub3: 6 ports with 6 removable, self powered
pcib0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
channel 0 c
onfigured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <ST380021A>
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <ASUS,
DRW-1604P, 1.09> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 10
ac97: codec id 0x414c4720 (Avance Logic ALC650)
ac97: codec features 20 bit DAC, 18 bit ADC, Realtek 3D
audio0 at auvia0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0
(mux 1 ignored for console): console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff65 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
uhidev0 at uhub1 port 2 configuration 1 interface 0
uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0

Reply via email to