[ome-users] compile error

Pierluigi Previtali previtali.pierluigi at hsr.it
Fri Dec 16 12:38:06 GMT 2005


Ilya Goldberg wrote:
> Hi
> What version of libpng are you using?
> Are you sure that when you installed it from source, the OS loaded  the 
> right lib (ie, is your libpng picked up by ldconfig?).
> 
> I am not aware of incompatibilities introduced by later versions of  
> libpng, but that may be the case here.
> Versions in use here are 1.2.2, 1.2.5, 1.2.8 - all using the relevant  
> RPMs on Fedora
> -Ilya
> 
> 
> On Dec 14, 2005, at 7:36 AM, Pierluigi Previtali wrote:
> 
>> Hi, I installed the libpng, first like a slackware package, and  then 
>> to be sure from source, run the lbpng-test with no errors but  I 
>> always have the same error when I'm compiling omeis :
>>
>> gcc  -g -O2 -I/usr/include/openssl -DHAVE_SSL -I/usr/include/db4 -L/ 
>> usr/lib -L
>> /usr/lib -ldb -o omeis  File.o Pixels.o OMEIS_Error.o auth.o cgi.o  
>> composite.o d
>> igest.o method.o omeis.o repository.o sha1DB.o  xmlBinaryResolution.o 
>> xmlBinaryIn
>> sertion.o xmlIsOME.o base64.o b64z_lib.o update.o -L/usr/lib -lxml2  
>> -lz -lm zoom
>> /lib/libzoom.a zoom/lib/libpic.a -lz -ltiff -ljpeg -lbz2  -lssl - lcrypto
>>  zoom/lib/libpic.a(png.o)(.text+0x97): In function `picpng_open':
>>  /usr/local/src/OME/src/C/omeis/zoom/lib/png.c:49: undefined  
>> reference to `png_c
>> reate_read_struct'
>>
>> zoom/lib/libpic.a(png.o)(.text+0x9e):/usr/local/src/OME/src/C/omeis/ 
>> zoom/lib/pn
>> g.c:49: undefined reference to `png_create_write_struct'
>>
>> zoom/lib/libpic.a(png.o)(.text+0xc5):/usr/local/src/OME/src/C/omeis/ 
>> zoom/lib/pn
>> g.c:53: undefined reference to `png_create_info_struct'
>>
>> zoom/lib/libpic.a(png.o)(.text+0x103):/usr/local/src/OME/src/C/ 
>> omeis/zoom/lib/p
>> ng.c:66: undefined reference to `png_init_io'
>>
>> zoom/lib/libpic.a(png.o)(.text+0x12c):/usr/local/src/OME/src/C/ 
>> omeis/zoom/lib/p
>> ng.c:68: undefined reference to `png_read_info'
>>
>> zoom/lib/libpic.a(png.o)(.text+0x168):/usr/local/src/OME/src/C/ 
>> omeis/zoom/lib/p
>> ng.c:69: undefined reference to `png_get_IHDR'
>>
>> the configure output that could be interesting is:
>> checking for png_init_io in -lpng... no
>>  checking png.h usability... yes
>>  checking png.h presence... yes
>>  checking for png.h... yes
>>
>> any clue?
>> thanks
>> -- 
>> ###############################
>>
>> Pierluigi Previtali
>>
>> Cluster manager
>> Linux System administrator
>> _______________________________
>>
>> Ospedale S. Raffaele del Monte Tabor
>> Sistemi Informativi
>> Via Olgettina 60
>> 20132 Milano (Italy)
>> _______________________________
>>
>> Dulbecco Telethon Institute
>> c/o DIBIT Scientific Institute
>> Via Olgettina 58
>> 20132 Milano (Italy)
>>
>> ###############################
>> _______________________________________________
>> ome-users mailing list
>> ome-users at lists.openmicroscopy.org.uk
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>>
> 
> 

Hi, not a simple problem :-)
root at testing:~# ldconfig -v |grep libpng
         libpng.so.3 -> libpng.so.3.1.2.8
         libpng12.so.0 -> libpng12.so.0.1.2.8

and for example:
  root at testing:~# nm -g /usr/lib/libpng.so.3.1.2.8 | grep \ 
png_create_write_struct
give :
00018f90 T png_create_write_struct
00018fd0 T png_create_write_struct_2
the exports of the shared lib are ok... mmm I have to investigate for a 
missing -lpng ... anyone with the same lib version and not with this 
problem outside ?


###############################

Pierluigi Previtali

Cluster manager
Linux System administrator
_______________________________

Ospedale S. Raffaele del Monte Tabor
Sistemi Informativi
Via Olgettina 60
20132 Milano (Italy)
_______________________________

Dulbecco Telethon Institute
c/o DIBIT Scientific Institute
Via Olgettina 58
20132 Milano (Italy)

###############################



More information about the ome-users mailing list