can't install apt on macports - macos

THe following error appears
:info:build Compiling contrib/hashes.cc to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/work/apt-0.5.27/build/obj/apt-pkg/hashes.opic
:info:build Compiling depcache.cc to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/work/apt-0.5.27/build/obj/apt-pkg/depcache.opic
:info:build contrib/hashes.cc: In member function 'bool Hashes::AddFD(int, long unsigned int)':
:info:build contrib/hashes.cc:33: error: expected primary-expression before '?' token
:info:build contrib/hashes.cc:33: error: expected `:' before ')' token
:info:build contrib/hashes.cc:33: error: expected primary-expression before ')' token
:info:build contrib/hashes.cc:34: error: expected primary-expression before '?' token
:info:build contrib/hashes.cc:34: error: expected `:' before ')' token
:info:build contrib/hashes.cc:34: error: expected primary-expression before ')' token
:info:build gnumake[2]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/work/apt-0.5.27/build/obj/apt-pkg/hashes.opic] Error 1
:info:build gnumake[2]: *** Waiting for unfinished jobs....
:info:build contrib/md5.cc: In member function 'bool MD5Summation::AddFD(int, long unsigned int)':
:info:build contrib/md5.cc:302: error: expected primary-expression before '?' token
:info:build contrib/md5.cc:302: error: expected `:' before ')' token
:info:build contrib/md5.cc:302: error: expected primary-expression before ')' token
:info:build contrib/md5.cc:303: error: expected primary-expression before '?' token
:info:build contrib/md5.cc:303: error: expected `:' before ')' token
:info:build contrib/md5.cc:303: error: expected primary-expression before ')' token
:info:build contrib/sha1.cc: In member function 'bool SHA1Summation::AddFD(int, long unsigned int)':
:info:build contrib/sha1.cc:348: error: expected primary-expression before '?' token
:info:build contrib/sha1.cc:348: error: expected `:' before ')' token
:info:build contrib/sha1.cc:348: error: expected primary-expression before ')' token
:info:build contrib/sha1.cc:349: error: expected primary-expression before '?' token
:info:build contrib/sha1.cc:349: error: expected `:' before ')' token
:info:build contrib/sha1.cc:349: error: expected primary-expression before ')' token
:info:build gnumake[2]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/work/apt-0.5.27/build/obj/apt-pkg/md5.opic] Error 1
:info:build gnumake[2]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/work/apt-0.5.27/build/obj/apt-pkg/sha1.opic] Error 1
:info:build gnumake[1]: *** [all] Error 2
:info:build gnumake: *** [all] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/work/apt-0.5.27/build" && /usr/bin/gnumake -j2 all " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for apt): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for apt is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/main.log
I'm using Mac OS 10.6. Any idea?

Related

Issue with zlib while running makefile MacOS sierra

I am trying to run a make file in MacOS sierra, but it seems to have trouble with the header of the Zlib (see below).
I have tried to install a separate version with brew and pass the directory of the brew zlib installation in the configure file.
./configure --prefix=/usr/local/etherlab --with-xml-prefix=/usr/local/opt/libxml2 --with-zlib-dir=/usr/local/opt/zlib CXXFLAGS=-std=c++11
However, when I run make I got the error
$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in proto
make[2]: Nothing to be done for `all'.
Making all in lib
Making all in LibDLS
make[3]: Nothing to be done for `all'.
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/etherlab/include -Wall -I/usr/local/include -I/usr/local/opt/zlib/include -I/usr/local/opt/libxml2/include/libxml2 -std=c++11 -MT libdls_la-ZLib.lo -MD -MP -MF .deps/libdls_la-ZLib.Tpo -c -o libdls_la-ZLib.lo `test -f 'ZLib.cpp' || echo './'`ZLib.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/etherlab/include -Wall -I/usr/local/include -I/usr/local/opt/zlib/include -I/usr/local/opt/libxml2/include/libxml2 -std=c++11 -MT libdls_la-ZLib.lo -MD -MP -MF .deps/libdls_la-ZLib.Tpo -c ZLib.cpp -fno-common -DPIC -o .libs/libdls_la-ZLib.o
ZLib.cpp:22:10: warning: non-portable path to file '<ZLib.h>'; specified path differs in case from file name on disk
[-Wnonportable-include-path]
#include <zlib.h>
^~~~~~~~
<ZLib.h>
In file included from ZLib.cpp:22:
./zlib.h:42:17: error: unknown type name 'string'; did you mean 'std::string'?
EZLib(const string &pmsg) : Exception(pmsg) {};
^~~~~~
std::string
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
^
ZLib.cpp:90:5: error: unknown type name 'uLongf'
uLongf out_size;
^
ZLib.cpp:104:17: error: use of undeclared identifier 'uLongf'
out_size = (uLongf) (src_size * 1.01 + 12 + 0.5);
^
ZLib.cpp:117:28: error: use of undeclared identifier 'Bytef'
comp_ret = ::compress((Bytef *) _out_buf, &out_size,
^
ZLib.cpp:117:35: error: expected expression
comp_ret = ::compress((Bytef *) _out_buf, &out_size,
^
ZLib.cpp:118:34: error: unknown type name 'Bytef'
(const Bytef *) src, src_size);
^
ZLib.cpp:117:16: error: no member named 'compress' in the global namespace; did you mean simply 'compress'?
comp_ret = ::compress((Bytef *) _out_buf, &out_size,
^~~~~~~~~~
compress
ZLib.cpp:88:12: note: 'compress' declared here
void ZLib::compress(const char *src, unsigned int src_size)
^
ZLib.cpp:120:21: error: use of undeclared identifier 'Z_OK'
if (comp_ret != Z_OK) // Fehler beim Komprimieren
^
ZLib.cpp:123:25: error: use of undeclared identifier 'Z_BUF_ERROR'
if (comp_ret == Z_BUF_ERROR) err << " (BUFFER ERROR)";
^
ZLib.cpp:155:5: error: unknown type name 'uLongf'
uLongf zlib_out_size = out_size;
^
ZLib.cpp:173:32: error: use of undeclared identifier 'Bytef'
uncomp_ret = ::uncompress((Bytef *) _out_buf, &zlib_out_size,
^
ZLib.cpp:173:39: error: expected expression
uncomp_ret = ::uncompress((Bytef *) _out_buf, &zlib_out_size,
^
ZLib.cpp:174:38: error: unknown type name 'Bytef'
(const Bytef *) src, src_size);
^
ZLib.cpp:173:18: error: no member named 'uncompress' in the global namespace; did you mean simply 'uncompress'?
uncomp_ret = ::uncompress((Bytef *) _out_buf, &zlib_out_size,
^~~~~~~~~~~~
uncompress
ZLib.cpp:150:12: note: 'uncompress' declared here
void ZLib::uncompress(const char *src, unsigned int src_size,
^
ZLib.cpp:176:23: error: use of undeclared identifier 'Z_OK'
if (uncomp_ret != Z_OK) // Fehler beim Dekomprimieren
^
ZLib.cpp:179:27: error: use of undeclared identifier 'Z_BUF_ERROR'
if (uncomp_ret == Z_BUF_ERROR) {
^
1 warning and 16 errors generated.
make[3]: *** [libdls_la-ZLib.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Digging a bit more I found that I could try to add
#include <string>
#include <cstring>
to the header zlib.h but this does not work either.
What else can I do to solve this issue?.

error: expected ‘,’ or ‘;’ before ‘__attribute_alloc_size__’

I am using a x64 cpu and trying to build a cross compiler, when making this command below some error comes:
export PATH=/home/me/lab1/crossgcc2/bin:$PATH
/home/me/lab1/gcc-5.1.0/configure \
--prefix=/home/me/lab1/crossgcc2 \
--target=arm-unknown-linux-gnueabihf \
--enable-languages=c \
--with-sysroot=/home/eric/lab1/sysroot \
--with-tune=cortex-a9 --with-float=hard
make
error message:
In file included from /home/fly/lab1/gcc-5.1.0/libgcc/../gcc/tsystem.h:101:0,
from /home/fly/lab1/gcc-5.1.0/libgcc/libgcc2.c:27:
/home/fly/lab1/sysroot/usr/include/stdlib.h:510:35: error: expected ‘,’ or ‘;’ before ‘__attribute_alloc_size__’
__THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur;
^
In file included from /home/fly/lab1/gcc-5.1.0/libgcc/../gcc/tsystem.h:108:0,
from /home/fly/lab1/gcc-5.1.0/libgcc/libgcc2.c:27:
/home/fly/lab1/sysroot/usr/include/time.h:123:5: error: unknown type name ‘__syscall_slong_t’
__syscall_slong_t tv_nsec; /* Nanoseconds. */
can anybody tell me what's wrong please? Thanks

installing WordNet on Mac 10.9.2

I'm trying to install WordNet on Mac (OS 10.9.2). I have tried the following
./configure
make
But during make I got some errors. Then I have installed XQuartz-2.7.5. Still I got some error during make. Next, I have installed Xcode but still this dose not fix the problem. This question suggest to install Tcl/TK, which I tried but still I got the following error during make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in doc
Making all in html
make[3]: Nothing to be done for `all'.
Making all in man
make[3]: Nothing to be done for `all'.
Making all in pdf
make[3]: Nothing to be done for `all'.
Making all in ps
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in dict
make[2]: Nothing to be done for `all'.
Making all in include
Making all in tk
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in lib
Making all in wnres
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
if /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -I/usr/X11/include -I/usr/local/include -I.. -I../include -I/usr/local/include -I/usr/X11/include -I/usr/local/include -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -fpermissive -MT wishwn-stubs.o -MD -MP -MF ".deps/wishwn-stubs.Tpo" -c -o wishwn-stubs.o `test -f 'stubs.c' || echo './'`stubs.c; \
then mv -f ".deps/wishwn-stubs.Tpo" ".deps/wishwn-stubs.Po"; else rm -f ".deps/wishwn-stubs.Tpo"; exit 1; fi
clang: warning: -lX11: 'linker' input unused
clang: warning: argument unused during compilation: '-L/usr/X11R6/lib'
stubs.c:43:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result =
~~~~~~ ^
stubs.c:55:14: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = bitfieldstr;
~~~~~~ ^
stubs.c:72:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = "usage: bit bitnum";
~~~~~~ ^
stubs.c:78:14: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = bitfieldstr;
~~~~~~ ^
stubs.c:92:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result =
~~~~~~ ^
stubs.c:105:14: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = resultbuf;
~~~~~~ ^
stubs.c:117:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = "usage: glosses [1 | 0]";
~~~~~~ ^
stubs.c:132:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = "usage: fileinfo [1 | 0]";
~~~~~~ ^
stubs.c:147:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = "usage: byteoffset [1 | 0]";
~~~~~~ ^
stubs.c:162:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = "usage: senseflag [1 | 0]";
~~~~~~ ^
stubs.c:178:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = "usage: contextualhelp partofspeechnum searchtypenum";
~~~~~~ ^
stubs.c:183:14: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = helptext[pos][searchtype];
~~~~~~ ^
stubs.c:193:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = "usage: reopendb";
~~~~~~ ^
stubs.c:207:17: error: no member named 'result' in 'struct Tcl_Interp'
interp -> result = "usage: abortsearch";
~~~~~~ ^
14 errors generated.
make[2]: *** [wishwn-stubs.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Please advice me how to solve this problem. If the problem with Tcl/TK, could you please explain the right way to install it. Thanks
Direct access to interp->result! Oh, that's very deprecated nowadays.
Workaround
Your best bet is to build with Tcl 8.5 or 8.4 (where it's just NOT RECOMMENDED to use such coding patterns), but you can make things work in 8.6 by passing the -DUSE_INTERP_RESULT flag to the compiler. You will get warnings if you do this, but that's better than hard errors, yes?
Fixing it properly
Each of those places really ought to be changed to use Tcl_SetResult, i.e. from:
interp->result = "usage: glosses [1 | 0]";
to
Tcl_SetResult(interp, "usage: glosses [1 | 0]", TCL_DYNAMIC);
(OK, the TCL_DYNAMIC could be TCL_STATIC in this case, but we might as well code defensively; the overhead is effectively zero.)
Note that the Tcl_SetResult API has been supported in Tcl for decades. Changing to use it will not prevent code from building with older versions.

port install subversion fails on osx mountain lion

I cant install subversion with MacPorts on mountain lion. It fails installting db46, here the log:
UPDATE: I also opened a ticket at macports: https://trac.macports.org/ticket/35570
:debug:main db46 has no conflicts
:debug:main Executing org.macports.main (db46)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Skipping completed org.macports.archivefetch (db46)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (db46)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (db46)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (db46)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (db46)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (db46)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Tue Aug 7 14:51:37 CEST 2012
:notice:build ---> Building db46
:debug:build Executing org.macports.build (db46)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/db46/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/db46/work/db-4.6.21/build_unix" && /usr/bin/make -j4 -w all'
:debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/db46/work/db-4.6.21/build_unix" && /usr/bin/make -j4 -w all
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/db46/work/db-4.6.21/build_unix'
:info:build /bin/sh ./libtool --mode=compile /usr/bin/clang -c -pipe -O2 -arch x86_64 -I../dist/.. -I/opt/local/include ../dist/../db_dump185/db_dump185.c
:info:build /bin/sh ./libtool --mode=link /usr/bin/clang -pipe -O2 -arch x86_64 -o db_upgrade -L/opt/local/lib -arch x86_64 \
:info:build db_upgrade.lo util_sig.lo libdb-4.6.la -lpthread
:info:build /bin/sh ./libtool --mode=compile /usr/bin/clang -c -I. -I../dist/.. -I/opt/local/include -pipe -O2 -arch x86_64 ../dist/../db_verify/db_verify.c
:info:build /usr/bin/clang -c -pipe -O2 -arch x86_64 -I../dist/.. -I/opt/local/include ../dist/../db_dump185/db_dump185.c -fno-common -DPIC -o .libs/db_dump185.o
:info:build /usr/bin/clang -c -I. -I../dist/.. -I/opt/local/include -pipe -O2 -arch x86_64 ../dist/../db_verify/db_verify.c -fno-common -DPIC -o .libs/db_verify.o
:info:build ../dist/../db_dump185/db_dump185.c:211:13: warning: implicit declaration of function 'dbopen' is invalid in C99 [-Wimplicit-function-declaration]
:info:build if ((dbp = dbopen(argv[0], O_RDONLY, 0, DB_BTREE, NULL)) == NULL) {
:info:build ^
:info:build ../dist/../db_dump185/db_dump185.c:211:11: warning: incompatible integer to pointer conversion assigning to 'DB *' (aka 'struct __db *') from 'int';
:info:build if ((dbp = dbopen(argv[0], O_RDONLY, 0, DB_BTREE, NULL)) == NULL) {
:info:build ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ../dist/../db_dump185/db_dump185.c:212:12: warning: incompatible integer to pointer conversion assigning to 'DB *' (aka 'struct __db *') from 'int';
:info:build if ((dbp =
:info:build ^
:info:build ../dist/../db_dump185/db_dump185.c:228:24: error: no member named 'seq' in 'struct __db'
:info:build while (!(rval = dbp->seq(dbp, &key, &data, R_NEXT))) {
:info:build ~~~ ^
:info:build ../dist/../db_dump185/db_dump185.c:228:46: error: use of undeclared identifier 'R_NEXT'
:info:build while (!(rval = dbp->seq(dbp, &key, &data, R_NEXT))) {
:info:build ^
:info:build ../dist/../db_dump185/db_dump185.c:233:24: error: no member named 'seq' in 'struct __db'
:info:build while (!(rval = dbp->seq(dbp, &key, &data, R_NEXT))) {
:info:build ~~~ ^
:info:build ../dist/../db_dump185/db_dump185.c:233:46: error: use of undeclared identifier 'R_NEXT'
:info:build while (!(rval = dbp->seq(dbp, &key, &data, R_NEXT))) {
:info:build ^
:info:build ../dist/../db_dump185/db_dump185.c:261:18: error: no member named 'internal' in 'struct __db'
:info:build hash185p = dbp->internal;
:info:build ~~~ ^
:info:build ../dist/../db_dump185/db_dump185.c:263:19: error: no member named 'internal' in 'struct __db'
:info:build hash186p = dbp->internal;
:info:build ~~~ ^
:info:build ../dist/../db_dump185/db_dump185.c:288:13: error: no member named 'internal' in 'struct __db'
:info:build btp = dbp->internal;
:info:build ~~~ ^
:info:build 3 warnings and 7 errors generated.
:info:build make: *** [db_dump185.lo] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build /usr/bin/clang -c -I. -I../dist/.. -I/opt/local/include -pipe -O2 -arch x86_64 ../dist/../db_verify/db_verify.c -o db_verify.o >/dev/null 2>&1
:info:build /usr/bin/clang -pipe -O2 -arch x86_64 -o .libs/db_upgrade -arch x86_64 .libs/db_upgrade.o .libs/util_sig.o -L/opt/local/lib ./.libs/libdb-4.6.dylib -lpthread
:info:build creating db_upgrade
:info:build /bin/sh ./libtool --mode=execute true db_upgrade
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/db46/work/db-4.6.21/build_unix'
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/db46/work/db-4.6.21/build_unix" && /usr/bin/make -j4 -w all
:info:build Exit code: 2
:error:build org.macports.build for port db46 returned: command execution failed
:debug:build Error code: CHILDSTATUS 4210 2
:debug:build Backtrace: command execution failed
while executing
"system -nice 0 $fullcmdstring"
("eval" body line 1)
invoked from within
"eval system $notty $nice \$fullcmdstring"
invoked from within
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for db46: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port db46 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/db46/main.log
admins-MacBook-Pro:config admin$
There was an older version of db.h in /opt/local/include/. After deletion of the file the problem was fixed.

compiling openss7

i got an error while compiling openss7.
Do you know what happen ?
Thanks....
gcc -DHAVE_CONFIG_H -I. -I. -I. -DLFS=1 -imacros ./config.h -imacros ./include/sys/config.h -I. -I./include -I./include -nostdinc -iwithprefix include -DLINUX -D__KERNEL__ -I/usr/src/linux-headers-lbm-2.6.28-11-generic -I/lib/modules/2.6.28-11-generic/build/include -Iinclude2 -I/lib/modules/2.6.28-11-generic/build/include -I/lib/modules/2.6.28-11-generic/build/arch/x86/include -include /lib/modules/2.6.28-11-generic/build/include/linux/autoconf.h -Iubuntu/include -I/lib/modules/2.6.28-11-generic/build/ubuntu/include -I/lib/modules/2.6.28-11-generic/build/arch/x86/include/asm/mach-default '-DKBUILD_STR(s)=#s' '-DKBUILD_BASENAME=KBUILD_STR('`echo libLfS_specfs_a-specfs.o | sed -e 's,lib.*_a-,,;s,\.o,,;s,-,_,g'`')' -DMODULE -D__NO_VERSION__ -DEXPORT_SYMTAB -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -Wa,-mtune=generic32 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -ffreestanding -c -o libLfS_specfs_a-specfs.o `test -f 'src/kernel/specfs.c' || echo './'`src/kernel/specfs.c
In file included from src/kernel/specfs.c:123:
src/kernel/strspecfs.c: In function ‘specfs_init_cache’:
src/kernel/strspecfs.c:1406: warning: passing argument 5 of ‘kmem_cache_create’ from incompatible pointer type
src/kernel/strspecfs.c:1406: error: too many arguments to function ‘kmem_cache_create’
In file included from src/kernel/specfs.c:126:
src/kernel/strlookup.c: In function ‘cdev_lookup’:
src/kernel/strlookup.c:508: warning: format not a string literal and no format arguments
src/kernel/strlookup.c:514: warning: format not a string literal and no format arguments
src/kernel/strlookup.c:521: warning: format not a string literal and no format arguments
src/kernel/strlookup.c: In function ‘cdrv_lookup’:
src/kernel/strlookup.c:562: warning: format not a string literal and no format arguments
src/kernel/strlookup.c: In function ‘fmod_lookup’:
src/kernel/strlookup.c:604: warning: format not a string literal and no format arguments
src/kernel/strlookup.c: In function ‘cdev_search’:
src/kernel/strlookup.c:709: warning: format not a string literal and no format arguments
src/kernel/strlookup.c:716: warning: format not a string literal and no format arguments
src/kernel/strlookup.c: In function ‘fmod_search’:
src/kernel/strlookup.c:768: warning: format not a string literal and no format arguments
src/kernel/strlookup.c: In function ‘cmin_search’:
src/kernel/strlookup.c:823: warning: format not a string literal and no format arguments
src/kernel/strlookup.c:830: warning: format not a string literal and no format arguments
src/kernel/strlookup.c:840: warning: format not a string literal and no format arguments
src/kernel/strlookup.c:848: warning: format not a string literal and no format arguments
In file included from src/kernel/specfs.c:129:
src/kernel/strattach.c: In function ‘check_mnt’:
src/kernel/strattach.c:131: error: ‘struct vfsmount’ has no member named ‘mnt_namespace’
src/kernel/strattach.c:131: error: ‘struct task_struct’ has no member named ‘namespace’
src/kernel/strattach.c: In function ‘do_fattach’:
src/kernel/strattach.c:200: error: ‘struct nameidata’ has no member named ‘dentry’
src/kernel/strattach.c:200: error: ‘struct nameidata’ has no member named ‘mnt’
src/kernel/strattach.c:200: error: ‘struct nameidata’ has no member named ‘dentry’
src/kernel/strattach.c:203: error: ‘struct nameidata’ has no member named ‘mnt’
src/kernel/strattach.c:208: error: ‘struct nameidata’ has no member named ‘mnt’
src/kernel/strattach.c:208: error: ‘struct nameidata’ has no member named ‘mnt’
src/kernel/strattach.c:208: error: ‘struct nameidata’ has no member named ‘dentry’
src/kernel/strattach.c:226: error: implicit declaration of function ‘path_release’
src/kernel/strattach.c: In function ‘do_fdetach’:
src/kernel/strattach.c:253: error: ‘struct nameidata’ has no member named ‘dentry’
src/kernel/strattach.c:253: error: ‘struct nameidata’ has no member named ‘mnt’
src/kernel/strattach.c:255: error: ‘struct nameidata’ has no member named ‘mnt’
src/kernel/strattach.c:257: error: ‘struct nameidata’ has no member named ‘dentry’
src/kernel/strattach.c:262: error: ‘struct nameidata’ has no member named ‘mnt’
src/kernel/strattach.c:265: error: ‘struct nameidata’ has no member named ‘mnt’
In file included from src/kernel/specfs.c:132:
src/kernel/strpipe.c: In function ‘do_spipe’:
src/kernel/strpipe.c:372: warning: assignment discards qualifiers from pointer target type
make[4]: *** [libLfS_specfs_a-specfs.o] Error 1
make[4]: Leaving directory `/home/deddihp/dev/source/openss7-0.9.2.G/streams-0.9.2.4'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/deddihp/dev/source/openss7-0.9.2.G/streams-0.9.2.4'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/deddihp/dev/source/openss7-0.9.2.G/streams-0.9.2.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/deddihp/dev/source/openss7-0.9.2.G'
make: *** [all] Error 2
finally i got the conclusion,
it is because of my kernel is newer, so i have to downgrade it.

Resources