[ome-users] compile error

Pierluigi Previtali previtali.pierluigi at hsr.it
Mon Dec 19 09:53:57 GMT 2005


Ilya Goldberg wrote:
> 
> On Dec 16, 2005, at 7:38 AM, Pierluigi Previtali wrote:
> 
>> 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 :
> 
> 
> [SNIP]
> 
>> 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
> 
> 
> (This is Fedora Core release 4 (Stentz))
>         libpng12.so.0 -> libpng12.so.0.1.2.8
>         libpng.so.2 -> libpng10.so
>         libpng12.so.0 -> libpng12.so.0.1.2.8
> 
> [igg at lgopt5 ~]$ rpm -qa | grep png
> libpng-1.2.8-2
> libpng10-devel-1.0.18-2
> libpng-devel-1.2.8-2
> libpng10-1.0.18-2
> libpng-1.2.8-2
> 
> 
> What distribution/package manager are you using?
> 
> I guess this is a heads-up for us that the libpng API is about to  
> change and start causing problems?
> -Ilya
> 
> 
>> 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)
>>
>> ###############################
>> _______________________________________________
>> ome-users mailing list
>> ome-users at lists.openmicroscopy.org.uk
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>>
> 
> 

hi, just for testing I tried to compile and use a simple program like this:
http://zarb.org/~gc/html/libpng.html
with sample gcc invocation:
gcc -lpng -lz -lm libpng-short-example.c -o test.my
and after run:
./test.my /opt/OME/images/home.png ./this
without problems ...
but I have always the same error
sounds strange this entries in configure
--snip---
checking for png_init_io in -lpng... no
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
---snip----
and the complete error
  gcc -DHAVE_CONFIG_H -I. -I. -I.  -DOMEIS_ROOT=\"/opt/OME/OMEIS\" 
-Izoom/include -I/us
r/include/libxml2 -I/usr/include  -g -O2 -I/usr/include/openssl 
-DHAVE_SSL -I/usr/incl
ude/db4 -c `test -f 'update.c' || echo './'`update.c
  update.c:196:2: warning: no newline at end of file
  gcc  -g -O2 -I/usr/include/openssl -DHAVE_SSL -I/usr/include/db4 
-L/usr/lib -L/usr/l
ib -ldb -o omeis  File.o Pixels.o OMEIS_Error.o auth.o cgi.o composite.o 
digest.o meth
od.o omeis.o repository.o sha1DB.o xmlBinaryResolution.o 
xmlBinaryInsertion.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_create_
read_struct'
 
zoom/lib/libpic.a(png.o)(.text+0x9e):/usr/local/src/OME/src/C/omeis/zoom/lib/png.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/png.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/png.c:6
6: undefined reference to `png_init_io'
 
zoom/lib/libpic.a(png.o)(.text+0x12c):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:6
8: undefined reference to `png_read_info'
 
zoom/lib/libpic.a(png.o)(.text+0x168):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:6
9: undefined reference to `png_get_IHDR'
 
zoom/lib/libpic.a(png.o)(.text+0x177):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:7
3: undefined reference to `png_set_expand'
 
zoom/lib/libpic.a(png.o)(.text+0x18a):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:7
4: undefined reference to `png_get_rowbytes'
 
zoom/lib/libpic.a(png.o)(.text+0x1da):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:5
7: undefined reference to `png_destroy_read_struct'
 
zoom/lib/libpic.a(png.o)(.text+0x217):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:5
9: undefined reference to `png_destroy_write_struct'
  zoom/lib/libpic.a(png.o)(.text+0x365): In function `picpng_open_stream':
  /usr/local/src/OME/src/C/omeis/zoom/lib/png.c:102: undefined reference 
to `png_create
_read_struct'
 
zoom/lib/libpic.a(png.o)(.text+0x36c):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
02: undefined reference to `png_create_write_struct'
 
zoom/lib/libpic.a(png.o)(.text+0x393):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
06: undefined reference to `png_create_info_struct'
 
zoom/lib/libpic.a(png.o)(.text+0x3d1):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
19: undefined reference to `png_init_io'
 
zoom/lib/libpic.a(png.o)(.text+0x3fc):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
21: undefined reference to `png_read_info'
 
zoom/lib/libpic.a(png.o)(.text+0x438):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
22: undefined reference to `png_get_IHDR'

zoom/lib/libpic.a(png.o)(.text+0x447):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
26: undefined reference to `png_set_expand'
 
zoom/lib/libpic.a(png.o)(.text+0x45a):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
27: undefined reference to `png_get_rowbytes'
 
zoom/lib/libpic.a(png.o)(.text+0x4aa):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
10: undefined reference to `png_destroy_read_struct'
 
zoom/lib/libpic.a(png.o)(.text+0x4e7):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:1
12: undefined reference to `png_destroy_write_struct'
  zoom/lib/libpic.a(png.o)(.text+0x553): In function `picpng_close':
  /usr/local/src/OME/src/C/omeis/zoom/lib/png.c:145: undefined reference 
to `png_write_
end'
  zoom/lib/libpic.a(png.o)(.text+0x6dc): In function `write_init':
  /usr/local/src/OME/src/C/omeis/zoom/lib/png.c:221: undefined reference 
to `png_set_IH
DR'
 
zoom/lib/libpic.a(png.o)(.text+0x6ec):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:2
24: undefined reference to `png_write_info'
 
zoom/lib/libpic.a(png.o)(.text+0x6fc):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:2
25: undefined reference to `png_get_rowbytes'
  zoom/lib/libpic.a(png.o)(.text+0x768): In function `seek_row_write':
  /usr/local/src/OME/src/C/omeis/zoom/lib/png.c:236: undefined reference 
to `png_get_ro
wbytes'
 
zoom/lib/libpic.a(png.o)(.text+0x799):/usr/local/src/OME/src/C/omeis/zoom/lib/png.c:2
38: undefined reference to `png_write_rows'
  zoom/lib/libpic.a(png.o)(.text+0x842): In function `picpng_write_row':
  /usr/local/src/OME/src/C/omeis/zoom/lib/png.c:255: undefined reference 
to `png_write_
row'
  zoom/lib/libpic.a(png.o)(.text+0x8f4): In function 
`picpng_write_row_rgba':
  /usr/local/src/OME/src/C/omeis/zoom/lib/png.c:275: undefined reference 
to `png_write_
row'
  zoom/lib/libpic.a(png.o)(.text+0x9fa): In function `seek_row_read':
  /usr/local/src/OME/src/C/omeis/zoom/lib/png.c:327: undefined reference 
to `png_read_r
ows'
  collect2: ld returned 1 exit status
  make[2]: *** [omeis] Error 1
  make[2]: Leaving directory `/usr/local/src/OME/src/C/omeis'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/usr/local/src/OME/src/C/omeis'
  make: *** [all] Error 2
"
I'll continue to investigate...thanks for the attention

Pierluigi


















More information about the ome-users mailing list