Hi, on 3 pc: 2 with Ubuntu 9.10 and 1 with Ubuntu 10.04 i get same link
error... trying to compile contrib/hbpgsql/tests
hbmk2 dbf2pg.prg
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Processing configuration: /usr/bin/hbmk.cfg
Harbour 2.1.0dev (Rev. 13880)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'dbf2pg.prg'...
Lines 745, Functions/Procedures 2
Generating C source output to '/tmp/dbf2pg.c'... Done.
/usr/bin/ld: cannot find -llibpq
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc /tmp/dbf2pg.o /tmp/hbmk_2fbgew.o   -Wl,--start-group -lhbpgsql -llibpq
-lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca
-lgtstd -lgttrm -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx
-lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lm
-ldl -lrt -lpcre -lz -lgpm  -Wl,--end-group -odbf2pg -L/usr/lib

On my system i have the library:

 ls -l /usr/lib/libpq.*
-rw-r--r-- 1 root root 201356 2009-12-15 19:43 /usr/lib/libpq.a
lrwxrwxrwx 1 root root     12 2009-12-19 19:12 /usr/lib/libpq.so ->
libpq.so.5.2
lrwxrwxrwx 1 root root     12 2009-12-19 19:12 /usr/lib/libpq.so.5 ->
libpq.so.5.2
-rw-r--r-- 1 root root 138696 2009-12-15 19:43 /usr/lib/libpq.so.5.2

-------------------------------
My hbmk.hm in the contrib/hbpgsql/tests dir:

#
# $Id: hbmk.hbm 12732 2009-10-19 21:17:04Z vszakats $
#

../hbpgsql.hbc

-w3 -es2

-------------------------------
My ../hbpgsql.hbc is:

#
# $Id: hbpgsql.hbc 11672 2009-07-08 16:36:29Z druzus $
#

incpaths=.

libs=hbpgsql
libs=libpq

-----------------------------------

Can you confirm...? Do you have any suggestion...

Thank you in advance

Best regards
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to