Below you will find pages that utilize the taxonomy term “FreeBSD”
在 Wildfly 10 上安装 EJBCA
很久没有更新博客了… 🙁
最近整理了下Linode,把web和mail合并成一台机器了。然后重做了系统,换成了FreeBSD 10.2。因为我准备在moonclaw下开邮件,网站等几个服务,因此需要处理一下CA和统一认证的问题。统一认证目前想用OpenLDAP存储所有的用户数据。证书的话,貌似能拿来用的也就只有EJBCA了。
EJBCA更新很慢,而且官方支持还停留在n年前的JBoss AS 7.1.1。同时,JBoss AS 7.1.1在FreeBSD 10上不能正常运行,提示starting后就不再动了,同时java进程的CPU占用一直在100%。
使用Wildfly 10的话,官网上的文档只有 Wildfly 8和9,并且似乎照着做只会得到一大堆错误。
折腾了两天的结果是,先安装依赖
<br></br>pkg install apache-ant<br></br>pkg install mysql-connector-java<br></br>
然后下载wildfly 10,配置MySQL connector
<br></br>cd modules<br></br>mkdir -p com/mysql/jdbc/main<br></br>cd com/mysql/jdbc/main<br></br>ln -s /usr/local/share/java/classes/mysql-connector-java.jar ./<br></br>ee module.xml<br></br>
<br></br><module name="com.mysql.jdbc"><br></br> <resources><br></br> <resource-root path="mysql-connector-java.jar"></resource-root><br></br> </resources><br></br> <dependencies><br></br> <module name="javax.api"></module><br></br> <module name="javax.transaction.api"></module><br></br> </dependencies><br></br></module><br></br>
在 standalone/configuration/standalone.xml 的 subsystem/datasources/drivers 节中加入
<br></br><driver module="com.mysql.jdbc" name="mysql"></driver><br></br>
完成后给wildfly打补丁(wildfly-9.0.1_standalone.patch)。其中第一处会提示失败,手动打上即可。
同时,给EJBCA打补丁(ejbca_ce-6.3.1.1_wildfly-8.2.1.patch 和 ejbca_ce-6.3.1.1_wildfly-8.2.1_to_9.0.1.patch)。两个都要打,并且注意顺序。
完成后,正常
<br></br>ant deploy<br></br>ant install<br></br>
即可
如果 ant install 在ManagementCA添加完成后,配置web服务器的时候出错,那么需要删除 standalone/configuration/standalone.xml中提示的重复内容。同时,执行 ant deploy-keystore (两次,第一次失败,第二次成功)。最后,再执行 ant web-configure 。
FreeBSD 9 架设 NFS Server
好久没碰FreeBSD了……
今天需要在我的FreeBSD 9虚拟机和实体机(Win8)之间共享点文件。考虑到Win 8/2012已经支持NFS Client了,所以也没必要在FreeBSD上安装什么samba。在配置FreeBSD的NFS Server过程中,发现它和Linux的区别还真不小……
首先, NFS 是属于 base system 的,不需要安装,直接在 /etc/rc.conf 里写入 nfs_server_enable=”YES” 即可启用。同时,其 /etc/exports 文件默认不存在,需要自己建立。
另外, FreeBSD 的 exports 文件的配置语法与 Linux 完全不同。
在 Linux 下,我们可以这样写:
/home *(rw,no_root_squash)
FreeBSD 下会直接报语法错误。
正确的写法是:
/home -rw -alldirs -mapall=1001 -network=192.168.1 -mask 255.255.255.0
第一段指定了需要 export 的目录。这个目录可以有多个。 -rw 表示读写, -alldirs 表示任意一个子目录均可以被 mount ,这在 Linux 下是默认行为。 -mapall=UID 表示 mount 这个目录的所有操作都视为 UID 这个用户进行的。 -network 和 -mask 表示允许 mount 的计算机。注意, -network 不是 192.168.1.0 。
但这样写是没办法 mount 成功的, FreeBSD 日志里会写 Mount request Denied 。这是因为 FreeBSD 的 NFS 默认不允许 symbolic link 到非 export 目录,而 /home 其实是 symbolic link 到 /usr/home 的。所以只需要把 export 路径改为 /usr/home 即可。
FreeRadius2 简单配置
终于架设好 FreeRadius2.1.7 + MySQL5 的机器啦!
简单记录如下:
1. 用FreeBSD自带的port安装net/FreeRadius2,记得编译mysql组件。注意,在此之前,需要安装net-mgnt/net-snmp。否则在安装freeradius的时候会有warnning说Simutaenous-Use不可用。
2. 按照配置文件中的注释,配置如下文件:
/usr/local/etc/raddb/radiusd.conf
/usr/local/etc/raddb/clietns.conf
/usr/local/etc/raddb/sql.conf
3. 在 MySQL 中创建FreeRadius的用户并导入数据表。
4. 修改完配置文件开启mysql后,文本认证就无效了,必须要使用SQL认证。
5. 在 MySQL 的 radcheck 表中添加记录,username随便写,attribute写 Cleartext-Password,value是密码,op为 := 。
在 radusergroup 表中添加记录, username为刚才的用户名,groupname随便写。
在 radgroupreply 表中添加记录,groupname为刚才写的组名,attribute,op,value就是需要响应的内容了。比如我的就写:
Service-Type := Authenticate-Only
WB-Downstream-Bandwidth := 100
WB-Lagency := 10
(后面两个是我自己定义的 Vendor Attribute)
6. 打开 /usr/local/etc/raddb/dictionary 文件,在末尾添加一行:
$INCLUDE /usr/local/share/freeradius/dictionary.whitebear
(其实路径是可以随意的……)
7. 编辑 /usr/local/share/freeradius/dictionary.whitebear 文件,写入:
VENDOR Whitebear 20000<br></br>BEGIN-VENDOR Whitebear
ATTRIBUTE WB-Upstream-Bandwidth 1 integer
ATTRIBUTE WB-Downstream-Bandwidth 2 integer
ATTRIBUTE WB-Fixed-IP-Address 3 ipaddr
ATTRIBUTE WB-Lagency 4 integer
FreeBSD 8.0-REALEASE 架设无线AP纪要
环境:
无线网卡芯片组:AR5005G,制造商 0x168c,设备ID 0x001a。
操作系统:FreeBSD 8.0-RELEASE。
遇到的问题是,不仅按照网上搜索到的第三方教程无法把网卡配置成hostap模式,就连官方Handbook(英文版)中的写法都不行。首先,系统GENERIC内核会自动加载这个网卡的驱动,不需要手动加载ath或wlan等内核模块,也不需要改 loader.conf 或 rc.conf 。进入系统后,执行 ifconfig 就应该可以看到网卡物理设备ath0。
此时若是执行 ifconfig ath0 ssid XXX 或其它配置命令,均会收到错误,就连 list caps 都不可以。这是因为8.0更改了对无线网卡的处理方式,必须要先建立一个逻辑设备,然后对逻辑设备进行配置。官方 Handbook 上面写的方法是:
ifconfig wlan0 create wlandev ath0
ifconfig wlan0 mode 11g mediaopt hostap inet 192.168.0.1 netmask 255.255.255.0
但这样其实是不可以的。至少我一直收到
ifconfig: inet: bad value
。正确的配置方法应该是在创建逻辑设备的时候就为其配置hostap属性:
ifconfig wlan0 create wlandev ath0 wlanmode hostap
以后再对 wlan0 进行其它参数的配置就不会再出现错误了。
FreeBSD 8-RELEASE 发布!
终于…FreeBSD 8-RELEASE发布了…
随之而来的,是期盼已久的nvidia-driver for freebsd amd64,也就是说,我终于可以用上64位版的freebsd了…暂时还没有打算安装。准备等到寒假时候买两块硬盘再装。到时候,80G的给BSD,新硬盘一块给Win2008R2,一块给Mac OS X SnowLeopard。寒假的时候把我现在的ASUS M4N78 Pro和AMD Phenom II *3 720卖掉,换成Intel Core 2 Duo加上一个技嘉的nForce芯片组的板子,这样我的机器就成为iMac Huge了,haha
新的nv驱动安装很简单,直接port装nvidia-driver就ok。同时,折腾已久的firefox3的flash插件也可以运作了!按照官方手册,安装过程如下:
1.安装 linux_base-f10
2.安装 nspluginwrapper
3.安装 linux-f10-flashplugin10
4. mount linprocfs linprocfs /compat/linux/proc (据说是必须的)
5. nspluginwrapper -v -i -a
这就ok了….
若是想用qq for linux,那么需要装
linux-f10-expat
linux-f10-gtk2
完整列表如下:
[bear@bear-freebsd /usr/home/bear]$ pkg_info |grep linux
linux-dri-7.4_1 Mesa-based DRI libraries, drivers and binaries (Linux Ubunt
linux-f10-alsa-lib-1.0.21_1 The Advanced Linux Sound Architecture libraries (Linux Fedo
linux-f10-atk-1.24.0 Accessibility Toolkit, Linux/i386 binary (Linux Fedora 10)
linux-f10-cairo-1.8.0 Vector graphics library Cairo (Linux Fedora 10)
linux-f10-curl-7.19.6 The command line tool for transferring files with URL synta
linux-f10-cyrus-sasl2-2.1.22 RFC 2222 SASL (Simple Authentication and Security Layer) (L
linux-f10-expat-2.0.1 Linux/i386 binary port of Expat XML-parsing library (Linux
linux-f10-flashplugin-10.0r42 Adobe Flash Player NPAPI Plugin
linux-f10-fontconfig-2.6.0 An XML-based font configuration API for X Windows (Linux Fe
linux-f10-gtk2-2.14.7 GTK+ library, version 2.X (Linux Fedora 10)
linux-f10-hicolor-icon-theme-0.5 A high-color icon theme shell from the FreeDesktop project
linux-f10-jpeg-6b RPM of the JPEG lib (Linux Fedora 10)
linux-f10-libsigc++20-2.2.2 Callback Framework for C++ (Linux Fedora 10)
linux-f10-libssh2-0.18 The library implementing the SSH2 protocol (Linux Fedora 10
linux-f10-nspr-4.7.6 Netscape Portable Runtime (Linux Fedora 10)
linux-f10-nss-3.12.2.0 Network Security Services (Linux Fedora 10)
linux-f10-openldap-2.4.12_1 Lightweight Directory Access Protocol libraries (Linux Fedo
linux-f10-openssl-0.9.8g The OpenSSL toolkit (Linux Fedora 10)
linux-f10-pango-1.22.3 The pango library (Linux Fedora 10)
linux-f10-png-1.2.37 RPM of the PNG lib (Linux Fedora 10)
linux-f10-sqlite3-3.5.9_1 The library that implements an embeddable SQL database engi
linux-f10-tiff-3.8.2 The TIFF library, Linux/i386 binary (Linux Fedora 10)
linux-f10-xorg-libs-7.4_1 Xorg libraries (Linux Fedora 10)
linux-realplayer-10.0.9.809.20070726 Linux RealPlayer 10 from RealNetworks
linux_base-f10-10_2 Base set of packages needed in Linux mode for i386/amd64 (L
[bear@bear-freebsd /usr/home/bear]$
FreeBSD with port-installed gnome2
上周装了最新的FreeBSD 8-RC3。安装时遇到一些问题,现在记下来以备忘
1. 声卡。ASUS M4N78 Pro的声卡需要加载snd_hda。故需修改/boot/loader.conf加入
snd_hda_load=”YES”
2.X。安装X的方法是:
whereis xorg-minimal
make install
这样可以只装一个最小的X。编译X基本1h可以ok。
3.GNOME2。装gnome2时需要装以下组件:
gnome-session
gnome-control-center
gnome-panel
gconf-editor
gcin
cups是可选的。现在不装,以后装wine时还是必须装…
在/etc/rc.conf中加入
gnome_enable=”YES”
以启动gnome需要的守护进程。
4.显卡驱动。在装nv驱动之前,记得装mesa-demos,否则是没有glxinfo的。先装X的话会导致mesa-demos装不上。
5.linux二进制兼容模式。装上
linux-dri-7.4_1 Mesa-based DRI libraries, drivers and binaries (Linux Ubunt
linux-f10-alsa-lib-1.0.21 The Advanced Linux Sound Architecture libraries (Linux Fedo
linux-f10-atk-1.24.0 Accessibility Toolkit, Linux/i386 binary (Linux Fedora 10)
linux-f10-cairo-1.8.0 Vector graphics library Cairo (Linux Fedora 10)
linux-f10-dbus-glib-0.76 GLib bindings for D-Bus (Linux Fedora 10)
linux-f10-dbus-libs-1.2.4 Libraries for accessing D-BUS (Linux Fedora 10)
linux-f10-expat-2.0.1 Linux/i386 binary port of Expat XML-parsing library (Linux
linux-f10-fontconfig-2.6.0 An XML-based font configuration API for X Windows (Linux Fe
linux-f10-gtk2-2.14.7 GTK+ library, version 2.X (Linux Fedora 10)
linux-f10-jpeg-6b RPM of the JPEG lib (Linux Fedora 10)
linux-f10-libsigc++20-2.2.2 Callback Framework for C++ (Linux Fedora 10)
linux-f10-openssl-0.9.8g The OpenSSL toolkit (Linux Fedora 10)
linux-f10-pango-1.22.3 The pango library (Linux Fedora 10)
linux-f10-png-1.2.37 RPM of the PNG lib (Linux Fedora 10)
linux-f10-tiff-3.8.2 The TIFF library, Linux/i386 binary (Linux Fedora 10)
linux-f10-xorg-libs-7.4_1 Xorg libraries (Linux Fedora 10)
linux_base-f10-10_2
就可以上qq了…firefox,skype都可以了…
中文问题可以通过以root执行
/compat/linux/usr/bin/localedef -i zh_CN -f UTF-8 zh_CN
来解决。
6.NTFS。ntfs-3g可以用,但是编译时需要userland的src,仅有内核src是不行的。我把sysinstall – distrubutions 中 src 全选了才可以的…
ntfs-3g似乎不稳定。wine ntfs-3g中的wow会导致X挂掉。键盘无响应,鼠标指针消失。其实内核自带的ntfs就可以写…
mount -t ntfs /dev/ad4s2 /mnt -o rw
即可,或者省略-o也行用默认ro模式挂载ntfs分驱会导致wow无法运行…
7.hal。若是要用hal自动挂载分驱,按手册上说需要修改/usr/local/etc/PolicyKit/PolicyKit.conf,在中间加入
FreeBSD 7.1 PPPoE拨号上网指南
首先记录下网卡名称,如rl0。当然还需要ADSL用户名和密码。
ee /etc/ppp/ppp.conf
default节不要动,在最下面添加一个节,比如 ChinaTelecom
节设置输入如下内容(注意,这个文件对行首空格或tab是敏感的,每个节的内容需要在行首加上空格或tab):
set device /dev/net/rl0
set authname 用户名
set authkey 密码
set dial
set login
add default HISADDR
完成后保存,以root执行
ppp -ddial 节名称
如
ppp -ddial ChinaTelecom
完成后执行ifconfig,应该可以看到tun0中已经显示动态IP地址了。
DNS需要手动设置,在/etc/rc.conf中加入
nameserver 61.147.37.1
最多三个。
FreeBSD 7.1 下的 FlashPlayer9 安装方法
1.安装linux_base-f8
2.安装FireFox 3.0以上版本(2.x似乎不可以。反正我没搞定)
3.
<samp class="PROMPT">#</samp> <kbd class="USERINPUT">cd /usr/ports/www/nspluginwrappe</kbd>
<samp class="PROMPT">#</samp> <kbd class="USERINPUT">make install clean</kbd>
4.
<samp class="PROMPT">#</samp> <kbd class="USERINPUT"></kbd>cd /usr/ports/www/linux-flashplugin9
<samp class="PROMPT">#</samp> <kbd class="USERINPUT"></kbd>make install
在下载完后Ctrl-C打断。
5.
<samp class="PROMPT">#</samp> <kbd class="USERINPUT"></kbd>cp /usr/ports/distfiles/flashplugin/9.0r152/install_flash_player_9_linux.tar.gz /home/bear/
<samp class="PROMPT">#</samp> su bear
$ cd ~
<kbd class="USERINPUT">$ tar xvf </kbd>install_flash_player_9_linux.tar.gz
$ makedir <kbd class="USERINPUT">~/.mozilla/plugins</kbd>
$ cp ./install_flash_player_9_linux/<kbd class="USERINPUT">libflashplayer.so ~/.mozilla/plugins</kbd>/
<samp class="PROMPT">$</samp> <kbd class="USERINPUT">nspluginwrapper -v -a -i</kbd>
<samp class="PROMPT">$</samp> <kbd class="USERINPUT">nspluginwrapper -l</kbd>
6.启动Firefox即可
P.S.:理论上应该没问题,但是我没成功。.FireFox3.0里面始终不显示nspluginwrapper,但是显示FlashPlayer 9.0 r152.....进入Firefox的时候,控制台报错说找不到libdl.so.2。很郁闷
FreeBSD 7.1 RC1 下php环境架设方法
这篇文章讲的是如何搭建开发环境,不是服务器环境。如果你希望架设服务器,那么请用port安装。
1.去mysql.org下载mysql5.1.13的源码包。注意,不要下载for FreeBSD 6.1等其它版本的包。一定要和FreeBSD版本完全一致。否则会导致后面的失败。
2. tar xvf mysql-XXXXX
./configure –prefix=/home/bear/work/mysql5/
make
make install
编译大概需要15分钟左右。我的破机子花了20min。
3.常规方法编译apache2,下载源码包,
./configure –prefix=/home/bear/work/apache2
make
make install
4.编译php5
下载源码,执行
./configure –prefix=/home/bear/work/php5 –with-apxs2=/home/bear/work/apache2/bin/apxs –with-mysql=/home/bear/work/mysql5/
注意,如果你没有使用和FreeBSD版本相同的mysql的话,此处会报错的…
make
make install
5.进入mysql5安装目录,执行在scripts(可能记错了)下的install_db
6.执行./bin/mysqld_safe&启动mysql守护进程(无需root权限)
7.进入apache2安装目录,修改httpd.conf中的User和Group为你的用户名(如bear)。这样可以免去权限设置的麻烦。
同时按照php的README文件所述,加上php的文件类型。
8.执行./bin/apachectl start启动apache 守护进程(必须root权限)
9.一切ok
FreeBSD安装linux_dist之注意事项
用不用port安装linux_dist-gentoo-stage3其实都无所谓。都只是从gentoo官网下载了stage3-i686.tar.gz包解压缩下来而已…自己装的话只要把这个包加压到任意目录就可以了。
装完后,记得用root用户执行一次
chroot /usr/local/gentoo-stage3 /usr/portages/scripts/bootstrap.sh
当然,要在emerge -sync之后…否则是没这个文件的。
这个文件会把很多东西编译一遍,很慢很慢。我指的是编译很慢,下载还是很快的。
到第8步,它会把gcc4.1编译出来…然后会报错,至少我没成功。但是这样就可以了。以后执行
chroot /usr/local/gentoo-stage3 bash
就不会报错了。否则肯定要报错的。
呃…..在做这一切之前,一定要先这样…:
ee /etc/fstab
加入
devfs /usr/local/gentoo-stage3/dev devfs rw,noauto 0 0
linprocfs /usr/local/gentoo-stage3/dev linprocfs rw,noauto 0 0
否则什么都做不了…
FreeBSD挂载光盘镜像
mdconfig -a -t vnode -f XXX.iso -u 1
mount -t cd9660 /dev/md1 /cdrom
FreeBSD7安装 mysql5
下载下来,tar xvf之。
./scripts/mysql_install_db
./bin/mysqld_safe
一切ok
freebsd-update 不错
今日发现一个好工具,freebsd-update,系统自带的,可以方便的升级基本系统。它直接下载二进制文件而无需像cvsup那样需要编译,确实很方便。
升级当前版本的操作系统到最新版的命令是
freebsd-update fetch install
更新到其它发行版,比如7.0-RELEASE的方法是
freebsd-update upgrade -r 版本
如
freebsd-update upgrade -r 7.0-RELEASE
但是开发中的版本不可以…
xsp无法编译
很奇怪,mono2编译失败,xsp依然失败。
我试图编译mono2.0.1,因为那家伙没有FreeBSD的版本。源码解包后,./configure没有任何问题,但是在make的时候却报了莫名其妙的错误。gmake check 输出如下:
asing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT threads.lo -MD -MP -MF .deps/threads.Tpo -c -o threads.lo threads.c
threads.c: In function ‘mono_thread_get_stack_bounds’:
threads.c:771: warning: implicit declaration of function ‘pthread_attr_get_np’
threads.c:771: warning: nested extern declaration of ‘pthread_attr_get_np’
threads.c: In function ‘signal_thread_state_change’:
threads.c:2037: warning: passing argument 1 of ‘pthread_kill’ makes pointer from integer without a cast
threads.c: In function ‘try_free_delayed_free_item’:
threads.c:422: warning: ‘item.free_func’ may be used uninitialized in this function
mv -f .deps/threads.Tpo .deps/threads.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT threadpool.lo -MD -MP -MF .deps/threadpool.Tpo -c -o threadpool.lo threadpool.c
mv -f .deps/threadpool.Tpo .deps/threadpool.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT file-io.lo -MD -MP -MF .deps/file-io.Tpo -c -o file-io.lo file-io.c
mv -f .deps/file-io.Tpo .deps/file-io.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT socket-io.lo -MD -MP -MF .deps/socket-io.Tpo -c -o socket-io.lo socket-io.c
mv -f .deps/socket-io.Tpo .deps/socket-io.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT exception.lo -MD -MP -MF .deps/exception.Tpo -c -o exception.lo exception.c
mv -f .deps/exception.Tpo .deps/exception.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT appdomain.lo -MD -MP -MF .deps/appdomain.Tpo -c -o appdomain.lo appdomain.c
mv -f .deps/appdomain.Tpo .deps/appdomain.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT debug-mono-symfile.lo -MD -MP -MF .deps/debug-mono-symfile.Tpo -c -o debug-mono-symfile.lo debug-mono-symfile.c
mv -f .deps/debug-mono-symfile.Tpo .deps/debug-mono-symfile.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT mono-debug.lo -MD -MP -MF .deps/mono-debug.Tpo -c -o mono-debug.lo mono-debug.c
mv -f .deps/mono-debug.Tpo .deps/mono-debug.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT mono-debug-debugger.lo -MD -MP -MF .deps/mono-debug-debugger.Tpo -c -o mono-debug-debugger.lo mono-debug-debugger.c
mono-debug-debugger.c: In function ‘mono_debugger_check_breakpoints’:
mono-debug-debugger.c:282: warning: unused variable ‘klass’
mv -f .deps/mono-debug-debugger.Tpo .deps/mono-debug-debugger.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT profiler.lo -MD -MP -MF .deps/profiler.Tpo -c -o profiler.lo profiler.c
profiler.c:1314: warning: ‘try_addr2line’ defined but not used
mv -f .deps/profiler.Tpo .deps/profiler.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT rand.lo -MD -MP -MF .deps/rand.Tpo -c -o rand.lo rand.c
rand.c: In function ‘get_entropy_from_server’:
rand.c:44: warning: implicit declaration of function ‘strncpy’
rand.c:44: warning: incompatible implicit declaration of built-in function ‘strncpy’
rand.c: In function ‘ves_icall_System_Security_Cryptography_RNGCryptoServiceProvider_RngGetBytes’:
rand.c:250: warning: implicit declaration of function ‘strerror’
rand.c:250: warning: nested extern declaration of ‘strerror’
rand.c:250: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
mv -f .deps/rand.Tpo .deps/rand.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT security.lo -MD -MP -MF .deps/security.Tpo -c -o security.lo security.c
mv -f .deps/security.Tpo .deps/security.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT security-core-clr.lo -MD -MP -MF .deps/security-core-clr.Tpo -c -o security-core-clr.lo security-core-clr.c
mv -f .deps/security-core-clr.Tpo .deps/security-core-clr.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT string-icalls.lo -MD -MP -MF .deps/string-icalls.Tpo -c -o string-icalls.lo string-icalls.c
mv -f .deps/string-icalls.Tpo .deps/string-icalls.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT sysmath.lo -MD -MP -MF .deps/sysmath.Tpo -c -o sysmath.lo sysmath.c
mv -f .deps/sysmath.Tpo .deps/sysmath.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT process.lo -MD -MP -MF .deps/process.Tpo -c -o process.lo process.c
mv -f .deps/process.Tpo .deps/process.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT environment.lo -MD -MP -MF .deps/environment.Tpo -c -o environment.lo environment.c
mv -f .deps/environment.Tpo .deps/environment.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT locales.lo -MD -MP -MF .deps/locales.Tpo -c -o locales.lo locales.c
mv -f .deps/locales.Tpo .deps/locales.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT filewatcher.lo -MD -MP -MF .deps/filewatcher.Tpo -c -o filewatcher.lo filewatcher.c
mv -f .deps/filewatcher.Tpo .deps/filewatcher.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT security-manager.lo -MD -MP -MF .deps/security-manager.Tpo -c -o security-manager.lo security-manager.c
mv -f .deps/security-manager.Tpo .deps/security-manager.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT console-io.lo -MD -MP -MF .deps/console-io.Tpo -c -o console-io.lo console-io.c
console-io.c:284: warning: function declaration isn’t a prototype
console-io.c:309: warning: function declaration isn’t a prototype
mv -f .deps/console-io.Tpo .deps/console-io.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT assembly.lo -MD -MP -MF .deps/assembly.Tpo -c -o assembly.lo assembly.c
mv -f .deps/assembly.Tpo .deps/assembly.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT coree.lo -MD -MP -MF .deps/coree.Tpo -c -o coree.lo coree.c
mv -f .deps/coree.Tpo .deps/coree.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT domain.lo -MD -MP -MF .deps/domain.Tpo -c -o domain.lo domain.c
mv -f .deps/domain.Tpo .deps/domain.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT opcodes.lo -MD -MP -MF .deps/opcodes.Tpo -c -o opcodes.lo opcodes.c
mv -f .deps/opcodes.Tpo .deps/opcodes.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT image.lo -MD -MP -MF .deps/image.Tpo -c -o image.lo image.c
mv -f .deps/image.Tpo .deps/image.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT metadata.lo -MD -MP -MF .deps/metadata.Tpo -c -o metadata.lo metadata.c
mv -f .deps/metadata.Tpo .deps/metadata.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT verify.lo -MD -MP -MF .deps/verify.Tpo -c -o verify.lo verify.c
mv -f .deps/verify.Tpo .deps/verify.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT mono-endian.lo -MD -MP -MF .deps/mono-endian.Tpo -c -o mono-endian.lo mono-endian.c
mv -f .deps/mono-endian.Tpo .deps/mono-endian.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT mono-config.lo -MD -MP -MF .deps/mono-config.Tpo -c -o mono-config.lo mono-config.c
mv -f .deps/mono-config.Tpo .deps/mono-config.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT rawbuffer.lo -MD -MP -MF .deps/rawbuffer.Tpo -c -o rawbuffer.lo rawbuffer.c
mv -f .deps/rawbuffer.Tpo .deps/rawbuffer.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT loader.lo -MD -MP -MF .deps/loader.Tpo -c -o loader.lo loader.c
mv -f .deps/loader.Tpo .deps/loader.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT class.lo -MD -MP -MF .deps/class.Tpo -c -o class.lo class.c
mv -f .deps/class.Tpo .deps/class.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT mempool.lo -MD -MP -MF .deps/mempool.Tpo -c -o mempool.lo mempool.c
mv -f .deps/mempool.Tpo .deps/mempool.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT mono-perfcounters.lo -MD -MP -MF .deps/mono-perfcounters.Tpo -c -o mono-perfcounters.lo mono-perfcounters.c
mv -f .deps/mono-perfcounters.Tpo .deps/mono-perfcounters.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT debug-helpers.lo -MD -MP -MF .deps/debug-helpers.Tpo -c -o debug-helpers.lo debug-helpers.c
mv -f .deps/debug-helpers.Tpo .deps/debug-helpers.Plo
../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT generic-sharing.lo -MD -MP -MF .deps/generic-sharing.Tpo -c -o generic-sharing.lo generic-sharing.c
mv -f .deps/generic-sharing.Tpo .deps/generic-sharing.Plo
../../doltlibtool –quiet –tag=CC –mode=link gcc -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -o libmonoruntime.la reflection.lo object.lo icall.lo decimal.lo boehm-gc.lo null-gc.lo sgen-gc.lo gc.lo method-builder.lo marshal.lo mono-mlist.lo monitor.lo threads.lo threadpool.lo file-io.lo socket-io.lo exception.lo appdomain.lo debug-mono-symfile.lo mono-debug.lo mono-debug-debugger.lo profiler.lo rand.lo security.lo security-core-clr.lo string-icalls.lo sysmath.lo process.lo environment.lo locales.lo filewatcher.lo security-manager.lo console-io.lo assembly.lo coree.lo domain.lo opcodes.lo image.lo metadata.lo verify.lo mono-endian.lo mono-config.lo rawbuffer.lo loader.lo class.lo mempool.lo mono-perfcounters.lo debug-helpers.lo generic-sharing.lo -lpthread -lm
../../doltlibtool –quiet –tag=CC –mode=link gcc -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -static -o libmonoruntime-static.la reflection.lo object.lo icall.lo decimal.lo boehm-gc.lo null-gc.lo sgen-gc.lo gc.lo method-builder.lo marshal.lo mono-mlist.lo monitor.lo threads.lo threadpool.lo file-io.lo socket-io.lo exception.lo appdomain.lo debug-mono-symfile.lo mono-debug.lo mono-debug-debugger.lo profiler.lo rand.lo security.lo security-core-clr.lo string-icalls.lo sysmath.lo process.lo environment.lo locales.lo filewatcher.lo security-manager.lo console-io.lo assembly.lo coree.lo domain.lo opcodes.lo image.lo metadata.lo verify.lo mono-endian.lo mono-config.lo rawbuffer.lo loader.lo class.lo mempool.lo mono-perfcounters.lo debug-helpers.lo generic-sharing.lo -lpthread -lm
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DMONO_BINDIR=\”/usr/local/bin/\” -DMONO_ASSEMBLIES=\”/usr/local/lib\” -DMONO_CFG_DIR=\”/usr/local/etc\” -DUSE_COMPILER_TLS -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT pedump.o -MD -MP -MF .deps/pedump.Tpo -c -o pedump.o pedump.c
mv -f .deps/pedump.Tpo .deps/pedump.Po
../../doltlibtool –quiet –tag=CC –mode=link gcc -g -O2 -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -o pedump pedump.o libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la ../../libgc/libmonogc.la -pthread -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -liconv -lm -lpthread -lm
./.libs/libmonoruntime.a(reflection.o)(.text+0xed41): In function create\_dynamic\_mono\_image’: /usr/home/bear/Download/mono-2.0.1/mono/metadata/reflection.c:4578: undefined reference to GC_local_malloc’
./.libs/libmonoruntime.a(reflection.o)(.text+0xfb88): In function mono\_image\_basic\_init’: /usr/home/bear/Download/mono-2.0.1/mono/metadata/reflection.c:4742: undefined reference to GC_local_malloc’
./.libs/libmonoruntime.a(object.o)(.text+0x15d3): In function mono\_object\_new\_ptrfree\_box’: /usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3404: undefined reference to GC_local_malloc_atomic’
./.libs/libmonoruntime.a(object.o)(.text+0x1610): In function mono\_object\_new\_ptrfree’: /usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3380: undefined reference to GC_local_malloc_atomic’
./.libs/libmonoruntime.a(object.o)(.text+0x16c2): In function mono\_object\_new\_fast’: /usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3372: undefined reference to GC_local_gcj_malloc’
./.libs/libmonoruntime.a(object.o)(.text+0x57c7): In function mono\_object\_new\_alloc\_specific’: /usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3285: undefined reference to GC_local_gcj_malloc’
./.libs/libmonoruntime.a(object.o)(.text+0x580f):/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3260: undefined reference to GC\_local\_malloc’ ./.libs/libmonoruntime.a(object.o)(.text+0x66ae): In function mono_array_new_full’:
/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3285: undefined reference to GC\_local\_gcj\_malloc’ ./.libs/libmonoruntime.a(object.o)(.text+0x6778):/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3277: undefined reference to GC_local_malloc_atomic’
./.libs/libmonoruntime.a(object.o)(.text+0x680f):/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3260: undefined reference to GC\_local\_malloc’ ./.libs/libmonoruntime.a(object.o)(.text+0x6a45): In function mono_object_clone’:
/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3260: undefined reference to GC\_local\_malloc’ ./.libs/libmonoruntime.a(object.o)(.text+0x6af7): In function mono_string_new_size’:
/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3277: undefined reference to GC\_local\_malloc\_atomic’ ./.libs/libmonoruntime.a(object.o)(.text+0x764a): In function mono_array_new_specific’:
/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3285: undefined reference to GC\_local\_gcj\_malloc’ ./.libs/libmonoruntime.a(object.o)(.text+0x76b3):/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3277: undefined reference to GC_local_malloc_atomic’
./.libs/libmonoruntime.a(object.o)(.text+0x76fc):/usr/home/bear/Download/mono-2.0.1/mono/metadata/object.c:3260: undefined reference to GC\_local\_malloc’ ./.libs/libmonoruntime.a(boehm-gc.o)(.text+0x1c9): In function mono_gc_alloc_fixed’:
/usr/home/bear/Download/mono-2.0.1/mono/metadata/boehm-gc.c:343: undefined reference to GC\_local\_malloc’ ./.libs/libmonoruntime.a(boehm-gc.o)(.text+0x3a3): In function mono_gc_is_gc_thread’:
/usr/home/bear/Download/mono-2.0.1/mono/metadata/boehm-gc.c:184: undefined reference to GC\_thread\_is\_registered’ ./.libs/libmonoruntime.a(boehm-gc.o)(.text+0x3d7): In function mono_gc_register_thread’:
/usr/home/bear/Download/mono-2.0.1/mono/metadata/boehm-gc.c:217: undefined reference to GC\_thread\_register\_foreign’ ../utils/.libs/libmonoutils.a(mono-hash.o)(.text+0x595): In function g_hash_table_resize’:
/usr/home/bear/Download/mono-2.0.1/mono/utils/mono-hash.c:724: undefined reference to GC\_local\_malloc’ ../utils/.libs/libmonoutils.a(mono-hash.o)(.text+0x84f): In function mono_g_hash_table_new_full’:
/usr/home/bear/Download/mono-2.0.1/mono/utils/mono-hash.c:188: undefined reference to GC\_local\_malloc’ ../utils/.libs/libmonoutils.a(mono-hash.o)(.text+0x896):/usr/home/bear/Download/mono-2.0.1/mono/utils/mono-hash.c:199: undefined reference to GC_local_malloc’
../utils/.libs/libmonoutils.a(mono-hash.o)(.text+0xcb5): In function mono\_g\_hash\_table\_replace’: /usr/home/bear/Download/mono-2.0.1/mono/utils/mono-hash.c:339: undefined reference to GC_local_malloc’
../utils/.libs/libmonoutils.a(mono-hash.o)(.text+0x1107): In function mono\_g\_hash\_table\_insert’: /usr/home/bear/Download/mono-2.0.1/mono/utils/mono-hash.c:339: undefined reference to GC_local_malloc’
gmake[2]: *** [pedump] 错误 1
gmake[2]: Leaving directory /usr/home/bear/Download/mono-2.0.1/mono/metadata’ gmake\[1\]: \*\*\* \[check-recursive\] 错误 1 gmake\[1\]: Leaving directory /usr/home/bear/Download/mono-2.0.1/mono’
gmake: *** [check-recursive] 错误 1
[bear@bear /usr/home/bear/Download/mono-2.0.1]$
FreeBSD的current-packages很危险…
前段时间花了半个多月折腾FreeBSD的packages。我一看到pkg_version输出中有
FreeBSD port更新方法
首先执行ee /etc/portsnap.conf
修改
SERVRNAME=portsnap.hshh.org
然后保存,执行
portsnap fetch
portsnap extrct
以后每天执行
portsnap fetch
portsnap update
即可更新。不要执行portsnap extract,否则会把port回滚到最初执行fetch的版本。
pkg_add -r 默认是用的7.0-release的packages,不是最新的。若是要用最新的packages的话,需要先执行
setenv PACKAGESITE “ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-current/Latest/”
注意,这样会导致很多后来安装的pkg因为依赖较早安装的老版本的pkg而无法运行。所以最好在没有安装任何pkg的系统上用这个命令安装。不过因为这个站点的pkg在一直更新,而系统没有提供更新pkg的命令(至少我不知道),只能先pkg_delete再pkg_add -r,所以会很麻烦。希望FreeBSD能提供一个pkg_update。
FreeBSD安装后的设置和其它
终于装完了FreeBSD,现在说说设置的事情。
首先,网络默认似乎是无法使用的。在sysinstall中设置好之后,如果无法使用,就需要手动设置一下了。ifconfig可以设置ip和网关,但是只能ping通同一网段的机子。这时需要执行route add default GATEWAY,把网关加成默认路由。
关于shell,默认的sh很难用,连自动补全都很别扭。先执行pkg_add -r bash把bash装上,然后执行chsh -s /usr/local/bin/bash把默认shell改成bash,注销一下即可。
关于X。
用sysinstall装即可,但一定别选gnome2。选那个后会装上一堆没用的。所以,自己选择package来装。gnome-session是必须的。完了之后需要改一下~/.xinitrc(ee /.xinitrc),写入
加上
export LANG=zh_CN.UTF-8
/usr/X11R6/bin/gnome-session
输入startx即可启动中文GNOME了
这时候的中文很难看。输入whereis wqy,然后cd过去,执行make install clean即可把文泉驿装上,相当好的中文字体。
这样基本就可以用了…中文输入法可以试试fcitx,同样用port安装。装完之后在X下开个终端,输入fcitx即可启动。
FreeBSD终于装上了~
一周之后…
FreeBSD终于装到了我的硬盘中…
代价是,我的Windows Server 2003因为我按错了一个键被完完全全彻彻底底的删除了…
其实主要是FreeBSD的安装程序太“怪异”。虽然我在引导管理器那里选了Leave MBR Untouch,那个安装程序确实也Untouch,但是它却自作主张的把80h(我指的是活动分区标志)改成了自己的分区。于是乎,引导的时候,C盘的Windows引导器根本没有被加载,直接被忽略过去了。一开始我完全没想到这个,发现开机后没出现Windows的引导选单,以为是MBR被改了,就试图用Win安装光盘恢复,结果进了故障恢复控制台,输入fixmbr并确认后,提示修复完成,但是重启的时候依然进了FreeBSD,当时是百思不得其解。后来又进故障恢复控制台,fixmbr后又foxboot了一下。其实这时候我是可以发现问题所在的。因为在fixboot的时候系统提示当前分区是I:,不是C:,但我当时竟然没反应过来…敲了个fixboot C:让它把C的引导分区恢复了一下,依然无果。数小时后,终于想到了是活动分区的问题…再次fixboot,提示分区类型不可识别,遂按y强制写入,提示分区类型是FAT,然后说写入成功。dir了一下,发现I:全是乱码。这当然是正常的,毕竟那个分区其实是UFS格式的…再次引导,报错NTLDR Missing。于是我就郁闷了…故障恢复控制台没有可以改活动分区的工具,我手上只有一张FreeBSD的fixit软盘,家里另外两台机子还都没软驱…这时候,我突然想到了Win安装CD是可以修复已安装的Win的,于是决定试试,但我忘记那个修复安装是是NT4.0时代的事情了…让人后悔的事情就在这时发生了…
进入Win安装程序,按Enter安装,提示找到已存在的Win安装,这时候正确的做法应该是按ESC安装新的Windows,然后在分区选择界面把那个FreeBSD分区删掉,建一个新的分区,然后把Win装上去。复制文件完成后,安装程序会自动把活动分区改成C:。这时候进入原先的Win删除那个新的分区即可。但是我却按了R….安装程序以迅雷不及掩耳之势就把我的Win删掉了…难道这就是所谓的“修复”么,删除我的文件连个提示也不给啊!
复制完文件之后,按要求重新起动,但是连续n次都在“安装硬件”这一步死掉。最后迫不得已只好把Win重装了。
我可怜的Win啊,还要花n多时间去patch…软件什么的倒不麻烦,毕竟我拿win也就是玩玩游戏上上qq,其它的事情都在*nix下干,但是那个补丁是真的很慢啊…
最主要的问题就是我没想到FreeBSD那个所谓“友好”的sysinstall竟然能干出这种事情来…第一次见到,确实开了眼界了。我一直以为只要OS的安装程序不改MBR,引导就没问题。没想到这一次安装程序确实是没改MBR,却改了活动分区…
最后总结一下FreeBSD 7.0 Release的硬盘安装
我一周的血泪史啊
特别声明:务必准备一张Windows引导软盘,内含Grub4DOS。否则会沦落到无法看到windows引导画面的地步!!!
1.下载3个CD镜像
2.保证有一个主分区是vfat格式的。别听信网上的传言说用NTFS也可以…NTFS分区根本认不出来…
3.把下载下来的7.0-RELEASE-i386-disc1.iso中的7.0-RELEASE用winrar解压到vfat分区根目录下
4.把3张CD的packages目录解压到vfat分区的7.0-RELEASE目录下,从CD1开始解压,有同名文件就覆盖
注:如用winrar解压文件,则按上面的要求解压packages整个目录即可。因为packages目录下除了All以外的目录内的所有文件都是硬链接,用虚拟光驱复制的话只需要复制packages/All目录即可。
5.用UltraEdit之类的东西打开packages/INDEX,把所有的“||1”和“||2”(不含双引号)都替换成“|”。我不确定这一步是必须的,但是我这样做了也没出什么问题。
6.去sf.net下一个叫unetbootin-freebsd70rev146.exe的好东西。同样别听信网上的传言…
网上传言有两种。一是用isoemu,这种我试过,还没进sysinstall呢就死机了。二是用grub加载boot.flp。这个确实能加载,也确实可以引导,但是在你输入boot后的数秒内系统会提示你插入kernel1软盘…
7.装上unetbootin-freebsd70rev146.exe,重新启动。引导选单会多出个UNetbootin-freebsd70rev146。选择它。随后会进入sysinstall。
8.在sysinstall内按照你的要求配置一下。那玩意很难用…多试试就可以了。注意在选择安装媒体的时候选择DOS。不要按照某论坛上的某位高手仁兄的说法用他的所谓“高级方法”。
那个“高级方法”大致意思是制作一张fixit软盘,在sysinstall中选择Fixit – Floppy,随后会在ttyv4启动一个shell,进入那个shell,挂载iso镜像所在的分区,然后用vnconfig,最后再把镜像挂载到一个目录下,以实现直接镜像安装。这样的好处是不需要把镜像内的文件复制出来,还可以支持ntfs。
这种方法我试过了,fixit软盘里面不仅没有vnconfig,连mount_ntfs,甚至mount_msdos都没有,只能挂载ufs分区。而且,在选择了Fixit – Floppy并进入ttyv4之后,可以切换到ttyv1试试,会提示你需要先退出fixit shell!
9.安装完之后,务必选那个Root Password改一下root密码…否则进不去系统。
10.用那张软盘重新起动,进入grub4dos,然后引导到windows,打开“磁盘管理”,把C分区设成活动的,在win下装个wingrub,一切ok…
过几天再写如何使FreeBSD变得更适合个人使用。