POV-Ray : Newsgroups : povray.unix : undefined reference to[..] / TIFF/JPEG Server Time
28 Jul 2024 12:32:01 EDT (-0400)
  undefined reference to[..] / TIFF/JPEG (Message 1 to 3 of 3)  
From: marabou
Subject: undefined reference to[..] / TIFF/JPEG
Date: 3 Aug 2002 19:30:22
Message: <3d4c678d@news.povray.org>
an attempt to run a make check caused the following messagesnippet:

Making check in src
make[1]: Wechsel in das Verzeichnis Verzeichnis 

g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c tiff_pov.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c tokenize.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c torus.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c triangle.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c truetype.cpp
truetype.cpp: In function `GlyphOutline *ExtractGlyphOutline
(FontFileInfo *, unsigned int *, unsigned int)':
truetype.cpp:2343: warning: assignment to `SHORT' from `double'
truetype.cpp:2343: warning: argument to `short int' from `double'
truetype.cpp:2346: warning: assignment to `SHORT' from `double'
truetype.cpp:2346: warning: argument to `short int' from `double'
truetype.cpp:2349: warning: assignment to `SHORT' from `double'
truetype.cpp:2349: warning: argument to `short int' from `double'
truetype.cpp:2352: warning: assignment to `SHORT' from `double'
truetype.cpp:2352: warning: argument to `short int' from `double'
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c txttest.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c userdisp.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c userio.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c vbuffer.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c vlbuffer.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c warps.cpp
g++ -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
`if [ "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -c unix.cpp
gcc -DPREFIX=\"/opt/povray3_first\" 
-DPOV_LIB_DIR=\"/opt/povray3_first/share/povray-3.5\" 
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/opt/povray3_first/etc\"     
-g -O2 -c povxlib.c
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 -lpng -lz -lm  -lX11
jpeg_pov.o: In function `JPEG_Image::JPEG_Image(char *, int, int, int, 
int)':
jpeg_pov.o(.text+0x367): undefined reference to `jpeg_std_error'
jpeg_pov.o(.text+0x3ac): undefined reference to `jpeg_CreateCompress'
jpeg_pov.o(.text+0x4a2): undefined reference to `jpeg_set_defaults'
jpeg_pov.o(.text+0x4be): undefined reference to `jpeg_set_quality'
jpeg_pov.o(.text+0x4d4): undefined reference to `jpeg_start_compress'
jpeg_pov.o: In function `JPEG_Image::~JPEG_Image(void)':
jpeg_pov.o(.text+0x57a): undefined reference to `jpeg_finish_compress'
jpeg_pov.o(.text+0x628): undefined reference to `jpeg_destroy_compress'
jpeg_pov.o: In function `JPEG_Image::Write_Line(float (*)[4])':
jpeg_pov.o(.text+0x7e4): undefined reference to `jpeg_write_scanlines'
jpeg_pov.o: In function `Read_JPEG_Image(Image_Struct *, char *)':
jpeg_pov.o(.text+0x867): undefined reference to `jpeg_std_error'
jpeg_pov.o(.text+0x8bf): undefined reference to `jpeg_destroy_decompress'
jpeg_pov.o(.text+0x91f): undefined reference to `jpeg_CreateDecompress'
jpeg_pov.o(.text+0x950): undefined reference to `jpeg_resync_to_restart'
jpeg_pov.o(.text+0x981): undefined reference to `jpeg_read_header'
jpeg_pov.o(.text+0xa19): undefined reference to `jpeg_destroy_decompress'
jpeg_pov.o(.text+0xa82): undefined reference to `jpeg_start_decompress'
jpeg_pov.o(.text+0xb7a): undefined reference to `jpeg_read_scanlines'
jpeg_pov.o(.text+0xcf8): undefined reference to `jpeg_finish_decompress'
jpeg_pov.o(.text+0xd0f): undefined reference to `jpeg_destroy_decompress'
optout.o: In function `Print_Authors(void)':
optout.o(.text+0xba0): undefined reference to `TIFFGetVersion'
tiff_pov.o: In function `Read_Tiff_Image(Image_Struct *, char *)':
tiff_pov.o(.text+0x9f): undefined reference to `TIFFSetWarningHandler'
tiff_pov.o(.text+0xaf): undefined reference to `TIFFSetErrorHandler'
tiff_pov.o(.text+0xc2): undefined reference to `TIFFOpen'
tiff_pov.o(.text+0xe8): undefined reference to `TIFFGetField'
tiff_pov.o(.text+0xff): undefined reference to `TIFFGetField'
tiff_pov.o(.text+0x116): undefined reference to `TIFFGetField'
tiff_pov.o(.text+0x12d): undefined reference to `TIFFGetField'
tiff_pov.o(.text+0x144): undefined reference to `TIFFGetField'
tiff_pov.o(.text+0x15b): more undefined references to `TIFFGetField' follow
tiff_pov.o: In function `Read_Tiff_Image(Image_Struct *, char *)':
tiff_pov.o(.text+0x172): undefined reference to `TIFFGetFieldDefaulted'
tiff_pov.o(.text+0x18a): undefined reference to `TIFFGetFieldDefaulted'
tiff_pov.o(.text+0x1d4): undefined reference to `TIFFScanlineSize'
tiff_pov.o(.text+0x28d): undefined reference to `TIFFGetField'
tiff_pov.o(.text+0x47d): undefined reference to `TIFFStripSize'
tiff_pov.o(.text+0x4ff): undefined reference to `TIFFComputeStrip'
tiff_pov.o(.text+0x50b): undefined reference to `TIFFReadEncodedStrip'
tiff_pov.o(.text+0x604): undefined reference to `TIFFReadRGBAImage'
tiff_pov.o(.text+0x7c2): undefined reference to `TIFFClose'
collect2: ld returned 1 exit status
make[1]: *** [povray] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis 

make: *** [check-recursive] Fehler 1

gcc-version 2.96. XFree86 version: 4.1.0. development-packets of libjpeg 
and libtiff (BTW: libtiff not mentioned as required in README) are present. 

is there an oracle who knows what went wrong?
thanks in advance.


Post a reply to this message

From: Warp
Subject: Re: undefined reference to[..] / TIFF/JPEG
Date: 3 Aug 2002 21:57:21
Message: <3d4c8a00@news.povray.org>
marabou <not### [at] availablenet> wrote:
> -L/usr/X11R6/lib -lpng -lz -lm  -lX11

  I see no -ljpeg -ltiff there. Could that be the problem?

  By the way, you might also want to remove the -static option. It seems
to be there by error and produces undesirable results.

-- 
#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: marabou
Subject: Re: undefined reference to[..] / TIFF/JPEG
Date: 3 Aug 2002 22:05:31
Message: <3d4c8beb@news.povray.org>
Warp wrote:

> marabou <not### [at] availablenet> wrote:
>> -L/usr/X11R6/lib -lpng -lz -lm  -lX11
> 
>   I see no -ljpeg -ltiff there. Could that be the problem?
> 
i can not see them, too. this were my options in makefile, and definately 
there i see -ljpeg and -ltiff:

--cut--
CXXFLAGS = -O2 $(NOMULTICHAR)
# LDFLAGS = -static
LDFLAGS = -rdynamic
EXTRA_DIST = xpovicon.xbm xpovmask.xbm xpovicon.xpm
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = conf.h
CONFIG_CLEAN_FILES =
PROGRAMS =  $(bin_PROGRAMS)

CPPFLAGS =
LIBS = -ltiff -ljpeg -lpng -lz -lm
X_CFLAGS =
X_LIBS =
--cut--


Post a reply to this message

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