Re: [Fink-users] Error compiling libmng2-1.0.9-10

2006-03-03 Thread Martin Costabel
I am leaving this to the libtool gurus. I tried off-list to find 
differences between Pascal's configuration where this breaks and mine 
where it works. Completely without success, there is no visible 
difference. I am giving up.


Pascal Lamboley wrote:

Hi,

I'm trying to install libmng2 needed for gimp2,
and the compilation fails near the end.

[]

This package uses all the auto tools:


aclocal

[]

glibtoolize --automake
automake --foreign --add-missing
configure.in: installing `./install-sh'
configure.in: installing `./missing'
autoconf


The configure file that is generated here is the one that produces the 
libtool script. This configure file is exactly the same in Pascal's case 
and in my case. Nevertheless his libtool script forgets to add the dylib 
suffix  and it doesn't handle the ~ correctly.


[]

compilation ok, until this 


/bin/sh ./libtool --mode=link gcc  -g -O2  -L/sw/lib -o libmng.la -rpath 
/sw/lib -version-info 1:0:0 libmng_callba
ck_xs.lo libmng_chunk_io.lo libmng_chunk_prc.lo libmng_chunk_xs.lo 
libmng_cms.lo libmng_display.lo libmng_dither.l
o libmng_error.lo libmng_filter.lo libmng_hlapi.lo libmng_jpeg.lo 
libmng_object_prc.lo libmng_pixels.lo libmng_pro
p_xs.lo libmng_read.lo libmng_trace.lo libmng_write.lo libmng_zlib.lo  
-lz  -ljpeg -llcms
gcc -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o 
.libs/libmng.1.0.0  .libs/libmng_callback_xs.o .libs/libmng
_chunk_io.o .libs/libmng_chunk_prc.o .libs/libmng_chunk_xs.o 
.libs/libmng_cms.o .libs/libmng_display.o .libs/libmn
g_dither.o .libs/libmng_error.o .libs/libmng_filter.o 
.libs/libmng_hlapi.o .libs/libmng_jpeg.o .libs/libmng_object
_prc.o .libs/libmng_pixels.o .libs/libmng_prop_xs.o .libs/libmng_read.o 
.libs/libmng_trace.o .libs/libmng_write.o
.libs/libmng_zlib.o  -L/sw/lib -lz /sw/lib/libjpeg.dylib 
/sw/lib/liblcms.dylib  -install_name  /sw/lib/libmng.1 -c

ompatibility_version 2 -current_version 2.0
ld: warning -dylib_install_name /sw/lib/libmng.1 not found in segment 
address table LD_SEG_ADDR_TABLE /sw/var/lib/

fink/prebound/seg_addr_table
(cd .libs  rm -f libmng.1  ln -s libmng.1.0.0 libmng.1)
(cd .libs  rm -f libmng  ln -s libmng.1.0.0 libmng)
ar cru .libs/libmng.a  libmng_callback_xs.o libmng_chunk_io.o 
libmng_chunk_prc.o libmng_chunk_xs.o libmng_cms.o li
bmng_display.o libmng_dither.o libmng_error.o libmng_filter.o 
libmng_hlapi.o libmng_jpeg.o libmng_object_prc.o lib
mng_pixels.o libmng_prop_xs.o libmng_read.o libmng_trace.o 
libmng_write.o libmng_zlib.o~ranlib .libs/libmng.a

ar: libmng_zlib.o~ranlib: No such file or directory
make: *** [libmng.la] Error 1
### execution of make failed, exit code 2
Removing build lock...
/sw/bin/dpkg-lockwait -r fink-buildlock-libmng2-1.0.9-10
(Reading database ... 73750 files and directories currently installed.)
Removing fink-buildlock-libmng2-1.0.9-10 ...
Failed: phase compiling: libmng2-1.0.9-10 failed

I cannot understand how this ~ got into the way.
Any idea ?


--
Martin



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Error compiling libmng2-1.0.9-10

2006-03-03 Thread Peter O'Gorman

Martin Costabel wrote:
I am leaving this to the libtool gurus. I tried off-list to find 
differences between Pascal's configuration where this breaks and mine 
where it works. Completely without success, there is no visible 
difference. I am giving up.



The configure file that is generated here is the one that produces the 
libtool script. This configure file is exactly the same in Pascal's case 
and in my case. Nevertheless his libtool script forgets to add the dylib 
suffix  and it doesn't handle the ~ correctly.


I'm not sure why, but he's getting the ltmain.sh from /usr/share/libtool 
when he runs glibtoolize, he's properly getting /sw/share/aclocal/libtool.m4 
in configure though. Does he have /sw/bin/glibtoolize?


Peter


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Error compiling libmng2-1.0.9-10

2006-03-03 Thread Martin Costabel

Peter O'Gorman wrote:
[]
I'm not sure why, but he's getting the ltmain.sh from /usr/share/libtool 
when he runs glibtoolize, he's properly getting 
/sw/share/aclocal/libtool.m4 in configure though. Does he have 
/sw/bin/glibtoolize?


I think so, although I didn't ask this specifically. He has the same 
libtool packages installed as I have.


One strange thing I observed with my own tests: On this machine here, 
although I do have everything that is used in /sw/, I saw that 
/usr/share/aclocal/libtool.m4 was used instead of 
/sw/share/aclocal/libtool.m4. Only when I moved /usr/share/aclocal/ out 
of the way I got the same configure file as Pascal. It compiled libmng2 
correctly in both cases, though. On a second machine, it used 
/sw/share/aclocal/libtool.m4 directly, although /usr/share/aclocal was 
present, too, of course.


You are on the right track, though: While writing this, I ran another 
test with /sw/bin/glibtoolize removed. This gives me the same crash as 
reported by Pascal: No *dylib, and ~ instead of \n.


I don't really want to understand this, but one thing is clear here: The 
libmng2 package needs to run these commands with %p/bin prefixed. 
Whether the commands then take their support stuff from /sw/share or 
from /usr/share is another story, but apparently less important.


Another thing is clear, too: The stuff Apple gives us in 
/usr/share/{aclocal,libtool} and /usr/bin/glibtool* doesn't work. Do 
they know this?


--
Martin





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Error compiling libmng2-1.0.9-10

2006-03-02 Thread Martin Costabel

Daniel Macks wrote:

On Tue, Feb 28, 2006 at 07:05:34PM +0100, Pascal Lamboley wrote:

Mac G5 runnig Mac OS X 10.4.5 (same problem on a G4 also running 10.4.5)
fink --version
   Package manager version: 0.24.12

[libmng2-1.0.9-10: all claimed to be okay until...]
/bin/sh ./libtool --mode=link gcc  -g -O2  -L/sw/lib -o libmng.la - 
rpath /sw/lib -version-info 1:0:0 libmng_callba
ck_xs.lo libmng_chunk_io.lo libmng_chunk_prc.lo libmng_chunk_xs.lo  
libmng_cms.lo libmng_display.lo libmng_dither.l
o libmng_error.lo libmng_filter.lo libmng_hlapi.lo libmng_jpeg.lo  
libmng_object_prc.lo libmng_pixels.lo libmng_pro
p_xs.lo libmng_read.lo libmng_trace.lo libmng_write.lo  
libmng_zlib.lo  -lz  -ljpeg -llcms
gcc -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libmng. 
1.0.0  .libs/libmng_callback_xs.o .libs/libmng


There is a missing dylib suffix here.
[]

ar: libmng_zlib.o~ranlib: No such file or directory
make: *** [libmng.la] Error 1

[...]

I cannot understand how this ~ got into the way.


This ~ is there in some intermediate step, but it should be 
transformed into a newline by libtool (if I understand correctly, but 
who can understand libtool's crazy ways?).


So one thing to check is the version of libtool installed. Also the 
vesions of the auto packages, because this package uses them from the 
ground up. What does


  fink list -it auto libtool

report? Another possibility is that some of the libtool helper tools 
like sed are acting up.


--
Martin



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users


Re: [Fink-users] Error compiling libmng2-1.0.9-10

2006-03-01 Thread Daniel Macks
On Tue, Feb 28, 2006 at 07:05:34PM +0100, Pascal Lamboley wrote:
 
 Mac G5 runnig Mac OS X 10.4.5 (same problem on a G4 also running 10.4.5)
 fink --version
Package manager version: 0.24.12
[libmng2-1.0.9-10: all claimed to be okay until...]
 /bin/sh ./libtool --mode=link gcc  -g -O2  -L/sw/lib -o libmng.la - 
 rpath /sw/lib -version-info 1:0:0 libmng_callba
 ck_xs.lo libmng_chunk_io.lo libmng_chunk_prc.lo libmng_chunk_xs.lo  
 libmng_cms.lo libmng_display.lo libmng_dither.l
 o libmng_error.lo libmng_filter.lo libmng_hlapi.lo libmng_jpeg.lo  
 libmng_object_prc.lo libmng_pixels.lo libmng_pro
 p_xs.lo libmng_read.lo libmng_trace.lo libmng_write.lo  
 libmng_zlib.lo  -lz  -ljpeg -llcms
 gcc -dynamiclib ${wl}-undefined ${wl}dynamic_lookup -o .libs/libmng. 
 1.0.0  .libs/libmng_callback_xs.o .libs/libmng
 _chunk_io.o .libs/libmng_chunk_prc.o .libs/libmng_chunk_xs.o .libs/ 
 libmng_cms.o .libs/libmng_display.o .libs/libmn
 g_dither.o .libs/libmng_error.o .libs/libmng_filter.o .libs/ 
 libmng_hlapi.o .libs/libmng_jpeg.o .libs/libmng_object
 _prc.o .libs/libmng_pixels.o .libs/libmng_prop_xs.o .libs/ 
 libmng_read.o .libs/libmng_trace.o .libs/libmng_write.o
 .libs/libmng_zlib.o  -L/sw/lib -lz /sw/lib/libjpeg.dylib /sw/lib/ 
 liblcms.dylib  -install_name  /sw/lib/libmng.1 -c
 ompatibility_version 2 -current_version 2.0
 ld: warning -dylib_install_name /sw/lib/libmng.1 not found in segment  
 address table LD_SEG_ADDR_TABLE /sw/var/lib/
 fink/prebound/seg_addr_table
 (cd .libs  rm -f libmng.1  ln -s libmng.1.0.0 libmng.1)
 (cd .libs  rm -f libmng  ln -s libmng.1.0.0 libmng)
 ar cru .libs/libmng.a  libmng_callback_xs.o libmng_chunk_io.o  
 libmng_chunk_prc.o libmng_chunk_xs.o libmng_cms.o li
 bmng_display.o libmng_dither.o libmng_error.o libmng_filter.o  
 libmng_hlapi.o libmng_jpeg.o libmng_object_prc.o lib
 mng_pixels.o libmng_prop_xs.o libmng_read.o libmng_trace.o  
 libmng_write.o libmng_zlib.o~ranlib .libs/libmng.a
 ar: libmng_zlib.o~ranlib: No such file or directory
 make: *** [libmng.la] Error 1
[...]
 I cannot understand how this ~ got into the way.
 Any idea ?

Very strange! It worked for me (no unexpected ~) on my 10.3 machine,
and also in the last 10.4 buildworld:
  http://fink.opendarwin.org/build/2006-01-17/ppc/logs/libmng2.log

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users