Discussion:
error while compiling strcompat-0.9.2.2 package
kishore
2006-03-10 07:24:28 UTC
Permalink
hello there,

Used openss7 packages : LiS-2.18.1.tar.gz, strcompat-0.9.2.2.tar.bz2
Redhat-release : Red Hat Linux release 8.0 (Psyche)
More information : Linux kp 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT
2002 i686 i686 i386 GNU/Linux

I am working on the above specified distribution. I selected above versions
of streams related packages but am not able compile strcompat -
0.9.2.2.tar.bz2. can anyone suggest, how to overcome the compilation
problems.

last 25 lines of make result is as follows :
rc/include/sys/os7/timer.h: In function `ss7_start_timer':
src/include/sys/os7/timer.h:127: `exp_func' undeclared (first use in this
function)
src/kernel/os7compat.c: At top level:
src/kernel/os7compat.c:123: parse error before "ss7_bufsrv"
src/kernel/os7compat.c:123: warning: type defaults to `int' in declaration
of `ss7_bufsrv'
src/kernel/os7compat.c:123: warning: data definition has no type or storage
class
src/kernel/os7compat.c:568: parse error before "ss7_oput"
src/kernel/os7compat.c:569: warning: return type defaults to `int'
src/kernel/os7compat.c:585: parse error before "ss7_osrv"
src/kernel/os7compat.c:586: warning: return type defaults to `int'
src/kernel/os7compat.c:606: parse error before "ss7_iput"
src/kernel/os7compat.c:607: warning: return type defaults to `int'
src/kernel/os7compat.c:623: parse error before "ss7_isrv"
src/kernel/os7compat.c:624: warning: return type defaults to `int'
src/kernel/os7compat.c:645: parse error before '*' token
src/kernel/os7compat.c:645: `_RP' declared as function returning a function
src/kernel/os7compat.c:645: warning: function declaration isn't a prototype
src/kernel/os7compat.c:651: parse error before '*' token
src/kernel/os7compat.c:651: `_RP' declared as function returning a function
src/kernel/os7compat.c:651: warning: function declaration isn't a prototype
make[2]: *** [libCOMPATmods_a-os7compat.o] Error 1
make[2]: Leaving directory `/usr/src/strcompat-0.9.2.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/strcompat-0.9.2.2'
make: *** [all] Error 2

regards,
kishore, packetware.
Brian F. G. Bidulock
2006-03-10 07:56:13 UTC
Permalink
kishore,

You will have more luck if you use the latest software with the latest
Post by kishore
hello there,
Used openss7 packages : LiS-2.18.1.tar.gz, strcompat-0.9.2.2.tar.bz2
Don't use LiS-2.18.1 with strcompat-0.9.2.2: LiS-2.18.2 is available and
was released with strcompat-0.9.2.2. Upgrade your LiS. In fact, use
streams-0.7a.4 instead. LiS is full of bugs and performs like a snail;
use Linux Fast-STREAMS instead.
Post by kishore
Redhat-release : Red Hat Linux release 8.0 (Psyche)
Why are you using this old RedHat 8.0 distribution? Are you nuts? The
latest RedHat is FC4 or EL4. Upgrade your distro.
Post by kishore
More information : Linux kp 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT
2002 i686 i686 i386 GNU/Linux
There is nowhere near the latest kernel available for even RedHat 8.0.
I have some old RH 7.2 systems I use for test and validation and their
last kernel is 2.4.20-28.7. Upgrade your kernel.

Start with the above upgrades and then see if you have any problems.

--brian
Post by kishore
I am working on the above specified distribution. I selected above versions
of streams related packages but am not able compile strcompat -
0.9.2.2.tar.bz2. can anyone suggest, how to overcome the compilation
problems.
src/include/sys/os7/timer.h:127: `exp_func' undeclared (first use in this
function)
src/kernel/os7compat.c:123: parse error before "ss7_bufsrv"
src/kernel/os7compat.c:123: warning: type defaults to `int' in declaration
of `ss7_bufsrv'
src/kernel/os7compat.c:123: warning: data definition has no type or storage
class
src/kernel/os7compat.c:568: parse error before "ss7_oput"
src/kernel/os7compat.c:569: warning: return type defaults to `int'
src/kernel/os7compat.c:585: parse error before "ss7_osrv"
src/kernel/os7compat.c:586: warning: return type defaults to `int'
src/kernel/os7compat.c:606: parse error before "ss7_iput"
src/kernel/os7compat.c:607: warning: return type defaults to `int'
src/kernel/os7compat.c:623: parse error before "ss7_isrv"
src/kernel/os7compat.c:624: warning: return type defaults to `int'
src/kernel/os7compat.c:645: parse error before '*' token
src/kernel/os7compat.c:645: `_RP' declared as function returning a function
src/kernel/os7compat.c:645: warning: function declaration isn't a prototype
src/kernel/os7compat.c:651: parse error before '*' token
src/kernel/os7compat.c:651: `_RP' declared as function returning a function
src/kernel/os7compat.c:651: warning: function declaration isn't a prototype
make[2]: *** [libCOMPATmods_a-os7compat.o] Error 1
make[2]: Leaving directory `/usr/src/strcompat-0.9.2.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/strcompat-0.9.2.2'
make: *** [all] Error 2
regards,
kishore, packetware.
_______________________________________________
Linux-streams mailing list
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
--
Brian F. G. Bidulock ¦ The reasonable man adapts himself to the ¦
***@openss7.org ¦ world; the unreasonable one persists in ¦
http://www.openss7.org/ ¦ trying to adapt the world to himself. ¦
¦ Therefore all progress depends on the ¦
¦ unreasonable man. -- George Bernard Shaw ¦
Brian F. G. Bidulock
2006-03-10 13:33:28 UTC
Permalink
kishore,
hello,
I . LiS-2.18.2.tar.bz2
----------------------
Used openss7 packages : LiS-2.18.2.tar.bz2, strcompat-0.9.2.2.tar.bz2.
Redhat-release : Red Hat Enterprise Linux ES release 4
(Nahant Update 2)
More information : Linux localhost.localdomain 2.6.9-22.EL #1
Mon Sep 19 18:20:28 EDT 2005 i686
i686 i386
GNU/Linux
I tried with the above specified linux distribution.
I used above versions of streams related packages but am
not able compile strcompat -0.9.2.2. can anyone suggest,
how to overcome the compilation problems.
strcompat defaults to building against streams-0.7a.4 (the STREAMS that
works). To compile it against LiS (that crashes), pass --with-lis to
configure: e.g.

wget http://www.openss7.org/tarballs/strcompat-0.9.2.2.tar.gz
tar -xzvf strcompat-0.9.2.2.tar.gz
cd strcompat-0.9.2.2
./configure --with-lis
make compile.log
sudo make install.log
sudo make uninstall.log
cd ..
rm -rf strcompat-0.9.2.2*

For future reference, giving the last error: lines of failed make provides
almost no information. The first error: line is the significant one. So,
in the future, type

make compile.log

and if it fails, mail me the compile.log or a least the first error lines
of the failed make instead of the last.

Also, the make output is usually useless without seeing the config.log
file that resulted from calling ./configure

So, in the future, if you have a problem, email me config.log, ...
..well... why don't you read section "7.2 Problem Reports" in the
manual as in:

wget http://www.openss7.org/tarballs/strcompat-0.9.2.2.tar.gz
tar -xzvf strcompat-0.9.2.2.tar.gz
cd strcompat-0.9.2.2
less doc/manual/strcompat.html

more below...
src/kernel/os7compat.c:123: warning: type defaults to `int' in declaration
of `ss7_bufsrv'
src/kernel/os7compat.c:123: warning: data definition has no type or storage
class
src/kernel/os7compat.c:303: error: dereferencing pointer to incomplete type
src/kernel/os7compat.c:309: error: dereferencing pointer to incomplete type
src/kernel/os7compat.c:568: error: syntax error before "ss7_oput"
src/kernel/os7compat.c:569: warning: return type defaults to `int'
src/kernel/os7compat.c:585: error: syntax error before "ss7_osrv"
src/kernel/os7compat.c:586: warning: return type defaults to `int'
src/kernel/os7compat.c:606: error: syntax error before "ss7_iput"
src/kernel/os7compat.c:607: warning: return type defaults to `int'
src/kernel/os7compat.c:623: error: syntax error before "ss7_isrv"
src/kernel/os7compat.c:624: warning: return type defaults to `int'
src/kernel/os7compat.c:645: error: syntax error before '*' token
src/kernel/os7compat.c:645: error: `streamscall' declared as function
returning a function
src/kernel/os7compat.c:645: warning: function declaration isn't a prototype
src/kernel/os7compat.c:651: error: syntax error before '*' token
src/kernel/os7compat.c:651: error: `streamscall' declared as function
returning a function
src/kernel/os7compat.c:651: warning: function declaration isn't a prototype
make[2]: *** [libCOMPATmods_a-os7compat.o] Error 1
make[2]: Leaving directory `/usr/src/strcompat-0.9.2.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/strcompat-0.9.2.2'
make: *** [all] Error 2
II : streams-0.7a.4.tar
-----------------------
Used openss7 packages : streams-0.7a.4.tar.
Redhat-release : Red Hat Enterprise Linux ES release 4
(Nahant Update 2)
More information : Linux localhost.localdomain 2.6.9-22.EL #1
Mon Sep 19 18:20:28 EDT 2005 i686
i686 i386
GNU/Linux
Missing file from the distribution. However, send me your config.log: you
should not be having this problem unless you are passing some arguments to
./configure such as --enable-maintainer-mode. If you are doing that, don't.
Or, do "touch tests/testsuite-admin.at" in the head source directory in
advance. Like:

wget http://www.openss7.org/tarballs/streams-0.7a.4.tar.bz2
tar -xjvf streams-0.7a.4.tar.bz2
pushd streams-0.7a.4
touch tests/testsuite-admin.at
./configure --enable-maintainer-mode
make compile.log
sudo make install.log
sudo make uninstall.log
popd
rm -rf streams-0.7a.4*

Again, read "7.2 Problem Reports" as in:

wget http://www.openss7.org/tarballs/streams-0.7a.4.tar.bz2
tar -xjvf streams-0.7a.4.tar.bz2
less doc/manua/STREAMS.html
/Problem/

I really need to see your config.log and compile.log files when you report
problems like this.

--brian
I came across an error, while compiling streams-0.7a.4, itself .
make all-recursive
make[1]: Entering directory `/usr/src/streams-0.7a.4'
Making all in include
make[2]: Entering directory `/usr/src/streams-0.7a.4/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/streams-0.7a.4/include'
Making all in .
make[2]: Entering directory `/usr/src/streams-0.7a.4'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/usr/src/streams-0.7a.4'
Making all in tests
make[2]: Entering directory `/usr/src/streams-0.7a.4/tests'
/usr/bin/autom4te --language=autotest -I . testsuite.at -o testsuite
testsuite.at:137: /usr/bin/m4: Cannot open testsuite-admin.at: No such file
or d
irectory
autom4te: /usr/bin/m4 failed with exit status: 1
make[2]: *** [testsuite] Error 1
make[2]: Leaving directory `/usr/src/streams-0.7a.4/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/streams-0.7a.4'
make: *** [all] Error 2
I made selinux disabled ( using /etc/selinux/config file ) in my system.
Thanks in advance.
regards,
kishore, packetware.
--
Brian F. G. Bidulock ¦ The reasonable man adapts himself to the ¦
***@openss7.org ¦ world; the unreasonable one persists in ¦
http://www.openss7.org/ ¦ trying to adapt the world to himself. ¦
¦ Therefore all progress depends on the ¦
¦ unreasonable man. -- George Bernard Shaw ¦
Brian F. G. Bidulock
2006-03-10 13:41:35 UTC
Permalink
kishore,

Here's section 7.2 from the manual:

7.2 Problem Reports

Problem reports in the following categories should include a log file
as indicated in the table below:

`./configure'
A problem with the configuration process occurs that causes the
`./configure' command to fail. The problem report must include
the config.log file that was generated by configure.

`make compile.log'
A problem with the build process occurs that causes the `make'
command to fail. Perform `make clean' and then `make
compile.log' and attach the config.log and compile.log files to
the problem report.

`make check.log'
A problem occurs with the `make check' target that causes it to
fail. Perform `make check-clean check.log' and attach the
config.log, compile.log and check.log files to the problem
report.

`sudo make install.log'
A problem occurs with `sudo make install' that causes it to
fail. Perform `sudo make uninstall' and `sudo make install.log'
and attach the config.log, compile.log, check.log, and
install.log files to the problem report.

`[sudo] make installcheck'
A problem occurs with the `make installcheck' target that
causes the test suite to fail. Attach the resulting
tests/testsuite.log file to the problem report. There is no
need to attach the other files as they are included in
tests/testsuite.log.

For other problems that occur during the use of the Linux Fast-STREAMS
package, please write a test case for the test suite that recreates
the problem if one does not yet exist and provide a test program patch
with the problem report. Also include whatever log files are generated
by the kernel (cmn_err(9)) or by the strerr(8) or strace(1) facilities
(strlog(9)).

--brian
Post by kishore
kishore,
hello,
I . LiS-2.18.2.tar.bz2
----------------------
Used openss7 packages : LiS-2.18.2.tar.bz2, strcompat-0.9.2.2.tar.bz2.
Redhat-release : Red Hat Enterprise Linux ES release 4
(Nahant Update 2)
More information : Linux localhost.localdomain 2.6.9-22.EL #1
Mon Sep 19 18:20:28 EDT 2005 i686
i686 i386
GNU/Linux
I tried with the above specified linux distribution.
I used above versions of streams related packages but am
not able compile strcompat -0.9.2.2. can anyone suggest,
how to overcome the compilation problems.
strcompat defaults to building against streams-0.7a.4 (the STREAMS that
works). To compile it against LiS (that crashes), pass --with-lis to
configure: e.g.
wget http://www.openss7.org/tarballs/strcompat-0.9.2.2.tar.gz
tar -xzvf strcompat-0.9.2.2.tar.gz
cd strcompat-0.9.2.2
./configure --with-lis
make compile.log
sudo make install.log
sudo make uninstall.log
cd ..
rm -rf strcompat-0.9.2.2*
For future reference, giving the last error: lines of failed make provides
almost no information. The first error: line is the significant one. So,
in the future, type
make compile.log
and if it fails, mail me the compile.log or a least the first error lines
of the failed make instead of the last.
Also, the make output is usually useless without seeing the config.log
file that resulted from calling ./configure
So, in the future, if you have a problem, email me config.log, ...
..well... why don't you read section "7.2 Problem Reports" in the
wget http://www.openss7.org/tarballs/strcompat-0.9.2.2.tar.gz
tar -xzvf strcompat-0.9.2.2.tar.gz
cd strcompat-0.9.2.2
less doc/manual/strcompat.html
more below...
src/kernel/os7compat.c:123: warning: type defaults to `int' in declaration
of `ss7_bufsrv'
src/kernel/os7compat.c:123: warning: data definition has no type or storage
class
src/kernel/os7compat.c:303: error: dereferencing pointer to incomplete type
src/kernel/os7compat.c:309: error: dereferencing pointer to incomplete type
src/kernel/os7compat.c:568: error: syntax error before "ss7_oput"
src/kernel/os7compat.c:569: warning: return type defaults to `int'
src/kernel/os7compat.c:585: error: syntax error before "ss7_osrv"
src/kernel/os7compat.c:586: warning: return type defaults to `int'
src/kernel/os7compat.c:606: error: syntax error before "ss7_iput"
src/kernel/os7compat.c:607: warning: return type defaults to `int'
src/kernel/os7compat.c:623: error: syntax error before "ss7_isrv"
src/kernel/os7compat.c:624: warning: return type defaults to `int'
src/kernel/os7compat.c:645: error: syntax error before '*' token
src/kernel/os7compat.c:645: error: `streamscall' declared as function
returning a function
src/kernel/os7compat.c:645: warning: function declaration isn't a prototype
src/kernel/os7compat.c:651: error: syntax error before '*' token
src/kernel/os7compat.c:651: error: `streamscall' declared as function
returning a function
src/kernel/os7compat.c:651: warning: function declaration isn't a prototype
make[2]: *** [libCOMPATmods_a-os7compat.o] Error 1
make[2]: Leaving directory `/usr/src/strcompat-0.9.2.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/strcompat-0.9.2.2'
make: *** [all] Error 2
II : streams-0.7a.4.tar
-----------------------
Used openss7 packages : streams-0.7a.4.tar.
Redhat-release : Red Hat Enterprise Linux ES release 4
(Nahant Update 2)
More information : Linux localhost.localdomain 2.6.9-22.EL #1
Mon Sep 19 18:20:28 EDT 2005 i686
i686 i386
GNU/Linux
Missing file from the distribution. However, send me your config.log: you
should not be having this problem unless you are passing some arguments to
./configure such as --enable-maintainer-mode. If you are doing that, don't.
Or, do "touch tests/testsuite-admin.at" in the head source directory in
wget http://www.openss7.org/tarballs/streams-0.7a.4.tar.bz2
tar -xjvf streams-0.7a.4.tar.bz2
pushd streams-0.7a.4
touch tests/testsuite-admin.at
./configure --enable-maintainer-mode
make compile.log
sudo make install.log
sudo make uninstall.log
popd
rm -rf streams-0.7a.4*
wget http://www.openss7.org/tarballs/streams-0.7a.4.tar.bz2
tar -xjvf streams-0.7a.4.tar.bz2
less doc/manua/STREAMS.html
/Problem/
I really need to see your config.log and compile.log files when you report
problems like this.
--brian
I came across an error, while compiling streams-0.7a.4, itself .
make all-recursive
make[1]: Entering directory `/usr/src/streams-0.7a.4'
Making all in include
make[2]: Entering directory `/usr/src/streams-0.7a.4/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/streams-0.7a.4/include'
Making all in .
make[2]: Entering directory `/usr/src/streams-0.7a.4'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/usr/src/streams-0.7a.4'
Making all in tests
make[2]: Entering directory `/usr/src/streams-0.7a.4/tests'
/usr/bin/autom4te --language=autotest -I . testsuite.at -o testsuite
testsuite.at:137: /usr/bin/m4: Cannot open testsuite-admin.at: No such file
or d
irectory
autom4te: /usr/bin/m4 failed with exit status: 1
make[2]: *** [testsuite] Error 1
make[2]: Leaving directory `/usr/src/streams-0.7a.4/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/streams-0.7a.4'
make: *** [all] Error 2
I made selinux disabled ( using /etc/selinux/config file ) in my system.
Thanks in advance.
regards,
kishore, packetware.
--
Brian F. G. Bidulock ¦ The reasonable man adapts himself to the ¦
http://www.openss7.org/ ¦ trying to adapt the world to himself. ¦
¦ Therefore all progress depends on the ¦
¦ unreasonable man. -- George Bernard Shaw ¦
_______________________________________________
Linux-streams mailing list
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
--
Brian F. G. Bidulock ¦ The reasonable man adapts himself to the ¦
***@openss7.org ¦ world; the unreasonable one persists in ¦
http://www.openss7.org/ ¦ trying to adapt the world to himself. ¦
¦ Therefore all progress depends on the ¦
¦ unreasonable man. -- George Bernard Shaw ¦
Loading...