For demoxbp building I used the following command: $ hbmk2 -trace demoxbp &>shared.txt
producing the output: hbmk2: Processing local make script: hbmk.hbm hbmk2: Processing configuration: /usr/local/bin/hbmk.cfg hbmk2: Harbour compiler command (internal): (/usr/local/bin/harbour) -n2 demoxbp.prg -w3 -i/usr/local/include/harbour -i.. -i../../hbqt Harbour 2.0.0beta2 (Rev. 12403) Copyright (c) 1999-2009, http://www.harbour-project.org/ Compiling 'demoxbp.prg'... ... Lines 3336, Functions/Procedures 49 Generating C source output to 'demoxbp.c'... Done. hbmk2: C compiler command: gcc -c -O3 -I/usr/local/include/harbour -I.. -I../../hbqt demoxbp.c /tmp/hbmk_1wvog5.c hbmk2: Linker command: gcc demoxbp.o hbmk_1wvog5.o -lgpm -lhbxbp -lhbqt -lQtCore -lQtGui -lQtNetwork -lQtWebKit -lsupc++ -lhbcplr -lhbdebug -lharbour -odemoxbp -L/usr/local/lib/harbour This shared version works for me. For static build in hbmk2 terminology I used the following command: $ hbmk2 -trace -static demoxbp &>static.txt producing the output: hbmk2: Processing local make script: hbmk.hbm hbmk2: Processing configuration: /usr/local/bin/hbmk.cfg hbmk2: Harbour compiler command (internal): (/usr/local/bin/harbour) -n2 demoxbp.prg -w3 -i/usr/local/include/harbour -i.. -i../../hbqt Harbour 2.0.0beta2 (Rev. 12403) Copyright (c) 1999-2009, http://www.harbour-project.org/ Compiling 'demoxbp.prg'... ... Lines 3336, Functions/Procedures 49 Generating C source output to 'demoxbp.c'... Done. hbmk2: C compiler command: gcc -c -O3 -I/usr/local/include/harbour -I.. -I../../hbqt demoxbp.c /tmp/hbmk_p5m66x.c hbmk2: Linker command: gcc demoxbp.o hbmk_p5m66x.o -lgpm -lhbxbp -lhbqt -lQtCore -lQtGui -lQtNetwork -lQtWebKit -lsupc++ -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbusrrdd -lhbhsx -lhbsix -lrddntx -lrddcdx -lrddfpt -lhbuddall -lrddnsx -lhbrtl -lhbvm -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbpcre -lhbzlib -lm -ldl -lrt -odemoxbp -L/usr/local/lib/harbour This build generates the mentioned error. I tried to build a fullstatic build without any success: $ hbmk2 -trace -fullstatic demoxbp &>fullstatic.txt hbmk2: Processing local make script: hbmk.hbm hbmk2: Processing configuration: /usr/local/bin/hbmk.cfg hbmk2: Harbour compiler command (internal): (/usr/local/bin/harbour) -n2 demoxbp.prg -w3 -i/usr/local/include/harbour -i.. -i../../hbqt Harbour 2.0.0beta2 (Rev. 12403) Copyright (c) 1999-2009, http://www.harbour-project.org/ Compiling 'demoxbp.prg'... ... Lines 3336, Functions/Procedures 49 Generating C source output to 'demoxbp.c'... Done. hbmk2: C compiler command: gcc -c -O3 -I/usr/local/include/harbour -I.. -I../../hbqt demoxbp.c /tmp/hbmk_37ktzv.c hbmk2: Linker command: gcc demoxbp.o hbmk_37ktzv.o -lgpm -lhbxbp -lhbqt -lQtCore -lQtGui -lQtNetwork -lQtWebKit -lsupc++ -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbusrrdd -lhbhsx -lhbsix -lrddntx -lrddcdx -lrddfpt -lhbuddall -lrddnsx -lhbrtl -lhbvm -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbpcre -lhbzlib -lm -ldl -lrt -static -odemoxbp -L/usr/local/lib/harbour /usr/bin/ld: cannot find -lgpm collect2: ld returned 1 exit status hbmk2: Error: Running linker. 1 gcc demoxbp.o hbmk_37ktzv.o -lgpm -lhbxbp -lhbqt -lQtCore -lQtGui -lQtNetwork -lQtWebKit -lsupc++ -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbusrrdd -lhbhsx -lhbsix -lrddntx -lrddcdx -lrddfpt -lhbuddall -lrddnsx -lhbrtl -lhbvm -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbpcre -lhbzlib -lm -ldl -lrt -static -odemoxbp -L/usr/local/lib/harbour Best regards, István -----Original Message----- From: Lorenzo Fiorini [mailto:[email protected]] Sent: 2009. szeptember 5. 11:03 To: Harbour Project Main Developer List. Subject: Re: [Harbour] demoxbp segfault in Fedora 11 On Sat, Sep 5, 2009 at 10:24 AM, Bisz István<[email protected]> wrote: > Sorry I should correct me, the error mentioned by Lorenzo appears just in > the case when demoxbp is linked statically, the dynamic version works. I've never tried to link statically ( as far as I'm concerned ). I use: hbmk -n demoxbp -lhbxbp -lhbqt -lQtCore ... best regards, Lorenzo _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
