POV-Ray : Newsgroups : povray.unix : Compiling 3.5 source on Linux also fails Server Time
28 Jul 2024 14:33:44 EDT (-0400)
  Compiling 3.5 source on Linux also fails (Message 11 to 19 of 19)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Joshua Nye
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 2 Aug 2002 13:34:54
Message: <3d4ac2be$1@news.povray.org>
oops... wrong name in my news settings. doh!

--josh

"Dan" <dan### [at] yahoocom> wrote in message news:3d4ac246$1@news.povray.org...
> Open up src/Makefile and find this line:
>
> LDFLAGS = -static -I/usr/X11R6/include
> (could be a bit different but the LDFLAGS is the important line)
>
> change it to:
>
> LDFLAGS = -static -I/usr/X11R6/include -ldl
> (note: added -ldl)
>
> Try that and see if it works.
>
> --josh
>
> "Sebastian H." <seb### [at] webde> wrote in message
> news:3D4### [at] webde...
> > > Thanx for releasing the sources anyway !!
> > Yes thanks, too.
> >
> > But I got an other problem here.
> > When compiling without any optimization (just ./configure, make)
> > I got:
> >
> > g++  `if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -static
> > -I/usr/X11R6/include -o povray  atmosph.o bbox.o bcyl.o benchmark.o
> > bezier.o blob.o boxes.o bsphere.o camera.o chi2.o colour.o colutils.o
> > cones.o csg.o discs.o express.o file_pov.o fncode.o fnintern.o
> > fnpovfpu.o fnsyntax.o fpmetric.o fractal.o function.o gif.o gifdecod.o
> > hcmplx.o hfield.o histogra.o iff.o image.o interior.o isosurf.o
> > jpeg_pov.o lathe.o lbuffer.o lightgrp.o lighting.o matrices.o media.o
> > mesh.o normal.o objects.o octree.o optin.o optout.o parse.o parsestr.o
> > parstxtr.o pattern.o pgm.o photons.o pigment.o planes.o png_pov.o
> > point.o poly.o polygon.o polysolv.o pov_mem.o povms.o povmscpp.o
> > povmsend.o povmsrec.o povray.o pov_util.o ppm.o prism.o quadrics.o
> > quatern.o rad_data.o radiosit.o ray.o render.o renderio.o sor.o
> > spheres.o sphsweep.o splines.o statspov.o super.o targa.o texture.o
> > tiff_pov.o tokenize.o torus.o triangle.o truetype.o txttest.o userdisp.o
> > userio.o vbuffer.o vlbuffer.o warps.o unix.o povxlib.o -L/usr/X11R6/lib
> > -ltiff -ljpeg -lpng -lz -lm  -lX11
> > /usr/X11R6/lib/libX11.a(XlcDL.o): In function `try_both_dlsym':
> > XlcDL.o(.text+0x111): undefined reference to `dlsym'
> > XlcDL.o(.text+0x136): undefined reference to `dlsym'
> > /usr/X11R6/lib/libX11.a(XlcDL.o): In function `open_object':
> > XlcDL.o(.text+0x60e): undefined reference to `dlopen'
> > /usr/X11R6/lib/libX11.a(XlcDL.o): In function `close_object':
> > XlcDL.o(.text+0x684): undefined reference to `dlclose'
> > collect2: ld returned 1 exit status
> > make[1]: *** [povray] Fehler 1
> >
> > Please don't kill me I'am no programmer but can anyone give me a hint?
> > (When using --without-x I get even more errors...)
> >
> > Sebastian H.
> >
> >
> >
>
>


Post a reply to this message

From: Sebastian H 
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 2 Aug 2002 13:55:24
Message: <3D4AC831.8080108@web.de>
Dan schrieb:
> Open up src/Makefile and find this line:
> 
> LDFLAGS = -static -I/usr/X11R6/include
> (could be a bit different but the LDFLAGS is the important line)
> 
> change it to:
> 
> LDFLAGS = -static -I/usr/X11R6/include -ldl
> (note: added -ldl)
> 
> Try that and see if it works.
> 
> --josh

Did not work, still same message. Darn!

But thanks for helping.

Sebastian H.


Post a reply to this message

From: Joshua Nye
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 2 Aug 2002 14:01:57
Message: <3d4ac915$1@news.povray.org>
What version/distro of Linux are you compiling on? Do you know what version
of glibc you have? gcc/g++ version?

--josh

"Sebastian H." <seb### [at] webde> wrote in message
news:3D4### [at] webde...
> Dan schrieb:
> > Open up src/Makefile and find this line:
> >
> > LDFLAGS = -static -I/usr/X11R6/include
> > (could be a bit different but the LDFLAGS is the important line)
> >
> > change it to:
> >
> > LDFLAGS = -static -I/usr/X11R6/include -ldl
> > (note: added -ldl)
> >
> > Try that and see if it works.
> >
> > --josh
>
> Did not work, still same message. Darn!
>
> But thanks for helping.
>
> Sebastian H.
>


Post a reply to this message

From: CyrusW
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 2 Aug 2002 15:03:47
Message: <3d4ad792@news.povray.org>
Make sure you
'make clean'
then
'./configure --without-x ...'

Cyrus


Post a reply to this message

From: Chris Jeppesen
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 2 Aug 2002 15:28:15
Message: <3D4ADD4F.9020801@digiquill.com>
Sebastian H. wrote:
 >> Thanx for releasing the sources anyway !!
 >
 > Yes thanks, too.
 >
 > But I got an other problem here. When compiling without any
 > optimization (just ./configure, make) I got:
 >
 > g++  `if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi `
 > -static -I/usr/X11R6/include -o povray  atmosph.o bbox.o bcyl.o
 > benchmark.o bezier.o blob.o boxes.o bsphere.o camera.o chi2.o
 > colour.o colutils.o cones.o csg.o discs.o express.o file_pov.o
 > fncode.o fnintern.o fnpovfpu.o fnsyntax.o fpmetric.o fractal.o
 > function.o gif.o gifdecod.o hcmplx.o hfield.o histogra.o iff.o
 > image.o interior.o isosurf.o jpeg_pov.o lathe.o lbuffer.o lightgrp.o
 > lighting.o matrices.o media.o mesh.o normal.o objects.o octree.o
 > optin.o optout.o parse.o parsestr.o parstxtr.o pattern.o pgm.o
 > photons.o pigment.o planes.o png_pov.o point.o poly.o polygon.o
 > polysolv.o pov_mem.o povms.o povmscpp.o povmsend.o povmsrec.o
 > povray.o pov_util.o ppm.o prism.o quadrics.o quatern.o rad_data.o
 > radiosit.o ray.o render.o renderio.o sor.o spheres.o sphsweep.o
 > splines.o statspov.o super.o targa.o texture.o tiff_pov.o tokenize.o
 > torus.o triangle.o truetype.o txttest.o userdisp.o userio.o vbuffer.o
 > vlbuffer.o warps.o unix.o povxlib.o -L/usr/X11R6/lib -ltiff -ljpeg
 > -lpng -lz -lm  -lX11 /usr/X11R6/lib/libX11.a(XlcDL.o): In function
 > `try_both_dlsym': XlcDL.o(.text+0x111): undefined reference to
 > `dlsym' XlcDL.o(.text+0x136): undefined reference to `dlsym'
 > /usr/X11R6/lib/libX11.a(XlcDL.o): In function `open_object':
 > XlcDL.o(.text+0x60e): undefined reference to `dlopen'
 > /usr/X11R6/lib/libX11.a(XlcDL.o): In function `close_object':
 > XlcDL.o(.text+0x684): undefined reference to `dlclose' collect2: ld
 > returned 1 exit status make[1]: *** [povray] Fehler 1
 >
 > Please don't kill me I'am no programmer but can anyone give me a
 > hint? (When using --without-x I get even more errors...)
 >
 > Sebastian H.
 >
 >
 >
Open up src/Makefile, find the line

LDFLAGS = -static -I/usr/X11R6/include

and change it to

LDFLAGS = -rdynamic -I/usr/X11R6/include

I was having the same problem and this fixed it for me. Now if I could 
just get it to parse my files... (I/O restriction prohibits read access 
to file 'kwancircle.pov')

Chris


Post a reply to this message

From: Joshua Nye
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 2 Aug 2002 15:48:24
Message: <3d4ae208$1@news.povray.org>
I just commented out the IO checks.. didn't want to deal with them. POV is
installed as me and not root or anything, so why bother?

Search for POV_ALLOW_FILE_ in file_pov.cpp and comment out the if statement.

Might be an easier way with a #define somewhere but I didn't really look
that well.

--josh

"Chris Jeppesen" <chr### [at] digiquillcom> wrote in message
news:3D4### [at] digiquillcom...
> Sebastian H. wrote:
>  >> Thanx for releasing the sources anyway !!
>  >
>  > Yes thanks, too.
>  >
>  > But I got an other problem here. When compiling without any
>  > optimization (just ./configure, make) I got:
>  >
>  > g++  `if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi `
>  > -static -I/usr/X11R6/include -o povray  atmosph.o bbox.o bcyl.o
>  > benchmark.o bezier.o blob.o boxes.o bsphere.o camera.o chi2.o
>  > colour.o colutils.o cones.o csg.o discs.o express.o file_pov.o
>  > fncode.o fnintern.o fnpovfpu.o fnsyntax.o fpmetric.o fractal.o
>  > function.o gif.o gifdecod.o hcmplx.o hfield.o histogra.o iff.o
>  > image.o interior.o isosurf.o jpeg_pov.o lathe.o lbuffer.o lightgrp.o
>  > lighting.o matrices.o media.o mesh.o normal.o objects.o octree.o
>  > optin.o optout.o parse.o parsestr.o parstxtr.o pattern.o pgm.o
>  > photons.o pigment.o planes.o png_pov.o point.o poly.o polygon.o
>  > polysolv.o pov_mem.o povms.o povmscpp.o povmsend.o povmsrec.o
>  > povray.o pov_util.o ppm.o prism.o quadrics.o quatern.o rad_data.o
>  > radiosit.o ray.o render.o renderio.o sor.o spheres.o sphsweep.o
>  > splines.o statspov.o super.o targa.o texture.o tiff_pov.o tokenize.o
>  > torus.o triangle.o truetype.o txttest.o userdisp.o userio.o vbuffer.o
>  > vlbuffer.o warps.o unix.o povxlib.o -L/usr/X11R6/lib -ltiff -ljpeg
>  > -lpng -lz -lm  -lX11 /usr/X11R6/lib/libX11.a(XlcDL.o): In function
>  > `try_both_dlsym': XlcDL.o(.text+0x111): undefined reference to
>  > `dlsym' XlcDL.o(.text+0x136): undefined reference to `dlsym'
>  > /usr/X11R6/lib/libX11.a(XlcDL.o): In function `open_object':
>  > XlcDL.o(.text+0x60e): undefined reference to `dlopen'
>  > /usr/X11R6/lib/libX11.a(XlcDL.o): In function `close_object':
>  > XlcDL.o(.text+0x684): undefined reference to `dlclose' collect2: ld
>  > returned 1 exit status make[1]: *** [povray] Fehler 1
>  >
>  > Please don't kill me I'am no programmer but can anyone give me a
>  > hint? (When using --without-x I get even more errors...)
>  >
>  > Sebastian H.
>  >
>  >
>  >
> Open up src/Makefile, find the line
>
> LDFLAGS = -static -I/usr/X11R6/include
>
> and change it to
>
> LDFLAGS = -rdynamic -I/usr/X11R6/include
>
> I was having the same problem and this fixed it for me. Now if I could
> just get it to parse my files... (I/O restriction prohibits read access
> to file 'kwancircle.pov')
>
> Chris
>


Post a reply to this message

From: Christopher James Huff
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 2 Aug 2002 16:08:57
Message: <chrishuff-BAB786.14594502082002@netplex.aussie.org>
In article <3d4ae208$1@news.povray.org>,
 "Joshua Nye" <jos### [at] zerosanitycom> wrote:

> I just commented out the IO checks.. didn't want to deal with them. POV is
> installed as me and not root or anything, so why bother?
> 
> Search for POV_ALLOW_FILE_ in file_pov.cpp and comment out the if statement.
> 
> Might be an easier way with a #define somewhere but I didn't really look
> that well.

I modified unix.cpp...just changed the defaults and commented out the 
reading code in UNIX_Process_IO_Restrictions().

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: Warp
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 2 Aug 2002 21:42:14
Message: <3d4b34f5@news.povray.org>
Chris Jeppesen <chr### [at] digiquillcom> wrote:
> LDFLAGS = -static -I/usr/X11R6/include

  I can't link here (Sparc Solaris) with the -static because there are only
dynamic versions of X libraries installed.
  You should try without the -static flag (but then you might have to
specify a libtiff.a explicitly, as I have to do here). You will probably
get a smaller binary as well.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Sebastian H 
Subject: Re: Compiling 3.5 source on Linux also fails
Date: 3 Aug 2002 20:18:18
Message: <3D4C736D.9060806@web.de>
> Open up src/Makefile, find the line
> 
> LDFLAGS = -static -I/usr/X11R6/include
> 
> and change it to
> 
> LDFLAGS = -rdynamic -I/usr/X11R6/include
> 

Jippie, this worked.
Thanks,
Sebastian H.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.