From: "Soyeb Aswat" Organization: Mirage Technologies Date: 8 Mar 99 02:58:08 +0000 Subject: Re: Probably a stupid question Message-Id: In-Reply-To: <19990307205502.A28504@tardis.ed.ac.uk> To: pgcc AT delorie DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: MicroDot-II/AmigaOS NC 1.2 [NC2-#000001A4] Reply-To: pgcc AT delorie DOT com X-Mailing-List: pgcc AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > On Sun, Mar 07, 1999 at 09:09:57PM +0100, Marc Lehmann wrote: > > On Sun, Mar 07, 1999 at 12:43:00AM +0000, Soyeb Aswat wrote: > > > > 1. I guess that I don't have the paths set correctly. What would I > > > need to set and to where? > > > I guess you are lacking: > > > - header files > > - libraries > > > that usually come with the development package of your system. pgcc can't > > supply these. > > Solaris supplies this (at least, the commercial Solaris 2.6 does). If > you can't work out what's up with pgcc, you could take a look at > http://www.sunfreeware.com/, which supplies prebuilt binaries in some > format including some GCC version. I've never used them, but they're > probably worth a try. I installed that last night just after my original mail, but I get the same errors :-( This means obviously that it is not the compiler. This is the make output when I try to compile mpeg_play from unix.hensa.ac.uk; [snip (can't get the scroll back, but everything compiles clean except main.c: In function `main': main.c:376: warning: passing arg 2 of `signal' from incompatible pointer type main.c:217: warning: return type of `main' is not `int' )] gcc util.o video.o parseblock.o motionvector.o decoders.o fs2.o fs2fast.o fs4. o hybrid.o hybriderr.o 2x2.o gdith.o gray.o mono.o main.o jrevdct.o 24bit.o uti l32.o ordered.o ordered2.o mb_ordered.o /usr/openwin/lib/libX11.a /usr/openwin/ lib/libXext.a -lm -o mpeg_play Undefined first referenced symbol in file socket /usr/openwin/lib/libX11.a(x11trans.o) getpeername /usr/openwin/lib/libX11.a(x11trans.o) xdrmem_create /usr/openwin/lib/libX11.a(ConnDis.o) dlclose /usr/openwin/lib/libX11.a(x11trans.o) (symb ol belongs to implicit dependency /usr/lib/libdl.so.1) gethostbyname /usr/openwin/lib/libX11.a(x11trans.o) setsockopt /usr/openwin/lib/libX11.a(x11trans.o) getservbyname /usr/openwin/lib/libX11.a(x11trans.o) authdes_create /usr/openwin/lib/libX11.a(ConnDis.o) inet_addr /usr/openwin/lib/libX11.a(x11trans.o) shutdown /usr/openwin/lib/libX11.a(x11trans.o) getsockname /usr/openwin/lib/libX11.a(x11trans.o) dlsym /usr/openwin/lib/libX11.a(x11trans.o) (symb ol belongs to implicit dependency /usr/lib/libdl.so.1) dlopen /usr/openwin/lib/libX11.a(x11trans.o) (symb ol belongs to implicit dependency /usr/lib/libdl.so.1) connect /usr/openwin/lib/libX11.a(x11trans.o) ld: fatal: Symbol referencing errors. No output written to mpeg_play *** Error code 1 make: Fatal error: Command failed for target `mpeg_play' bash-2.03$ > > > You'd better look for a really "free" operating system, like Linux, which > > comes with everything you need, no strings attached. > > It's probably much easier than Solaris unless you have a particular > desire to learn about Solaris. Any of the Linux distributions should > provide a complete set of GNU development utilities out of the box. I'm not a fan of Linux... Thanks, Soyeb