Re: Makefile Help

New Message Reply Date view Thread view Subject view Author view

Elizabeth Smith (eliza++at++daisy.paradigmsim.com)
Wed, 6 Nov 1996 10:46:51 -0600


On Nov 7, 1:52am, Jean-Claude Bachmann wrote:
> Subject: Re: Makefile Help
> Steve Fuhrman wrote:
> >
> > On Nov 5, 4:29pm, Janet Estabridis wrote:
> > > Subject: Makefile Help
> > > We have just upgraded one of our machines to IRIX 6.2 and I am trying to
> > > get everything working on it. We have R4400's in a RE2.
> > >
> > > What I would like from someone is a Makefile for Performer 2.0 with
OpenGL
> > > for 6.2. I have tried modifying the one I was using with Performer 2.0
and
> > > OpenGL on IRIX 5.3 (that I got at my Performer class) and I am getting a
> > > bunch of warnings about definitions from a library preempting definitions
> > > from another library. I get an executable but it crashes.
> > >
> > > HELP !!!
> > >
> > > Janet Estabridis
> > > Code 4722E0D China Lake, CA (619) 939-6894
> > >
> > >-- End of excerpt from Janet Estabridis
> >
> > Hi,
> >
> > I saw the same problem when I first upgraded to IRIX6.2.
> >
> > What worked for me was to set the following environmentals in my .login
(or
> > .profile depending on your shell of choice).
> >
> > setenv LD_LIBRARY_PATH /usr/lib:/lib
> > setenv LD_LIBRARYN32_PATH /usr/lib32:/lib32
> > setenv LD_LIBRARY64_PATH /usr/lib64:/lib64
> >
> > This helps you keep from mixing "apples an oranges".
> >
> > Don't forget to add on other lib paths that you need for your
configuration.
> >
> > Good luck with your application,
> >
>
> I encounterd the same problem, after upgrading to Irix 6.2 I got a bunch
> of linker warnings compiling and linking the perfly example. They look like
> the following:
> making IrisGL DSO version of perfly
> /usr/bin/cc -DIRISGL -DPFIRIX5 -I.. -I../../common
> -I../../../../../../usr/include/ -nostdinc -I/usr/include -mips2 -o32 -O
> -Olimit 2000 -MDupdate Makedepend -woff
> 1685,515,608,658,799,803,852,1048,1233,1499 -o perfly.DSO cmdline.o
 generic.o
> env.o gui.o keybd.o perfly.o main.o -L/usr/lib -L/usr/lib/libpfdb
 -L/lib
> -all -lpf_igl -lpfdu_igl -lpfutil_igl -lpfui -Wl,-none -limage -lfm
> -ignore_unresolved -lgl -lXmu -lX11 -lm -lfpe -lmalloc -lC
> ld: WARNING 134: weak definition of getData__8pfMemoryCFv in
> /usr/lib/libpf_igl.so preempts that weak definition in /usr/lib/libpfui.so.
> ld: WARNING 134: weak definition of isOfType__8pfMemoryFP6pfType in
> /usr/lib/libpf_igl.so preempts that weak definition in /usr/lib/libpfui.so.
> ld: WARNING 134: weak definition of isExactType__8pfMemoryFP6pfType in
> /usr/lib/libpf_igl.so preempts that weak definition in /usr/lib/libpfui.so.
> ld: WARNING 134: weak definition of __as__8pfMemoryFPC8pfMemory in
> /usr/lib/libpf_igl.so preempts that weak definition in /usr/lib/libpfui.so.
> ld: WARNING 134: weak definition of getRef__8pfMemoryFv in
> /usr/lib/libpf_igl.so preempts that weak definition in /usr/lib/libpfui.so.
> ....
> <snip>
>
>
> Setting the LD_LIBRARY_PATH does not help any. The application is running
> without fault, but I would still like to get rid of these warnings. Any idea
> is welcomed.
>
> J.C.
>

The problem is that some of the Performer header files have
virtual function definitions.

For example in pfMemory.h:
    virtual ushort getRef() { return refCount; }

The definition then appears in each file that includes the .h file.
Then the linker sees what it thinks are two different definitions.
If the definitions are really the same (as they would be in this case),
then the application runs okay. There warnings do obscure
any real redefinition that may be present.

--Elizabeth Smith

-- 
|----   Elizabeth Smith                                     ----|
|	972-960-2301 (voice)	Paradigm Simulation, Inc.	|
|	972-960-9049  (FAX)	14900 Landmark, Suite 400	|
|	eliza++at++paradigmsim.com	Dallas, Texas   75240	USA	|
|       www.paradigmsim.com                                     |
	 
	
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:54 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.