Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

compiling xview application

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> compiling xview application Page: [1]
Login
Message << Older Topic   Newer Topic >>
compiling xview application - Oct. 17, '05, 7:00:44 PM   
tjbrosnan

 

Posts: 3
Joined: Mar. 17, '03,
Status: offline
First of all, thanks for porting xview. It will be very useful for some old Solaris applications that we still use in our lab.

I'm having trouble compiling any xview applications, however. I get the following error message with all of the programs I've tried so far:
gcc -O2 -I/usr/openwin/include -L/usr/openwin/lib -I/usr/X11R6/include -L/usr/X11R6/lib -g -DLINUX -c disp.c
In file included from /usr/include/sys/ucontext.h:31,
from /usr/openwin/include/xview/notify.h:28,
from /usr/openwin/include/xview/pkg.h:27,
from /usr/openwin/include/xview/pkg_public.h:19,
from /usr/openwin/include/xview/generic.h:39,
from /usr/openwin/include/xview/xview_xvin.h:41,
from /usr/openwin/include/xview/xview.h:18,
from disp.h:25,
from disp.c:12:
/usr/include/ucontext.h:46: error: parse error before "stack_t"
/usr/include/ucontext.h:48: error: parse error before '}' token
*** Error code 1

Stop.
>


I assume that there is a simple workaround, but I haven't been able to figure it out.
Thanks.

Tom
Post #: 1
RE: compiling xview application - Oct. 18, '05, 1:06:15 AM   
Rodney

 

Posts: 3142
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
> First of all, thanks for porting xview.

You're welcome.
A significant financial contribution for the Xview work was made by member benker.

The "-DLINUX" shouldn't be used (you're not on a Linux machine).

I'd suggest adding "-D_ALL_SOURCE" to your compiles.
That will clear this up since 'stack_t' is guarded by _ALL_SOURCE.

I've built several Xview applications that do include <xview/xview.h>
which is at the head of the include file cascade the error output has.
These apps are the ones that are part of the Xview toolkit and others (i.e. jove).
There wasn't a problem as you have quoted when "-D_ALL_SOURCE" is used.

(in reply to tjbrosnan)
Post #: 2
RE: compiling xview application - Oct. 18, '05, 1:32:24 PM   
tjbrosnan

 

Posts: 3
Joined: Mar. 17, '03,
Status: offline
The -DLINUX was an artifact from when the code was ported from Solaris to Linux. I've removed that to avoid confusion.

The -D_ALL_SOURCE fixes the problem, but I still get a link error at the end:

> g++ -o disp disp.o bilinear.o event.o panel.o files.o help.o image_procs.o io.o -O2 -L/usr/openwin/lib -L/usr/X11R6/lib -D_ALL_SOURCE -lxview -lolgx -lX11 -lm
/usr/openwin/lib/libxview.a(ndet_loop.o)(.text+0x14d):ndet_loop.c: undefined reference to `_svc_fdset'
/usr/openwin/lib/libxview.a(ndet_loop.o)(.text+0x3f8):ndet_loop.c: undefined reference to `_svc_fdset'
/usr/openwin/lib/libxview.a(ndet_loop.o)(.text+0x45f):ndet_loop.c: undefined reference to `_svc_getreqset'
collect2: ld returned 1 exit status


Should I be linking to some other library to resolve these two symbols?

(in reply to Rodney)
Post #: 3
RE: compiling xview application - Oct. 18, '05, 4:00:17 PM   
Rodney

 

Posts: 3142
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
You need to link with the RPC library: "-lrpclib"

All of the svc API's are in the RPC library. You can read about them on
the "rpc" manual page (man rpc).

(in reply to tjbrosnan)
Post #: 4
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> compiling xview application Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047