LinuxSir.cn,穿越时空的Linuxsir!

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

求助:编译BLFS-tripwire时出现下面的错误

[复制链接]
发表于 2004-9-23 15:05:11 | 显示全部楼层 |阅读模式
按照BLFS文档的说明,在编译tripwire时,下面的程序无法编译,可能是没有头文件,应该如何处理?
在查找该解压目录后,发现原来的MAKEFILE中的stlport目录并不存在,而是有STLport-4.0目录。
下面是编译过程。
谢谢!

[root@alex /blfs/tripwire-2.3.1-2/src]# gmake release
echo "\"MAKE RELEASE\"" > release.i686-pc-linux.out
date >> release.i686-pc-linux.out
echo "\"gmake -f Makefile  twprint_r  twadmin_r  siggen_r  tripwire_r    | tee -a release.i686-pc-linux.out\"" >> release.i686-pc-linux.out
gmake -f Makefile  twprint_r  twadmin_r  siggen_r  tripwire_r    | tee -a release.i686-pc-linux.out
gmake[1]: Entering directory `/blfs/tripwire-2.3.1-2/src'
gmake -C STLport-4.0 -f STLport.mak release "SYSPRE=i686-pc-linux"
gmake[2]: Entering directory `/blfs/tripwire-2.3.1-2/src/STLport-4.0'
test -d ../../lib || mkdir ../../lib
test -d ../../lib/i686-pc-linux_r || mkdir ../../lib/i686-pc-linux_r
test -e "include" || test "xi686-pc-linux" != "xi386-unknown-freebsd" || ln -s /usr/include/g++ include
test -e "include" || test "xi686-pc-linux" != "xi386-unknown-openbsd" || ln -s /usr/include/g++ include
export PATH=./stlport:/opt/gcc2/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin; /usr/bin/gmake -C ./src -f gcc.mak clobber
gmake[3]: Entering directory `/blfs/tripwire-2.3.1-2/src/STLport-4.0/src'
rm -rf obj/GCC/Release obj/GCC/Debug \
        obj/GCC/DebugSTL obj/GCC/ReleaseD \
        obj/GCC/DebugD obj/GCC/DebugSTLD SunWS_cache Templates.DB tempinc
rm -rf obj
rm -rf ../lib/libstlport_gcc_debug.* \
               ../lib/libstlport_gcc.* ../lib/libstlport_gcc_stldebug.*
gmake[3]: Leaving directory `/blfs/tripwire-2.3.1-2/src/STLport-4.0/src'
/usr/bin/gmake -f STLport.mak lib/libstlport_gcc.a
gmake[3]: Entering directory `/blfs/tripwire-2.3.1-2/src/STLport-4.0'
export PATH=./stlport:/opt/gcc2/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin; /usr/bin/gmake -C ./src -f gcc.mak ../lib/libstlport_gcc.a
gmake[4]: Entering directory `/blfs/tripwire-2.3.1-2/src/STLport-4.0/src'
mkdir -p obj/GCC/Release
c++ -I../stlport -Wall -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -ftemplate-depth-32 -O2 complex.cpp -c -o obj/GCC/Release/complex.o
In file included from ../stlport/complex:40,
                 from complex.cpp:21:
../stlport/wrap_std/complex:16:39: ../g++-include/complex: No such file or directory
complex.cpp:26: error: parse error before `&' token
complex.cpp: In function `float abs(...)':
complex.cpp:28: error: `__z' undeclared (first use this function)
complex.cpp:28: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
complex.cpp:28: error: `__STL_HYPOTF' undeclared (first use this function)
complex.cpp: At global scope:
complex.cpp:31: error: parse error before `&' token
complex.cpp: In function `double abs(...)':
complex.cpp:32: error: new declaration `double abs(...)'
complex.cpp:27: error: ambiguates old declaration `float abs(...)'
complex.cpp: In function `float abs(...)':
complex.cpp:33: error: `__STL_HYPOT' undeclared (first use this function)
complex.cpp: At global scope:
complex.cpp:36: error: parse error before `&' token
complex.cpp: In function `long double abs(...)':
complex.cpp:37: error: new declaration `long double abs(...)'
complex.cpp:32: error: ambiguates old declaration `double abs(...)'
complex.cpp: In function `float abs(...)':
complex.cpp:38: error: `__STL_HYPOTL' undeclared (first use this function)
complex.cpp: At global scope:
complex.cpp:43: error: parse error before `&' token
complex.cpp: In function `float arg(...)':
complex.cpp:45: error: `__STL_ATAN2F' undeclared (first use this function)
complex.cpp: At global scope:
complex.cpp:48: error: parse error before `&' token
complex.cpp: In function `double arg(...)':
complex.cpp:49: error: new declaration `double arg(...)'
complex.cpp:44: error: ambiguates old declaration `float arg(...)'
complex.cpp: In function `float arg(...)':
complex.cpp:50: error: `__STL_ATAN2' undeclared (first use this function)
complex.cpp: At global scope:
complex.cpp:53: error: parse error before `&' token
complex.cpp: In function `long double arg(...)':
complex.cpp:54: error: new declaration `long double arg(...)'
complex.cpp:49: error: ambiguates old declaration `double arg(...)'
complex.cpp: In function `float arg(...)':
complex.cpp:55: error: `__STL_ATAN2L' undeclared (first use this function)
complex.cpp: At global scope:
complex.cpp:60: error: parse error before `float'
complex.cpp:65: error: parse error before `double'
complex.cpp:70: error: parse error before `long'
complex.cpp:79: error: syntax error before `::' token
complex.cpp:83: error: `__z2_i' was not declared in this scope
complex.cpp:83: error: `__z2_i' was not declared in this scope
complex.cpp:83: error: `__z2_i' was not declared in this scope
complex.cpp:85: error: parse error before `if'
complex.cpp:87: error: `__z2_i' was not declared in this scope
complex.cpp:87: error: `__ratio' was not declared in this scope
complex.cpp:87: error: `__ratio' was not declared in this scope
complex.cpp:88: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:88: error: `__z1_r' was not declared in this scope
complex.cpp:88: error: `__ratio' was not declared in this scope
complex.cpp:88: error: `__z1_i' was not declared in this scope
complex.cpp:89: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:89: error: `__z1_i' was not declared in this scope
complex.cpp:89: error: `__ratio' was not declared in this scope
complex.cpp:89: error: `__z1_r' was not declared in this scope
complex.cpp:90: error: parse error before `}' token
complex.cpp:93: error: redefinition of `float __denom'
complex.cpp:87: error: `float __denom' previously defined here
complex.cpp:93: error: `__z2_r' was not declared in this scope
complex.cpp:93: error: `__ratio' was not declared in this scope
complex.cpp:93: error: `__ratio' was not declared in this scope
complex.cpp:94: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:94: error: redefinition of `int __res_r'
complex.cpp:88: error: `int __res_r' previously defined here
complex.cpp:94: error: `__z1_r' was not declared in this scope
complex.cpp:94: error: `__z1_i' was not declared in this scope
complex.cpp:94: error: `__ratio' was not declared in this scope
complex.cpp:95: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:95: error: redefinition of `int __res_i'
complex.cpp:89: error: `int __res_i' previously defined here
complex.cpp:95: error: `__z1_i' was not declared in this scope
complex.cpp:95: error: `__z1_r' was not declared in this scope
complex.cpp:95: error: `__ratio' was not declared in this scope
complex.cpp:96: error: parse error before `}' token
complex.cpp:100: error: syntax error before `::' token
complex.cpp:104: error: redefinition of `float __ai'
complex.cpp:83: error: `float __ai' previously defined here
complex.cpp:104: error: `__z2_i' was not declared in this scope
complex.cpp:104: error: `__z2_i' was not declared in this scope
complex.cpp:104: error: `__z2_i' was not declared in this scope
complex.cpp:106: error: parse error before `if'
complex.cpp:108: error: redefinition of `float __denom'
complex.cpp:93: error: `float __denom' previously defined here
complex.cpp:108: error: `__z2_i' was not declared in this scope
complex.cpp:108: error: `__ratio' was not declared in this scope
complex.cpp:108: error: `__ratio' was not declared in this scope
complex.cpp:109: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:109: error: redefinition of `int __res_r'
complex.cpp:94: error: `int __res_r' previously defined here
complex.cpp:109: error: `__z1_r' was not declared in this scope
complex.cpp:109: error: `__ratio' was not declared in this scope
complex.cpp:110: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:110: error: redefinition of `int __res_i'
complex.cpp:95: error: `int __res_i' previously defined here
complex.cpp:110: error: `__z1_r' was not declared in this scope
complex.cpp:111: error: parse error before `}' token
complex.cpp:114: error: redefinition of `float __denom'
complex.cpp:108: error: `float __denom' previously defined here
complex.cpp:114: error: `__z2_r' was not declared in this scope
complex.cpp:114: error: `__ratio' was not declared in this scope
complex.cpp:114: error: `__ratio' was not declared in this scope
complex.cpp:115: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:115: error: redefinition of `int __res_r'
complex.cpp:109: error: `int __res_r' previously defined here
complex.cpp:115: error: `__z1_r' was not declared in this scope
complex.cpp:116: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:116: error: redefinition of `int __res_i'
complex.cpp:110: error: `int __res_i' previously defined here
complex.cpp:116: error: `__z1_r' was not declared in this scope
complex.cpp:116: error: `__ratio' was not declared in this scope
complex.cpp:117: error: parse error before `}' token
complex.cpp:122: error: syntax error before `::' token
complex.cpp:126: error: conflicting types for `double __ai'
complex.cpp:104: error: previous declaration as `float __ai'
complex.cpp:126: error: `__z2_i' was not declared in this scope
complex.cpp:126: error: `__z2_i' was not declared in this scope
complex.cpp:126: error: `__z2_i' was not declared in this scope
complex.cpp:128: error: parse error before `if'
complex.cpp:130: error: conflicting types for `double __denom'
complex.cpp:114: error: previous declaration as `float __denom'
complex.cpp:130: error: `__z2_i' was not declared in this scope
complex.cpp:130: error: `__ratio' was not declared in this scope
complex.cpp:130: error: `__ratio' was not declared in this scope
complex.cpp:131: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:131: error: redefinition of `int __res_r'
complex.cpp:115: error: `int __res_r' previously defined here
complex.cpp:131: error: `__z1_r' was not declared in this scope
complex.cpp:131: error: `__ratio' was not declared in this scope
complex.cpp:131: error: `__z1_i' was not declared in this scope
complex.cpp:132: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:132: error: redefinition of `int __res_i'
complex.cpp:116: error: `int __res_i' previously defined here
complex.cpp:132: error: `__z1_i' was not declared in this scope
complex.cpp:132: error: `__ratio' was not declared in this scope
complex.cpp:132: error: `__z1_r' was not declared in this scope
complex.cpp:133: error: parse error before `}' token
complex.cpp:136: error: redefinition of `double __denom'
complex.cpp:130: error: `double __denom' previously defined here
complex.cpp:136: error: `__z2_r' was not declared in this scope
complex.cpp:136: error: `__ratio' was not declared in this scope
complex.cpp:136: error: `__ratio' was not declared in this scope
complex.cpp:137: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:137: error: redefinition of `int __res_r'
complex.cpp:131: error: `int __res_r' previously defined here
complex.cpp:137: error: `__z1_r' was not declared in this scope
complex.cpp:137: error: `__z1_i' was not declared in this scope
complex.cpp:137: error: `__ratio' was not declared in this scope
complex.cpp:138: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:138: error: redefinition of `int __res_i'
complex.cpp:132: error: `int __res_i' previously defined here
complex.cpp:138: error: `__z1_i' was not declared in this scope
complex.cpp:138: error: `__z1_r' was not declared in this scope
complex.cpp:138: error: `__ratio' was not declared in this scope
complex.cpp:139: error: parse error before `}' token
complex.cpp:143: error: syntax error before `::' token
complex.cpp:147: error: redefinition of `double __ai'
complex.cpp:126: error: `double __ai' previously defined here
complex.cpp:147: error: `__z2_i' was not declared in this scope
complex.cpp:147: error: `__z2_i' was not declared in this scope
complex.cpp:147: error: `__z2_i' was not declared in this scope
complex.cpp:149: error: parse error before `if'
complex.cpp:151: error: redefinition of `double __denom'
complex.cpp:136: error: `double __denom' previously defined here
complex.cpp:151: error: `__z2_i' was not declared in this scope
complex.cpp:151: error: `__ratio' was not declared in this scope
complex.cpp:151: error: `__ratio' was not declared in this scope
complex.cpp:152: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:152: error: redefinition of `int __res_r'
complex.cpp:137: error: `int __res_r' previously defined here
complex.cpp:152: error: `__z1_r' was not declared in this scope
complex.cpp:152: error: `__ratio' was not declared in this scope
complex.cpp:153: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:153: error: redefinition of `int __res_i'
complex.cpp:138: error: `int __res_i' previously defined here
complex.cpp:153: error: `__z1_r' was not declared in this scope
complex.cpp:154: error: parse error before `}' token
complex.cpp:157: error: redefinition of `double __denom'
complex.cpp:151: error: `double __denom' previously defined here
complex.cpp:157: error: `__z2_r' was not declared in this scope
complex.cpp:157: error: `__ratio' was not declared in this scope
complex.cpp:157: error: `__ratio' was not declared in this scope
complex.cpp:158: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:158: error: redefinition of `int __res_r'
complex.cpp:152: error: `int __res_r' previously defined here
complex.cpp:158: error: `__z1_r' was not declared in this scope
complex.cpp:159: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:159: error: redefinition of `int __res_i'
complex.cpp:153: error: `int __res_i' previously defined here
complex.cpp:159: error: `__z1_r' was not declared in this scope
complex.cpp:159: error: `__ratio' was not declared in this scope
complex.cpp:160: error: parse error before `}' token
complex.cpp:165: error: syntax error before `::' token
complex.cpp:169: error: conflicting types for `long double __ai'
complex.cpp:147: error: previous declaration as `double __ai'
complex.cpp:169: error: `__z2_i' was not declared in this scope
complex.cpp:169: error: `__z2_i' was not declared in this scope
complex.cpp:169: error: `__z2_i' was not declared in this scope
complex.cpp:171: error: parse error before `if'
complex.cpp:173: error: conflicting types for `long double __denom'
complex.cpp:157: error: previous declaration as `double __denom'
complex.cpp:173: error: `__z2_i' was not declared in this scope
complex.cpp:173: error: `__ratio' was not declared in this scope
complex.cpp:173: error: `__ratio' was not declared in this scope
complex.cpp:174: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:174: error: redefinition of `int __res_r'
complex.cpp:158: error: `int __res_r' previously defined here
complex.cpp:174: error: `__z1_r' was not declared in this scope
complex.cpp:174: error: `__ratio' was not declared in this scope
complex.cpp:174: error: `__z1_i' was not declared in this scope
complex.cpp:175: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:175: error: redefinition of `int __res_i'
complex.cpp:159: error: `int __res_i' previously defined here
complex.cpp:175: error: `__z1_i' was not declared in this scope
complex.cpp:175: error: `__ratio' was not declared in this scope
complex.cpp:175: error: `__z1_r' was not declared in this scope
complex.cpp:176: error: parse error before `}' token
complex.cpp:179: error: redefinition of `long double __denom'
complex.cpp:173: error: `long double __denom' previously defined here
complex.cpp:179: error: `__z2_r' was not declared in this scope
complex.cpp:179: error: `__ratio' was not declared in this scope
complex.cpp:179: error: `__ratio' was not declared in this scope
complex.cpp:180: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:180: error: redefinition of `int __res_r'
complex.cpp:174: error: `int __res_r' previously defined here
complex.cpp:180: error: `__z1_r' was not declared in this scope
complex.cpp:180: error: `__z1_i' was not declared in this scope
complex.cpp:180: error: `__ratio' was not declared in this scope
complex.cpp:181: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:181: error: redefinition of `int __res_i'
complex.cpp:175: error: `int __res_i' previously defined here
complex.cpp:181: error: `__z1_i' was not declared in this scope
complex.cpp:181: error: `__z1_r' was not declared in this scope
complex.cpp:181: error: `__ratio' was not declared in this scope
complex.cpp:182: error: parse error before `}' token
complex.cpp:187: error: syntax error before `::' token
complex.cpp:191: error: redefinition of `long double __ai'
complex.cpp:169: error: `long double __ai' previously defined here
complex.cpp:191: error: `__z2_i' was not declared in this scope
complex.cpp:191: error: `__z2_i' was not declared in this scope
complex.cpp:191: error: `__z2_i' was not declared in this scope
complex.cpp:193: error: parse error before `if'
complex.cpp:195: error: redefinition of `long double __denom'
complex.cpp:179: error: `long double __denom' previously defined here
complex.cpp:195: error: `__z2_i' was not declared in this scope
complex.cpp:195: error: `__ratio' was not declared in this scope
complex.cpp:195: error: `__ratio' was not declared in this scope
complex.cpp:196: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:196: error: redefinition of `int __res_r'
complex.cpp:180: error: `int __res_r' previously defined here
complex.cpp:196: error: `__z1_r' was not declared in this scope
complex.cpp:196: error: `__ratio' was not declared in this scope
complex.cpp:197: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:197: error: redefinition of `int __res_i'
complex.cpp:181: error: `int __res_i' previously defined here
complex.cpp:197: error: `__z1_r' was not declared in this scope
complex.cpp:198: error: parse error before `}' token
complex.cpp:201: error: redefinition of `long double __denom'
complex.cpp:195: error: `long double __denom' previously defined here
complex.cpp:201: error: `__z2_r' was not declared in this scope
complex.cpp:201: error: `__ratio' was not declared in this scope
complex.cpp:201: error: `__ratio' was not declared in this scope
complex.cpp:202: error: ISO C++ forbids declaration of `__res_r' with no type
complex.cpp:202: error: redefinition of `int __res_r'
complex.cpp:196: error: `int __res_r' previously defined here
complex.cpp:202: error: `__z1_r' was not declared in this scope
complex.cpp:203: error: ISO C++ forbids declaration of `__res_i' with no type
complex.cpp:203: error: redefinition of `int __res_i'
complex.cpp:197: error: `int __res_i' previously defined here
complex.cpp:203: error: `__z1_r' was not declared in this scope
complex.cpp:203: error: `__ratio' was not declared in this scope
complex.cpp:204: error: parse error before `}' token
complex.cpp:212: error: parse error before `<' token
complex.cpp:214: error: `z' was not declared in this scope
complex.cpp:215: error: `re' was not declared in this scope
complex.cpp:215: error: `__STL_HYPOTF' was not declared in this scope
complex.cpp:216: error: 'complex' is used as a type, but is not defined as a
   type.
complex.cpp:218: error: parse error before `if'
complex.cpp:222: error: syntax error before `.' token
complex.cpp:227: error: syntax error before `.' token
complex.cpp:234: error: parse error before `<' token
complex.cpp:236: error: conflicting types for `double im'
complex.cpp:214: error: previous declaration as `float im'
complex.cpp:236: error: `z' was not declared in this scope
complex.cpp:237: error: conflicting types for `double mag'
complex.cpp:215: error: previous declaration as `float mag'
complex.cpp:237: error: `re' was not declared in this scope
complex.cpp:237: error: `__STL_HYPOT' was not declared in this scope
complex.cpp:238: error: 'complex' is used as a type, but is not defined as a
   type.
complex.cpp:240: error: parse error before `if'
complex.cpp:244: error: syntax error before `.' token
complex.cpp:249: error: syntax error before `.' token
complex.cpp:256: error: parse error before `<' token
complex.cpp:258: error: conflicting types for `long double im'
complex.cpp:236: error: previous declaration as `double im'
complex.cpp:258: error: `z' was not declared in this scope
complex.cpp:259: error: conflicting types for `long double mag'
complex.cpp:237: error: previous declaration as `double mag'
complex.cpp:259: error: `re' was not declared in this scope
complex.cpp:259: error: `__STL_HYPOTL' was not declared in this scope
complex.cpp:260: error: 'complex' is used as a type, but is not defined as a
   type.
complex.cpp:262: error: parse error before `if'
complex.cpp:266: error: syntax error before `.' token
complex.cpp:271: error: syntax error before `.' token
gmake[4]: *** [obj/GCC/Release/complex.o] Error 1
gmake[4]: Leaving directory `/blfs/tripwire-2.3.1-2/src/STLport-4.0/src'
gmake[3]: *** [lib/libstlport_gcc.a] Error 2
gmake[3]: Leaving directory `/blfs/tripwire-2.3.1-2/src/STLport-4.0'
gmake[2]: *** [../../lib/i686-pc-linux_r/libstlport_gcc.a] Error 2
gmake[2]: Leaving directory `/blfs/tripwire-2.3.1-2/src/STLport-4.0'
gmake[1]: *** [STLport_r] Error 2
gmake[1]: Leaving directory `/blfs/tripwire-2.3.1-2/src'
date >> release.i686-pc-linux.out
[root@alex /blfs/tripwire-2.3.1-2/src]#
发表于 2004-9-23 15:24:27 | 显示全部楼层
../g++-include/complex: No such file or directory
从提示看是未找到complex.cpp文件的C++头文件complex
 楼主| 发表于 2004-9-23 16:21:30 | 显示全部楼层
根本就没有g++-include这个目录,也没有LINK。

关键奇怪的是,为什么软件包会编译不通过?
发表于 2004-9-23 18:44:01 | 显示全部楼层
你没编译g++?。。。。。
lfs编译gcc的时候。
发表于 2004-9-23 21:44:05 | 显示全部楼层
呵呵,八成是忘了解压g++的?
发表于 2004-9-23 21:47:16 | 显示全部楼层
有的时候,,还是 alfs比较好,,绝对不会因为某些错误,而把整个LFS弄坏了。。。:)。。。。。
发表于 2004-9-23 21:47:53 | 显示全部楼层
失败是成功的老娘嘛
发表于 2004-9-24 09:39:11 | 显示全部楼层
虽然老娘是要有,,8过,,偶可8想要那么多个。。嘿嘿。;)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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