LinuxSir.cn,穿越时空的Linuxsir!

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

编译E17的entrance出错

[复制链接]
发表于 2006-2-10 19:59:03 | 显示全部楼层 |阅读模式
依赖的东西都装了,make时不能通过,我猜想可能是红色字体部分的错误导致的,但不知道怎么解决
我没有装gdm等登陆管理器,每次进X都是用#startx


In file included from auth.c:11:
auth.h:5:23: error: X11/Xauth.h: 没有那个文件或目录
In file included from auth.c:11:
auth.h:9: error: syntax error before ‘*’ token
auth.h:9: warning: type defaults to ‘int’ in declaration of ‘entranced_auth_mit_get’
auth.h:9: warning: data definition has no type or storage class
auth.c: In function ‘_entranced_auth_purge’:
auth.c:64: error: ‘Xauth’ undeclared (first use in this function)
auth.c:64: error: (Each undeclared identifier is reported only once
auth.c:64: error: for each function it appears in.)
auth.c:64: error: ‘auth’ undeclared (first use in this function)
auth.c:75: error: ‘XauDisposeAuth’ undeclared (first use in this function)
auth.c:79: warning: implicit declaration of function ‘XauReadAuth’
auth.c:86: error: ‘disp_auth’ undeclared (first use in this function)
auth.c:86: error: syntax error before ‘)’ token
auth.c:93: warning: implicit declaration of function ‘XauDisposeAuth’
auth.c:107: error: ‘xa’ undeclared (first use in this function)
auth.c:108: error: syntax error before ‘)’ token
auth.c:109: warning: implicit declaration of function ‘XauWriteAuth’
auth.c:109: error: syntax error before ‘)’ token
auth.c: At top level:
auth.c:122: error: syntax error before ‘*’ token
auth.c:124: warning: return type defaults to ‘int’
auth.c: In function ‘entranced_auth_mit_get’:
auth.c:125: error: ‘Xauth’ undeclared (first use in this function)
auth.c:125: error: ‘new’ undeclared (first use in this function)
auth.c:127: error: syntax error before ‘)’ token
auth.c:131: error: ‘FamilyWild’ undeclared (first use in this function)
auth.c: At top level:
auth.c:159: error: syntax error before ‘*’ token
auth.c:161: warning: return type defaults to ‘int’
auth.c: In function ‘_entranced_auth_generate’:
auth.c:162: error: ‘Xauth’ undeclared (first use in this function)
auth.c:162: error: ‘auth’ undeclared (first use in this function)
auth.c: In function ‘_entranced_auth_entry_add’:
auth.c:255: error: ‘Xauth’ undeclared (first use in this function)
auth.c:255: error: ‘auth’ undeclared (first use in this function)
auth.c:265: error: ‘FamilyLocal’ undeclared (first use in this function)
auth.c:298: error: ‘XauDisposeAuth’ undeclared (first use in this function)
auth.c: In function ‘entranced_auth_display_secure’:
auth.c:349: error: ‘Xauth’ undeclared (first use in this function)
auth.c:349: error: ‘tmp’ undeclared (first use in this function)
auth.c:350: error: syntax error before ‘)’ token
auth.c: In function ‘entranced_auth_user_add’:
auth.c:434: warning: implicit declaration of function ‘XauLockAuth’
auth.c:434: error: ‘LOCK_SUCCESS’ undeclared (first use in this function)
auth.c:452: warning: implicit declaration of function ‘XauUnlockAuth’
auth.c:469: error: ‘Xauth’ undeclared (first use in this function)
auth.c:469: error: syntax error before ‘)’ token
auth.c: At top level:
auth.c:477: warning: type defaults to ‘int’ in declaration of ‘fclose’
auth.c:477: warning: parameter names (without types) in function declaration
auth.c:477: warning: data definition has no type or storage class
auth.c:478: error: syntax error before ‘->’ token
auth.c:478: warning: type defaults to ‘int’ in declaration of ‘XauUnlockAuth’
auth.c:478: warning: data definition has no type or storage class
auth.c:482: error: syntax error before string constant
auth.c:482: warning: type defaults to ‘int’ in declaration of ‘entranced_debug’
auth.c:482: error: conflicting types for ‘entranced_debug’
util.h:4: error: previous declaration of ‘entranced_debug’ was here
auth.c:482: warning: data definition has no type or storage class
auth.c:483: error: syntax error before numeric constant
auth.c:483: warning: type defaults to ‘int’ in declaration of ‘seteuid’
auth.c:483: warning: data definition has no type or storage class
auth.c: In function ‘entranced_auth_user_remove’:
auth.c:501: error: ‘LOCK_SUCCESS’ undeclared (first use in this function)
make[3]: *** [auth.o] 错误 1
make[3]: Leaving directory `/root/down/e17/apps/entrance/src/daemon'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/root/down/e17/apps/entrance/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/root/down/e17/apps/entrance/src'
make: *** [all-recursive] 错误 1
 楼主| 发表于 2006-2-10 20:40:35 | 显示全部楼层
这下彻底没得混了

编译了一个module:monitor,在打开它的配置菜单时突然E17就崩了
再进X就提示错误了

我进cvs中的app/e下重新编译安装了一次仍然不行

终于让我见识了E17不稳定的地方了,郁闷
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-10 21:32:03 | 显示全部楼层
Post by gdxk
这下彻底没得混了

编译了一个module:monitor,在打开它的配置菜单时突然E17就崩了
再进X就提示错误了

我进cvs中的app/e下重新编译安装了一次仍然不行

终于让我见识了E17不稳定的地方了,郁闷



还不算太惨,删了.e/ 又好了


现在还是回归第一个帖子中的问题
回复 支持 反对

使用道具 举报

发表于 2006-2-10 21:32:39 | 显示全部楼层
xauth应该是外面包括的包吧

另外最好不要编辑第三方模块 除非是e17 cvs上的代码
因为e17 现在还没有完全定下来 所以如果它修改api的话 其它模块还没有来的及修改就会引起crash

如果想起来的话可以删除 或重命外~/.e
当然先要备份一下里面有用的东西
然后再起来就可以

还有就是cvs编译时需要使用同一时期的代码 包括库也要编译

只编译 app还是可能会有问题吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-10 22:31:23 | 显示全部楼层
Post by 无双
xauth应该是外面包括的包吧


现在就是不知道它在哪个包里啊,readme文件里压根就没提啊

我注意到在/apps/entrance目录
#./autogen.sh -prefix=/usr会有下面一段提示

checking for getspnam in -lcrypt... yes
configure: WARNING: ** no /etc/X11/xdm/Xsession file on this system **
configure: WARNING: ** Perhaps you need to specify --with-xsession **
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include

但是我不知道--with-xsession后怎么加参数或者要装什么东西
#./autogen.sh -prefix=/usr --with-xsession错误提示并没改变


难道要装xdm??无双你使用entrance了吧,你在装entrance前启动X是startx的吗??



PS:编译E17上瘾了
回复 支持 反对

使用道具 举报

发表于 2006-2-10 23:35:39 | 显示全部楼层
Please install the package libxau-dev.
If you use Debian, please use "--with-xsession=/etc/X11/Xsession" to configure.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-11 00:05:46 | 显示全部楼层
Post by zlbruce
Please install the package libxau-dev.
If you use Debian, please use "--with-xsession=/etc/X11/Xsession" to configure.



我是用的debian
zlbruce兄你这两步都要吗?

我先是--with-xsession=/etc/X11/Xsession
./autogen.sh 时的警告提示没了
但make时错误依旧


然后我 安装了libxau-dev.
./autogen.sh时没加--with-xsession=/etc/X11/Xsession
然后make通过就顺利安装了


那么--with-xsession=/etc/X11/Xsession这步是不是没有用了 ?


另外我想知道这个解决方法你是怎么知道的,我真的很佩服哦
回复 支持 反对

使用道具 举报

发表于 2006-2-11 00:27:46 | 显示全部楼层
要加 --with-xsession=/etc/X11/Xsession 参数。

对于装libxau-dev,你可以先装 apt-file ,然后
apt-file update
apt-file search X11/Xauth.h
就可以知道 X11/Xauth.h 在那个包里面了。
对于第二个问题,他不是说 “no /etc/X11/xdm/Xsession file on this system” 吗
我就查看了一下 /etc/X11 里面的文件,发现 Xsession 在 /etc/X11/Xsession,所以就用
--with-xsession=/etc/X11/Xsession 试试拉。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-11 00:45:03 | 显示全部楼层
Post by zlbruce
要加 --with-xsession=/etc/X11/Xsession 参数。

对于装libxau-dev,你可以先装 apt-file ,然后
apt-file update
apt-file search X11/Xauth.h
就可以知道 X11/Xauth.h 在那个包里面了。
对于第二个问题,他不是说 “no /etc/X11/xdm/Xsession file on this system” 吗
我就查看了一下 /etc/X11 里面的文件,发现 Xsession 在 /etc/X11/Xsession,所以就用
--with-xsession=/etc/X11/Xsession 试试拉。



谢谢, 又学了一招,呵呵

我刚才没加--with-xsession=/etc/X11/Xsession 参数编译安装后可以使用,不过进入E17后locale全变成posix了,系统显示的字体也变的难看了,ft.....

现在如果想加这个参数编译,是不是在源码目录里直接重新编译安装就可以了,它应该会自动覆盖前一次安装的东西吧?
回复 支持 反对

使用道具 举报

发表于 2006-2-11 01:19:10 | 显示全部楼层
参数可以不用加,之后把/etc/X11/Xsession里的东西复制到/etc/X11/xdm/Xsession里
在E17中也可以设置locale,enlightenment_remote可以,用erme也可以
把locale写在bashrc里呢
回复 支持 反对

使用道具 举报

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

本版积分规则

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