Current time: 11-16-2024, 12:42 PM Hello There, Guest! (LoginRegister)


Post Reply 
Error on Alpha Server
Author Message
Alex Joe Offline
Junior Member
*

Posts: 72
Joined: Oct 2007
Reputation: 0
Post: #1
Error on Alpha Server
Hello!
After 'make install' on Debian etch I've this problem:

Quote:alphavox:~/web/svn/nightly# make install
cd ./tools && make install
make[1]: Entering directory `/root/web/svn/nightly/tools'
(cd ./daemon; \
make ispcp_daemonWink
make[2]: Entering directory `/root/web/svn/nightly/tools/daemon'
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o ispcp_daemon.o ispcp_daemon.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o message.o message.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o daemon_init.o daemon_init.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o say.o say.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o signal-handlers.o signal-handlers.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o receive_data.o receive_data.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o send_data.o send_data.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o take_connection.o take_connection.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o send_line.o send_line.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o recv_line.o recv_line.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o helo_cmd.o helo_cmd.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o helo_syntax.o helo_syntax.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o lr_cmd.o lr_cmd.c
gcc -ansi -Wall -Wstrict-prototypes -pedantic -c -O3 -o lr_syntax.o lr_syntax.c
In file included from /usr/include/sys/procfs.h:30,
from lr_syntax.c:10:
/usr/include/sys/ucontext.h:56: error: expected specifier-qualifier-list before âstack_tâ
make[2]: *** [lr_syntax.o] Error 1
make[2]: Leaving directory `/root/web/svn/nightly/tools/daemon'
make[1]: *** [daemon/ispcp_daemon] Error 2
make[1]: Leaving directory `/root/web/svn/nightly/tools'
make: *** [install] Error 2

System info:
Debian etch 2.6.18-5-alpha-smp #1 SMP
Two Alpha EV56 599.42MHz processors, 1024.28 total bogomips, 2047M RAM
System library 2.3.6

I've no idea what's wrong Sad
11-05-2007 08:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Error on Alpha Server
Hm, maybe (just guessing - but I've no specific idea) debain an alpha cpu behaves similar too some sort of BSD?

in lr_syntax we find this:

#if defined(__OpenBSD__) || defined(__FreeBSD__)
#include <sys/proc.h>
#else
#include <sys/procfs.h>
#endif

so maybe it's something there.

I assume the /usr/include files are different on a aplpha than on my server - so it's not easy...

/J
11-05-2007 10:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Alex Joe Offline
Junior Member
*

Posts: 72
Joined: Oct 2007
Reputation: 0
Post: #3
RE: Error on Alpha Server
On Alpha are the same files in /usr/include. It's the same Debian which is on x86 architecture, differences are only in kernel. Alpha is 64-bit architecture.

Files in /usr/include/sys/ on my server:
Quote:acct.h ipc.h procfs.h socket.h termios.h user.h
bitypes.h kdaemon.h profil.h socketvar.h timeb.h ustat.h
cdefs.h kd.h ptrace.h soundcard.h time.h utsname.h
dir.h klog.h queue.h statfs.h times.h vfs.h
epoll.h mman.h quota.h stat.h timex.h vlimit.h
errno.h mount.h raw.h statvfs.h ttychars.h vt.h
fcntl.h msg.h reboot.h stropts.h ttydefaults.h vtimes.h
file.h mtio.h resource.h swap.h types.h wait.h
fsuid.h param.h select.h syscall.h ucontext.h xattr.h
gmon.h pci.h sem.h sysctl.h uio.h
gmon_out.h personality.h sendfile.h sysinfo.h ultrasound.h
ioctl.h poll.h shm.h syslog.h un.h
io.h prctl.h signal.h sysmacros.h unistd.h

File procfs.h exist. It's maybe different version of gcc? I've version 4.1.2.
Sorry for my English, I'm from Poland.
11-06-2007 04:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Alex Joe Offline
Junior Member
*

Posts: 72
Joined: Oct 2007
Reputation: 0
Post: #4
RE: Error on Alpha Server
I look files procfs.h and ucontext.h.

Line 30 of procfs.h file:
Quote:#include <sys/ucontext.h>

Lines from 50 to 60 of ucontext.h:
Quote:/* Userlevel context. */
typedef struct ucontext
{
unsigned long int uc_flags;
struct ucontext *uc_link;
unsigned long __uc_osf_sigmask;
stack_t uc_stack;
mcontext_t uc_mcontext;
__sigset_t uc_sigmask;
} ucontext_t;
Error is on line 56: stack_t uc stack;
11-06-2007 04:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #5
RE: Error on Alpha Server
I'm afraid I'm unable to give any help here. Could you please open a bug report in Debian's BTS?
# apt-get install reportbug
$ reportbug /usr/include/sys/ucontext.h
11-06-2007 07:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Alex Joe Offline
Junior Member
*

Posts: 72
Joined: Oct 2007
Reputation: 0
Post: #6
RE: Error on Alpha Server
Hi,

I resolve this problem:

Quote:/* Userlevel context. */
typedef struct ucontext
{
unsigned long int uc_flags;
struct ucontext *uc_link;
unsigned long __uc_osf_sigmask;
/* stack_t uc_stack; */
mcontext_t uc_mcontext;
__sigset_t uc_sigmask;
} ucontext_t;

#endif /* sys/ucontext.h */

And it works.
There is bug in Debian distribution for Alpha. I open a bug report.
11-15-2007 08:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
unugmax Offline
Newbie
*

Posts: 8
Joined: May 2008
Reputation: 0
Post: #7
RE: Error on Alpha Server
Hi,

Just had the same problem on Gentoo and a PPC. That fixed it. Thanks.

cu
Max
08-14-2008 12:51 AM
Find all posts by this user Quote this message in a reply
HansIgel Offline


Posts: 1
Joined: Nov 2009
Reputation: 0
Post: #8
RE: Error on Alpha Server
Same problem on an UltraSparc with Debian64!
There is something wrong with the cases 32/62 ...
Disable (comment) Line 265 in ucontext.h like discribed above.

GOOD WORK! THX!
11-05-2009 05:48 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)