POV-Ray : Newsgroups : povray.unix : Can't build 3.5 on Solaris Server Time
28 Jul 2024 10:26:07 EDT (-0400)
  Can't build 3.5 on Solaris (Message 1 to 7 of 7)  
From: Sekenre
Subject: Can't build 3.5 on Solaris
Date: 27 Aug 2002 12:35:06
Message: <web.3d6ba9c6214dff84c6303c790@news.povray.org>
Hi folks,

I am having problems compiling the povray 3.5 executable from source on
Solaris8
It barfs with the following messages;

g++  `if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -static
-I/usr/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/lib/sparcv9
-R/usr/lib/sparcv9 -ltiff -ljpeg -lpng -lz -lm  -lX11

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)
gethostbyname                       /usr/openwin/lib/libX11.a(x11trans.o)
setsockopt                          /usr/openwin/lib/libX11.a(x11trans.o)
getservbyname                       /usr/openwin/lib/libX11.a(x11trans.o)
XSolarisIASetProcessInfo            /usr/openwin/lib/libX11.a(OpenDis.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)
dlopen                              /usr/openwin/lib/libX11.a(x11trans.o)
connect                             /usr/openwin/lib/libX11.a(x11trans.o)
ld: fatal: Symbol referencing errors. No output written to povray
collect2: ld returned 1 exit status
make[1]: *** [povray] Error 1
make[1]: Leaving directory `/home/ks122413/src/povray-3.50a/src'
make: *** [all-recursive] Error 1

Any clues would be appreciated!
Thanks


Post a reply to this message

From: Rob Hoopman
Subject: Re: Can't build 3.5 on Solaris
Date: 27 Aug 2002 14:34:30
Message: <3d6bc636@news.povray.org>
First of all: I know bugger all about solaris, so don't come crying to 
me when this makes you machine explode ;-)

Seems like the linker can't find a library: try including 
'-L/usr/openwin/lib/' (or whereever libX11 is located) and maybe add 
some other needed library paths for png peg and tiss libraries in the 
same way.

If it is having problems finding the libs at runtime after this (do ldd 
on the binary ) add -static to the lastcommand and try again.

Good luck,
Rob


Post a reply to this message

From: Warp
Subject: Re: Can't build 3.5 on Solaris
Date: 27 Aug 2002 16:41:13
Message: <3d6be3e9@news.povray.org>
Rob Hoopman <rob### [at] tunanl> wrote:
> If it is having problems finding the libs at runtime after this (do ldd 
> on the binary ) add -static to the lastcommand and try again.

  No. That's exactly the flag he should remove in order to get povray
compiled. It won't compile with it.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Warp
Subject: Re: Can't build 3.5 on Solaris
Date: 27 Aug 2002 16:41:28
Message: <3d6be3f8@news.povray.org>
Remove -static

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Can't build 3.5 on Solaris
Date: 27 Aug 2002 20:43:39
Message: <3d6c1cbb$1@news.povray.org>
In article <3d6be3e9@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>   No. That's exactly the flag he should remove in order to get povray
> compiled. It won't compile with it.

Excuse the stupid question, but why?

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org
    Thorsten


Post a reply to this message

From: Warp
Subject: Re: Can't build 3.5 on Solaris
Date: 27 Aug 2002 22:28:01
Message: <3d6c3531@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
>>   No. That's exactly the flag he should remove in order to get povray
>> compiled. It won't compile with it.

> Excuse the stupid question, but why?

  The standard Solaris distribution doesn't have static X-libraries
(ie. the .a-files), only dynamic ones (ie. the .so-files). The linking
error is produced because the linker can't find the static libraries,
even though it was ordered to use them.

-- 
#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: Sekenre
Subject: Re: Can't build 3.5 on Solaris
Date: 28 Aug 2002 05:40:03
Message: <web.3d6c9a3f95bcdc39c6303c790@news.povray.org>
Warp wrote:
>Thorsten Froehlich <tho### [at] trfde> wrote:
>>>   No. That's exactly the flag he should remove in order to get povray
>>> compiled. It won't compile with it.
>
>> Excuse the stupid question, but why?
>
>  The standard Solaris distribution doesn't have static X-libraries
>(ie. the .a-files), only dynamic ones (ie. the .so-files). The linking
>error is produced because the linker can't find the static libraries,
>even though it was ordered to use them.

Thanks, that makes sense.
I'll give it a try later on tonight and let you know what happens.

Cheers,
Sek


Post a reply to this message

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