From jonas at peter-mail.com Tue Mar 3 19:29:41 2009 From: jonas at peter-mail.com (Jonas Peter) Date: Wed, 4 Mar 2009 01:29:41 +0100 Subject: [Pbrt-discuss] Couldn't get symbol "CreateLight" Message-ID: <200903040129.41708.jonas@peter-mail.com> Hi, I built pbrt 1.03 on debian (sid) with gcc 4.3.3. Trying to render the file simple.pbrt from the CD I get the following error. Error: Can't open plug-in "/.../pbrt/src/bin/distant.so" (/.../pbrt/src/bin/distant.so: wrong ELF class: ELFCLASS64) Line 15, file simple.pbrt Fatal Error: Couldn't get symbol "CreateLight" in Plugin /.../pbrt/src/bin/distant.so. Line 15, file simple.pbrt The searchpath is set. I hope you can help me. Kind regards Jonas From jonas at peter-mail.com Tue Mar 3 19:38:19 2009 From: jonas at peter-mail.com (Jonas Peter) Date: Wed, 4 Mar 2009 01:38:19 +0100 Subject: [Pbrt-discuss] Couldn't get symbol "CreateLight" In-Reply-To: References: <200903040129.41708.jonas@peter-mail.com> Message-ID: <200903040138.19804.jonas@peter-mail.com> I added -fPIC to CXXFLAGS to avoid this error Building Integrator Plugin "directlighting" /usr/bin/ld: objs/directlighting.o: relocation R_X86_64_32S against `vtable for DirectLighting' can not be used when making a shared object; recompile with -fPIC objs/directlighting.o: could not read symbols: Bad value collect2: ld returned 1 exit status Jonas On Wednesday March 04 2009 01:34:31 Matt Pharr wrote: > What compiler flags were used when compiling? It looks like there's > something weird going on with some stuff being compiled for 64-bit and > some for 32.. > > Thanks, > -matt > > On Mar 3, 2009, at 4:29 PM, Jonas Peter wrote: > > Hi, > > > > I built pbrt 1.03 on debian (sid) with gcc 4.3.3. > > > > Trying to render the file simple.pbrt from the CD I get the > > following error. > > > > Error: Can't open plug-in "/.../pbrt/src/bin/distant.so" > > (/.../pbrt/src/bin/distant.so: wrong ELF class: ELFCLASS64) > > Line 15, file simple.pbrt > > Fatal Error: Couldn't get symbol "CreateLight" in > > Plugin /.../pbrt/src/bin/distant.so. > > Line 15, file simple.pbrt > > > > The searchpath is set. > > > > I hope you can help me. > > > > Kind regards > > > > Jonas > > _______________________________________________ > > pbrt-discuss mailing list > > pbrt-discuss at pbrt.org > > http://six.pairlist.net/mailman/listinfo/pbrt-discuss From jonas at peter-mail.com Wed Mar 4 06:52:02 2009 From: jonas at peter-mail.com (Jonas Peter) Date: Wed, 4 Mar 2009 12:52:02 +0100 Subject: [Pbrt-discuss] Couldn't get symbol "CreateLight" In-Reply-To: <5165A5A9-1BB0-4023-B43E-72DD137F5233@pharr.org> References: <200903040129.41708.jonas@peter-mail.com> <200903040138.19804.jonas@peter-mail.com> <5165A5A9-1BB0-4023-B43E-72DD137F5233@pharr.org> Message-ID: <200903041252.02868.jonas@peter-mail.com> Hi, I found the problem. I set a link to the binary from the CD to my /usr/bin/ directory and accidentily executed this instead of the newly built one. Everything works fine now. Thanks for your Time Jonas On Wednesday March 04 2009 05:40:10 Matt Pharr wrote: > Can you try changing the line > > OPT=-O2 > > to > > OPT=-O2 -m64 > > in the Makefile? Can you also do a make clean and then send the > output of 'make -n' if the above fix doesn't work? > > Thanks, > -matt > > On Mar 3, 2009, at 4:38 PM, Jonas Peter wrote: > > I added -fPIC to CXXFLAGS to avoid this error > > > > Building Integrator Plugin "directlighting" > > /usr/bin/ld: objs/directlighting.o: relocation R_X86_64_32S against > > `vtable > > for DirectLighting' can not be used when making a shared object; > > recompile > > with -fPIC > > objs/directlighting.o: could not read symbols: Bad value > > collect2: ld returned 1 exit status > > > > Jonas > > > > On Wednesday March 04 2009 01:34:31 Matt Pharr wrote: > >> What compiler flags were used when compiling? It looks like there's > >> something weird going on with some stuff being compiled for 64-bit > >> and > >> some for 32.. > >> > >> Thanks, > >> -matt > >> > >> On Mar 3, 2009, at 4:29 PM, Jonas Peter wrote: > >>> Hi, > >>> > >>> I built pbrt 1.03 on debian (sid) with gcc 4.3.3. > >>> > >>> Trying to render the file simple.pbrt from the CD I get the > >>> following error. > >>> > >>> Error: Can't open plug-in "/.../pbrt/src/bin/distant.so" > >>> (/.../pbrt/src/bin/distant.so: wrong ELF class: ELFCLASS64) > >>> Line 15, file simple.pbrt > >>> Fatal Error: Couldn't get symbol "CreateLight" in > >>> Plugin /.../pbrt/src/bin/distant.so. > >>> Line 15, file simple.pbrt > >>> > >>> The searchpath is set. > >>> > >>> I hope you can help me. > >>> > >>> Kind regards > >>> > >>> Jonas > >>> _______________________________________________ > >>> pbrt-discuss mailing list > >>> pbrt-discuss at pbrt.org > >>> http://six.pairlist.net/mailman/listinfo/pbrt-discuss