On Fri, 08 Aug 2008, Szakáts Viktor wrote: Hi Viktor,
> >And this may be the reason why shared library is not created. > >But I have no idea why hbextern library is different then all others. > >It's created in standard build process. Maybe stdout log can say sth > >more. Or even better mixed output: > > ./make_tgz.sh &> mktgz.log > I've tried it, this is what I got: > -- > Making libharbour.1.0.0.dylib... > ar: /var/...-Tmp-/harbour.bin.vszakats.24669/usr/local/lib/harbour/ > libhbextern.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it) > ar: /var/...-Tmp-/harbour.bin.vszakats.24669/usr/local/lib/harbour/ > libhbextern.a: Inappropriate file type or format > -- > So it seems hbextern doesn't "like" unibin, and this causes > the remaining chain of problems. Rather unibin does not like hbextern code ;-) and generates final library which is too crypted for ar during extraction. Anyhow for Darwin we should replace in hb-mkslib.sh ar with libtool. ar is used to extract .o files from .a libary. See in hb-mkslib.sh[105]: ${CCPREFIX}ar -x "${dir}/${f}" || exit 1 I do not know Darwin libtool parameters. If possible please try replace this ar command with libtool or corresponding tools. Please also note that for Darwin L_USR is not passed to gcc when shared library is created. Looks that it should. Please check. Most of Darwin support in build scripts was added by Phil Krylov and I cannot help you too much. If it will be necessary then I'll ask you for account on your system. > Can you remove BASH now? Also the "-o " solution is a bit error > prone in darwin/gcc.cf, could you take a look at it? Notice that > the official GCC -o switch format is using a space, so this might > come as problem on other platforms, too. Each platform uses it's own scripts. AFAIR for SunOS in config/sunos/gcc.cf was strictly necessary to remove the space after CC_OUT = -o best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour