> dear all, > > after trying to get along on my own for a while, i finally go so > disapointed > and unsatisfied and decided that i need help. i always ran into the same > problem, so there must be something wrong about my procedure how i build > kernel AND userland. > > i got the final release of openbsd 3.7 on may 21 by ftp. burned it on a cd > and made a fresh installation. > after the system was up an running, i got ports and sources via cvs by > doing > the follwing : > > # cd /usr > # cvs -q get -rOPENBSD_3_7 -P src > > and > > # cd /usr > # cvs -q get -rOPENBSD_3_7 -P ports > > then i made a custom kernel by copying the GENERIC conf file to a file > named > myGENERIC and did a bit customizing. to build the kernel i followed the > steps described on the official openbsd.org site > (http://www.openbsd.org/faq/faq5.html) > > # cd /usr/src/sys/arch/i386/conf > # config myGENERIC > # cd ../compile/myGENERIC > # make clean && make depend && make > > instead of "make install" i first made a backup of the existing kernel (# > cp > /bsd /bsd.old) and then copied the new one over the existing (# cp bsd > /bsd) > > after a reboot, i checked dmesg and everything "seemd" to work perfectly. > > then, i went through the steps of building the userland. > > # rm -rf /usr/obj/* > # cd /usr/src > # make obj > # cd /usr/src/etc && env DESTDIR=/ make distrib-dirs > # cd /usr/src > # make build > > and that's the point where it ALWAYS stops with exactly the same error > message!! > i tried it with openbsd version 3.5, version 3.6 and version 3.7. i always > run into the same error :-( > > <OUTPUT> > cc -fstack-protector -DPTHREAD_KERNEL -D_POSIX_THREADS -D_THREAD_SAFE > -Wall > -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wsign-compare -I/usr/src/lib/libpthread/uthread > -I/usr/src/lib/libpthread/include > -I/usr/src/lib/libpthread/../libc/include > -D_LOCK_DEBUG -D_PTHREADS_INVARIANTS -I/usr/src/lib/libpthread/arch/i386 > -c /usr/src/lib/libpthread/arch/i386/_atomic_lock.c -o _atomic_lock.o > /usr/src/lib/libpthread/arch/i386/_atomic_lock.c: In function > `_atomic_lock': > /usr/src/lib/libpthread/arch/i386/_atomic_lock.c:22: inconsistent operand > constraints in an `asm' > *** Error code 1 > > Stop in /usr/src/lib/libpthread. > *** Error code 1 > > Stop in /usr/src/lib. > *** Error code 1 > > Stop in /usr/src (line 72 of Makefile). > [EMAIL PROTECTED]:/usr/src]$ > </OUTPUT> > > can someone please tell me what i'm doing wrong? > is there a way to get the sytem back into a "clean" state without doing a > fresh install? > > greetingz > thomas
Well... Let me show you how I would do it...... Reinstall OpenBSD 3.7 from the CD. Download the SRC and the ports from a Server and burn it at a CD or store it local at e.g. a FTP: ftp://ftp.openbsd.org/pub/OpenBSD/3.7/ports.tar.gz ftp://ftp.openbsd.org/pub/OpenBSD/3.7/src.tar.gz ftp://ftp.openbsd.org/pub/OpenBSD/3.7/sys.tar.gz ftp://ftp.openbsd.org/pub/OpenBSD/3.7/XF4.tar.gz If you installed OpenBSD just execute some scripts (e.g. as r00t): E.g. I used CD-ROM (but hey I used a CD-Set (Thanks to WIM! =)) as Src.. But because you've to download these files you've 1 more archiv (sys.tar.gz) --placefiles.ksh-- #!/bin/ksh # # Why don't they use Bzip2 or Gratis-ZIP with RZIP-Like functionality... # It would safe so much download-time and traffic... # cd /mnt/cdrom cp ports.tar.gz /usr cp XF4.tar.gz /usr cp src.tar.gz /usr cp sys.tar.gz /usr/src cd /usr tar xfz ports.tar.gz && rm ports.tar.gz tar xfz XF4.tar.gz && rm XF4.tar.gz tar xfz src.tar.gz && rm src.tar.gz cd /usr/src/ tar xvz sys.tar.gz && rm sys.tar.gz -------------- After that you should create a Script wich fetchs the updates via AnonCVS (e.g. the Port-Updates wich are avaiable). --update.ksh-- #!/bin/ksh cd /usr export [EMAIL PROTECTED]:/cvs cvs -q -z5 update -rOPENBSD_3_7 ports cvs -q -z5 update -rOPENBSD_3_7 src -------------- You can include that into a Cronjob. Just play a littlebit with that idea. Now you've the updated src/ports... Hurai! --kernel.ksh-- #!/bin/ksh kernel="GENERIC" arch="i386" cd /usr/src/sys/arch/$arch/conf config $kernel cd ../compile/$kernel make clean && make depend && make cp /bsd /bsd.old cp bsd /bsd reboot -------------- --userland.ksh-- #!/bin/ksh cd /usr/src rm -rf /usr/obj/* make obj make build -------------- You should have no problems... Kind regards, Sebastian

