LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1307|回复: 9

那位大侠在freebsd里面帮忙编译一下这个 c 源程序!!

[复制链接]
发表于 2005-3-1 11:00:08 | 显示全部楼层 |阅读模式
由于实在在太菜,刚刚接触freebsd,而学校上网需要认证
没有freebsd版本的 只有linux下的 c 源程序 (附件)
自己编译说缺少*****
不是很明白
急!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-3-1 20:59:37 | 显示全部楼层
干嘛不整个tgz包。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-2 10:05:13 | 显示全部楼层
这个是某个个人写的校园上网认证的程序,只有linux下的可执行文件,
没有这个就不能上网,ports里面不可能有
如果告诉freebsd里面如何使用linux可执行文件也可以
谢谢
不能上网,没有网络,freebsd就没法学习使用啊!!!!!!!
回复 支持 反对

使用道具 举报

发表于 2005-3-2 10:38:24 | 显示全部楼层
是不是锐捷网络的认证程序啊。。。昨天我同学在RedHat下运行也上不了网,不知是学院DNS坏了,还是实在认证不了。。。最好还是拉ADSL。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-2 11:40:45 | 显示全部楼层
我在linux下用这个可以
freebsd的还没
回复 支持 反对

使用道具 举报

发表于 2005-3-2 19:53:05 | 显示全部楼层
我是说源码打包能不能不用rar?
回复 支持 反对

使用道具 举报

发表于 2005-3-3 10:08:01 | 显示全部楼层
你可以試試看BSD下面的linux兼容層?磉\行這個程序(我沒有用過)

如果要自己編譯的話.
最好先安裝gmake(這個工具和BSD自帶的make工具?似), 這個工具在安裝盤裡面有, 用pkg_add安裝.

如果有出錯信息,可以貼出?恚尨蠹铱纯
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-3 10:52:42 | 显示全部楼层
多谢各位了 再次感到 sir 上面的温暖!!

Post by duleell
我是说源码打包能不能不用rar?


sorry
在xp下发的贴 折腾了几天 有点眉目了 可能没有libnet
在网上还没下到,如果有帮忙贴一下(如果小就附件,或者告诉下载链接

在5.3 里面进源程序包(已经解压过),胡乱看了一点点gcc
直接就用#make 结果出现:
2 -o mystar.o -c mystar.c
In file included from mystar.c:6:
mystar.h:21:20: libnet.h: No such file or directory
In file included from mystar.c:8:
sendpacket.h:11: error: syntax error before '*' token
sendpacket.h:12: error: syntax error before '*' token
sendpacket.h:13: error: syntax error before '*' token
sendpacket.h:14: error: syntax error before '*' token
sendpacket.h:15: error: syntax error before '*' token
mystar.c: In function `main':
mystar.c:47: error: `libnet_t' undeclared (first use in this function)
mystar.c:47: error: (Each undeclared identifier is reported only once
mystar.c:47: error: for each function it appears in.)
mystar.c:47: error: `l' undeclared (first use in this function)
mystar.c:49: error: `LIBNET_ERRBUF_SIZE' undeclared (first use in this function)
mystar.c:78: error: `LIBNET_LINK' undeclared (first use in this function)
mystar.c:85: warning: assignment makes pointer from integer without a cast
mystar.c: In function `sig_intr':
mystar.c:337: error: `libnet_t' undeclared (first use in this function)
mystar.c:337: error: `l' undeclared (first use in this function)
mystar.c:338: error: `LIBNET_ERRBUF_SIZE' undeclared (first use in this function)
mystar.c:342: error: `LIBNET_LINK' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/bobsummer/mystarV0.11-src.
回复 支持 反对

使用道具 举报

发表于 2005-3-3 16:33:36 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-3 18:04:43 | 显示全部楼层
感谢楼上啊
国外网在我这里慢啊 970多k要几个小时 倒!
先叫北京的网友下 然后传我 曲折啊
再次谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表