On Fri, 08 Aug 2008, Szakáts Viktor wrote:

Hi Viktor,

> I've attached the now clean list of errors, as it
> contains some stuff which may need to be fixed.
> (regarding libhbextern and libhbfm maybe)

> --- my starter script
> #!/bin/bash
> export HB_ARCHITECTURE=darwin
> export HB_COMPILER=gcc

Both should be detected automatically by make_{gnu,tgz}.sh
Try to remove it. We should know if autodetection works correctly.

> export C_USR="-arch i386 -arch ppc"
> export L_USR="-arch i386 -arch ppc"

I've never tried to create dual platform libraries and I have no idea
if it works. If possible make tests only with natvie platform without
any -arch switches. Then we can try to create multiplatform binaries.

> #if [ -z "$HB_GT_LIB" ]; then export HB_GT_LIB=gttrm; fi

It's also default. Please remove.

> #if [ -z "$HB_BIN_INSTALL" ]; then export HB_BIN_INSTALL=$PREFIX/bin; fi
> #if [ -z "$HB_LIB_INSTALL" ]; then export HB_LIB_INSTALL=$PREFIX/lib/harbour; 
> fi
> #if [ -z "$HB_INC_INSTALL" ]; then export 
> HB_INC_INSTALL=$PREFIX/include/harbour; fi

If you do not have PREFIX envvar then location is not the best one.
Here I also rather sugest to remove this. Default locations for make_tgz.sh
is /usr/local

> . `dirname $0`/make_tgz.sh $*
> ---
> --- stderr
> libtool: for architecture: i386 file: hbwince.o has no symbols
> libtool: for architecture: ppc file: hbwince.o has no symbols
> libtool: for architecture: i386 file: gtkbstat.o has no symbols
> libtool: for architecture: i386 file: gtkeycod.o has no symbols
> libtool: for architecture: i386 file: gttone.o has no symbols
> libtool: for architecture: i386 file: browdbx.o has no symbols
> libtool: for architecture: ppc file: gtkbstat.o has no symbols
> libtool: for architecture: ppc file: gtkeycod.o has no symbols
> libtool: for architecture: ppc file: gttone.o has no symbols
> libtool: for architecture: ppc file: browdbx.o has no symbols
> libtool: for architecture: i386 file: ctnet.o has no symbols
> libtool: for architecture: i386 file: ctset.o has no symbols
> libtool: for architecture: i386 file: video.o has no symbols
> libtool: for architecture: ppc file: ctnet.o has no symbols
> libtool: for architecture: ppc file: ctset.o has no symbols
> libtool: for architecture: ppc file: video.o has no symbols

All this files are empty so the warning messages are perfectly
correct.

> In file included from ../../hbsqlit3.c:45:
> ../../sqlite3/sqlite3.c: In function â__full_fsyncâ_t:
> ../../sqlite3/sqlite3.c:19843: warning: unused parameter â__dataOnlyâ_t
> In file included from ../../hbsqlit3.c:45:
> ../../sqlite3/sqlite3.c: In function â__full_fsyncâ_t:
> ../../sqlite3/sqlite3.c:19843: warning: unused parameter â__dataOnlyâ_t

Just pacify it.

> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbcommon.a(hbwince.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbcommon.a(hbwince.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbrtl.a(gtkbstat.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbrtl.a(gtkeycod.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbrtl.a(gttone.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbrtl.a(browdbx.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbrtl.a(gtkbstat.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbrtl.a(gtkeycod.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbrtl.a(gttone.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbrtl.a(browdbx.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(ctnet.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(ctset.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(video.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(ctnet.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(ctset.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(video.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(ctnet.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(ctset.o) has no symbols
> ranlib: for architecture: i386 file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(video.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(ctnet.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(ctset.o) has no symbols
> ranlib: for architecture: ppc file: /var/folders/zE/zEKVnguu2RW3OE 
> +BYw4Bx++++TI/-Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/ 
> libhbct.a(video.o) has no symbols

repeated for empty files.

> ar: /var/folders/zE/zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/ 
> harbour.bin.vszakats.76256/usr/local/lib/harbour/libhbextern.a is a  
> fat file (use libtool(1) or lipo(1) and ar(1) on it)
> ar: /var/folders/zE/zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/ 
> harbour.bin.vszakats.76256/usr/local/lib/harbour/libhbextern.a:  
> Inappropriate file type or format

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

> ranlib: archive library: /var/folders/zE/zEKVnguu2RW3OE+BYw4Bx++++TI/- 
> Tmp-//harbour.bin.vszakats.76256/usr/local/lib/harbour/libhbfm.a will  
> be fat and ar(1) will not be able to operate on it

This I'll change. hbfm is build in different way then other libraries
It's created with ar and Darwin builds uses libtool.

> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbcommon.a(hbwince.o) (for architecture i386)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbcommon.a(hbwince.o) (for architecture ppc)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbct.a(ctnet.o) (for architecture i386)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbct.a(ctset.o) (for architecture i386)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbct.a(video.o) (for architecture i386)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbct.a(ctnet.o) (for architecture ppc)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbct.a(ctset.o) (for architecture ppc)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbct.a(video.o) (for architecture ppc)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbrtl.a(gtkbstat.o) (for architecture i386)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbrtl.a(gtkeycod.o) (for architecture i386)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbrtl.a(gttone.o) (for architecture i386)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbrtl.a(browdbx.o) (for architecture i386)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbrtl.a(gtkbstat.o) (for architecture ppc)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbrtl.a(gtkeycod.o) (for architecture ppc)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbrtl.a(gttone.o) (for architecture ppc)
> strip: input object file stripped: /private/var/folders/zE/ 
> zEKVnguu2RW3OE+BYw4Bx++++TI/-Tmp-/harbour.bin.vszakats.76256/usr/local/ 
> lib/harbour/libhbrtl.a(browdbx.o) (for architecture ppc)

again warning for empty files.

> ld: library not found for -lharbour
> collect2: ld returned 1 exit status
> ld: library not found for -lharbour
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/folders/zE/zEKVnguu2RW3OE+BYw4Bx+++ 
> +TI/-Tmp-//ccpvY1d2.out (No such file or directory)
> make[1]: *** [hbmake] Error 1
> make: *** [descend] Error 2
> ld: library not found for -lharbour
> collect2: ld returned 1 exit status
> ld: library not found for -lharbour
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/folders/zE/zEKVnguu2RW3OE+BYw4Bx+++ 
> +TI/-Tmp-//ccqcH8FJ.out (No such file or directory)
> make[1]: *** [hbrun] Error 1
> make: *** [descend] Error 2
> ld: library not found for -lharbour
> collect2: ld returned 1 exit status
> ld: library not found for -lharbour
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/folders/zE/zEKVnguu2RW3OE+BYw4Bx+++ 
> +TI/-Tmp-//ccR4VtI0.out (No such file or directory)
> make[1]: *** [hbdoc] Error 1
> make: *** [descend] Error 2
> ld: library not found for -lharbour
> collect2: ld returned 1 exit status
> ld: library not found for -lharbour
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/folders/zE/zEKVnguu2RW3OE+BYw4Bx+++ 
> +TI/-Tmp-//ccRUMdYH.out (No such file or directory)
> make[1]: *** [hbtest] Error 1
> make: *** [descend] Error 2

This are results of missing harbour shared library.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to