Subject: Re: Help needed to complile postgresql on Mac.
To: FC <qqa-1a89@myamail.com>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: netbsd-help
Date: 10/09/2005 10:36:00
Is libpq.dylib getting built? Is it there and just not being found?  If
so, you may need the LDFLAGS/CFLAGS settings from:

http://darwinports.opendarwin.org/darwinports/dports/databases/postgresql8/Portfile

If it's not being built, capture a log with 'script' and submit a
send-pr(1)

~BAS

On Fri, 2005-10-07 at 19:24, FC wrote:
> I am having hard time to compile postgresql80 on Mac. It seems it  
> doesn't find the libpq.dylib but the file is well here:
> 
> fred[596]> ls -l /Volumes/LaCie240/home/pkgsrc/databases/postgresql80- 
> client/work/postgresql-8.0.3/src/interfaces/libpq/.libs/libpq.dylib
> lrwxrwxr-x   1 fred  staff  17 Oct  7 18:07 /Volumes/LaCie240/home/ 
> pkgsrc/databases/postgresql80-client/work/postgresql-8.0.3/src/ 
> interfaces/libpq/.libs/libpq.dylib -> libpq.4.0.0.dylib
> 
> fred[599]> file /Volumes/LaCie240/home/pkgsrc/databases/postgresql80- 
> client/work/postgresql-8.0.3/src/interfaces/libpq/.libs/libpq. 
> 4.0.0.dylib
> /Volumes/LaCie240/home/pkgsrc/databases/postgresql80-client/work/ 
> postgresql-8.0.3/src/interfaces/libpq/.libs/libpq.4.0.0.dylib: Mach-O  
> dynamically linked shared library ppc
> 
> 
> Also there is the gcc error.
> 
> 
> gcc -pipe -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl} 
> suppress -o .libs/libecpg_compat.2.0.0.dylib  .libs/informix.o  -L/ 
> Volumes/LaCie240/home/pkgsrc/databases/postgresql80-client/work/ 
> postgresql-8.0.3/src/port -L/Volumes/LaCie240/home/pkgsrc/databases/ 
> postgresql80-client/work/.buildlink/lib -L/Volumes/LaCie240/home/ 
> pkgsrc/databases/postgresql80-client/work/postgresql-8.0.3/src/ 
> interfaces/ecpg/ecpglib ../ecpglib/.libs/libecpg.dylib -L/Volumes/ 
> LaCie240/home/pkgsrc/databases/postgresql80-client/work/ 
> postgresql-8.0.3/src/interfaces/ecpg/pgtypeslib -L/Volumes/LaCie240/ 
> home/pkgsrc/databases/postgresql80-client/work/postgresql-8.0.3/src/ 
> interfaces/ecpg/pgtypeslib/.libs /Volumes/LaCie240/home/pkgsrc/ 
> databases/postgresql80-client/work/postgresql-8.0.3/src/interfaces/ 
> ecpg/pgtypeslib/.libs/libpgtypes.dylib -L/Volumes/LaCie240/home/ 
> pkgsrc/databases/postgresql80-client/work/postgresql-8.0.3/src/ 
> interfaces/libpq/.libs -L/Volumes/LaCie240/home/pkgsrc/databases/ 
> postgresql80-client/work/postgresql-8.0.3/src/interfaces/ 
> libpq/.libs/.libs libpq.dylib ../pgtypeslib/.libs/libpgtypes.dylib / 
> Volumes/LaCie240/home/pkgsrc/databases/postgresql80-client/work/ 
> postgresql-8.0.3/src/interfaces/libpq/.libs/libpq.dylib -lssl - 
> lcrypto -lm /Volumes/LaCie240/home/pkgsrc/databases/postgresql80- 
> client/work/.buildlink/lib/libintl.dylib -lpthread  -install_name  / 
> usr/pkg/lib/libecpg_compat.2.dylib -Wl,-compatibility_version -Wl,3 - 
> Wl,-current_version -Wl,3.0
> powerpc-apple-darwin8-gcc-4.0.0: libpq.dylib: No such file or directory
> gnumake[2]: *** [libecpg_compat.la] Error 1
> gnumake[1]: *** [all] Error 2
> gnumake: *** [all] Error 2
> *** Error code 2
> 
> thanks for your help.
> -fred-