#18941 closed defect (invalid)
r48483 [libpgcrypto.0.0.so] Error 1; /pgcrypto/ && gnumake returned error 2
Reported by: | cerieljacobs@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | pgcrypto | Cc: | jyrkiwahlstedt |
Port: | postgresql83 |
Description
Environment: DEBUG: OS Platform: darwin DEBUG: OS Version: 9.6.0 DEBUG: Mac OS X Version: 10.5 DEBUG: System Arch: i386 macports r48483, os x 10.5.6, xcode 3.1.2, processor intel core2duo, universal_arch=x86_64, cflags=-fast (instead of -O2)
sudo /opt/local/bin/port -d install postgresql83 +universal configure.march=nocona stops at: <snip> /usr/bin/gcc-4.2 -no-cpp-precomp -fast -march=nocona -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -bundle -multiply_defined suppress pgcrypto.o px.o px-hmac.o px-crypt.o crypt-gensalt.o crypt-blowfish.o crypt-des.o crypt-md5.o openssl.o pgp-mpi-openssl.o mbuf.o pgp.o pgp-armor.o pgp-cfb.o pgp-compress.o pgp-decrypt.o pgp-encrypt.o pgp-info.o pgp-mpi.o pgp-pubdec.o pgp-pubenc.o pgp-pubkey.o pgp-s2k.o pgp-pgsql.o -L../../src/port -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -bundle_loader ../../src/backend/postgres -lcrypto -lz -o libpgcrypto.0.0.so ld: duplicate symbol _PGP_S2K_TYPE in pgp.o and pgp-mpi-openssl.o collect2: ld returned 1 exit status gnumake: *** [libpgcrypto.0.0.so] Error 1 Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.7/contrib/pgcrypto/ && gnumake" returned error 2 Command output: /usr/bin/gcc-4.2 -no-cpp-precomp -fast -march=nocona -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -bundle -multiply_defined suppress pgcrypto.o px.o px-hmac.o px-crypt.o crypt-gensalt.o crypt-blowfish.o crypt-des.o crypt-md5.o openssl.o pgp-mpi-openssl.o mbuf.o pgp.o pgp-armor.o pgp-cfb.o pgp-compress.o pgp-decrypt.o pgp-encrypt.o pgp-info.o pgp-mpi.o pgp-pubdec.o pgp-pubenc.o pgp-pubkey.o pgp-s2k.o pgp-pgsql.o -L../../src/port -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -bundle_loader ../../src/backend/postgres -lcrypto -lz -o libpgcrypto.0.0.so ld: duplicate symbol _PGP_S2K_TYPE in pgp.o and pgp-mpi-openssl.o collect2: ld returned 1 exit status gnumake: *** [libpgcrypto.0.0.so] Error 1 Warning: the following items did not execute (for postgresql83): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
$ ls -l /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.7/contrib/pgcrypto/ total 2024 -rw-r--r-- 1 root admin 1952 Nov 11 2007 Makefile -rw-r--r-- 1 root admin 19243 Nov 15 2007 blf.c -rw-r--r-- 1 root admin 2025 Nov 15 2007 blf.h -rw-r--r-- 1 root admin 23855 Nov 15 2007 crypt-blowfish.c -rw-r--r-- 1 root admin 16928 Mar 20 16:30 crypt-blowfish.o -rw-r--r-- 1 root admin 19239 Jul 13 2006 crypt-des.c -rw-r--r-- 1 root admin 11456 Mar 20 16:30 crypt-des.o -rw-r--r-- 1 root admin 4613 Oct 4 2006 crypt-gensalt.c -rw-r--r-- 1 root admin 2248 Mar 20 16:30 crypt-gensalt.o -rw-r--r-- 1 root admin 4096 Oct 4 2006 crypt-md5.c -rw-r--r-- 1 root admin 3040 Mar 20 16:30 crypt-md5.o drwxrwxrwx 27 root admin 918 Mar 20 16:25 expected -rw-r--r-- 1 root admin 9613 Oct 4 2006 fortuna.c -rw-r--r-- 1 root admin 1635 Oct 15 2005 fortuna.h -rw-r--r-- 1 root admin 67158 Jul 16 2007 imath.c -rw-r--r-- 1 root admin 7696 Nov 15 2007 imath.h -rw-r--r-- 1 root admin 5993 Oct 4 2006 internal-sha2.c -rw-r--r-- 1 root admin 11890 Nov 15 2007 internal.c -rw-r--r-- 1 root admin 180844 Mar 20 16:30 libpgcrypto.a -rw-r--r-- 1 root admin 9552 Jul 16 2007 mbuf.c -rw-r--r-- 1 root admin 4120 Oct 15 2005 mbuf.h -rw-r--r-- 1 root admin 7656 Mar 20 16:30 mbuf.o -rw-r--r-- 1 root admin 10153 Apr 6 2007 md5.c -rw-r--r-- 1 root admin 2721 Oct 15 2005 md5.h -rw-r--r-- 1 root admin 22413 Nov 15 2007 openssl.c -rw-r--r-- 1 root admin 16892 Mar 20 16:30 openssl.o -rw-r--r-- 1 root admin 11494 Feb 28 2007 pgcrypto.c -rw-r--r-- 1 root admin 1965 Sep 5 2006 pgcrypto.h -rw-r--r-- 1 root admin 11044 Mar 20 16:30 pgcrypto.o -rw-r--r-- 1 root admin 5222 Mar 20 16:30 pgcrypto.sql -rw-r--r-- 1 root admin 5189 Nov 13 2007 pgcrypto.sql.in -rw-r--r-- 1 root admin 7796 Oct 15 2005 pgp-armor.c -rw-r--r-- 1 root admin 4908 Mar 20 16:30 pgp-armor.o -rw-r--r-- 1 root admin 5901 Oct 15 2005 pgp-cfb.c -rw-r--r-- 1 root admin 3516 Mar 20 16:30 pgp-cfb.o -rw-r--r-- 1 root admin 7157 Nov 15 2007 pgp-compress.c -rw-r--r-- 1 root admin 4828 Mar 20 16:30 pgp-compress.o -rw-r--r-- 1 root admin 23094 Nov 22 2005 pgp-decrypt.c -rw-r--r-- 1 root admin 15304 Mar 20 16:30 pgp-decrypt.o -rw-r--r-- 1 root admin 12891 Oct 15 2005 pgp-encrypt.c -rw-r--r-- 1 root admin 7628 Mar 20 16:30 pgp-encrypt.o -rw-r--r-- 1 root admin 5007 Oct 15 2005 pgp-info.c -rw-r--r-- 1 root admin 2920 Mar 20 16:30 pgp-info.o -rw-r--r-- 1 root admin 6614 Oct 4 2006 pgp-mpi-internal.c -rw-r--r-- 1 root admin 6341 Oct 15 2005 pgp-mpi-openssl.c -rw-r--r-- 1 root admin 6012 Mar 20 16:30 pgp-mpi-openssl.o -rw-r--r-- 1 root admin 3294 Oct 15 2005 pgp-mpi.c -rw-r--r-- 1 root admin 3016 Mar 20 16:30 pgp-mpi.o -rw-r--r-- 1 root admin 19065 Feb 28 2007 pgp-pgsql.c -rw-r--r-- 1 root admin 18380 Mar 20 16:30 pgp-pgsql.o -rw-r--r-- 1 root admin 5015 Oct 15 2005 pgp-pubdec.c -rw-r--r-- 1 root admin 2608 Mar 20 16:30 pgp-pubdec.o -rw-r--r-- 1 root admin 5205 Oct 15 2005 pgp-pubenc.c -rw-r--r-- 1 root admin 2772 Mar 20 16:30 pgp-pubenc.o -rw-r--r-- 1 root admin 12126 Oct 15 2005 pgp-pubkey.c -rw-r--r-- 1 root admin 7156 Mar 20 16:30 pgp-pubkey.o -rw-r--r-- 1 root admin 6096 Oct 15 2005 pgp-s2k.c -rw-r--r-- 1 root admin 3016 Mar 20 16:30 pgp-s2k.o -rw-r--r-- 1 root admin 7517 Oct 15 2005 pgp.c -rw-r--r-- 1 root admin 8627 Oct 15 2005 pgp.h -rw-r--r-- 1 root admin 7212 Mar 20 16:30 pgp.o -rw-r--r-- 1 root admin 4053 Oct 15 2005 px-crypt.c -rw-r--r-- 1 root admin 2929 Jul 13 2006 px-crypt.h -rw-r--r-- 1 root admin 3032 Mar 20 16:30 px-crypt.o -rw-r--r-- 1 root admin 3775 Jul 11 2005 px-hmac.c -rw-r--r-- 1 root admin 2864 Mar 20 16:30 px-hmac.o -rw-r--r-- 1 root admin 9400 Nov 15 2007 px.c -rw-r--r-- 1 root admin 7877 Aug 23 2007 px.h -rw-r--r-- 1 root admin 8424 Mar 20 16:30 px.o -rw-r--r-- 1 root admin 5311 Jun 8 2006 random.c -rw-r--r-- 1 root admin 14811 Apr 6 2007 rijndael.c -rw-r--r-- 1 root admin 2261 Nov 20 2001 rijndael.h -rw-r--r-- 1 root admin 56603 Aug 21 2001 rijndael.tbl -rw-r--r-- 1 root admin 8828 Apr 6 2007 sha1.c -rw-r--r-- 1 root admin 2634 Nov 29 2003 sha1.h -rw-r--r-- 1 root admin 26536 Nov 15 2007 sha2.c -rw-r--r-- 1 root admin 3873 Jul 13 2006 sha2.h drwxrwxrwx 27 root admin 918 Mar 13 03:31 sql -rw-r--r-- 1 root admin 1696 Nov 13 2007 uninstall_pgcrypto.sql}}}
Attachments (1)
Change History (12)
Changed 16 years ago by cerieljacobs@…
Attachment: | postgresql83.full-debug.txt added |
---|
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Cc: | jwa@… added |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
Can you reproduce this without your base modifications? If not, you're on your own.
comment:2 Changed 16 years ago by cerieljacobs@…
Uninstalling and cleaning all ports, and then reverting to CFLAG=-O2 and removing configure.march=nocona, which leaves +universal=x86_64 and gcc-4.2, the results are:
<snip> /usr/bin/gcc-4.2 -no-cpp-precomp -fast -march=nocona -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -bundle -multiply_defined suppress pgcrypto.o px.o px-hmac.o px-crypt.o crypt-gensalt.o crypt-blowfish.o crypt-des.o crypt-md5.o openssl.o pgp-mpi-openssl.o mbuf.o pgp.o pgp-armor.o pgp-cfb.o pgp-compress.o pgp-decrypt.o pgp-encrypt.o pgp-info.o pgp-mpi.o pgp-pubdec.o pgp-pubenc.o pgp-pubkey.o pgp-s2k.o pgp-pgsql.o -L../../src/port -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -bundle_loader ../../src/backend/postgres -lcrypto -lz -o libpgcrypto.0.0.so ld warning: in /opt/local/lib/libcrypto.dylib, file is not of required architecture ld warning: in /opt/local/lib/libz.dylib, file is not of required architecture ld: duplicate symbol _PGP_S2K_TYPE in pgp.o and pgp-mpi-openssl.o collect2: ld returned 1 exit status gnumake: * [libpgcrypto.0.0.so] Error 1 Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.7/contrib/pgcrypto/ && gnumake" returned error 2 Command output: /usr/bin/gcc-4.2 -no-cpp-precomp -fast -march=nocona -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -bundle -multiply_defined suppress pgcrypto.o px.o px-hmac.o px-crypt.o crypt-gensalt.o crypt-blowfish.o crypt-des.o crypt-md5.o openssl.o pgp-mpi-openssl.o mbuf.o pgp.o pgp-armor.o pgp-cfb.o pgp-compress.o pgp-decrypt.o pgp-encrypt.o pgp-info.o pgp-mpi.o pgp-pubdec.o pgp-pubenc.o pgp-pubkey.o pgp-s2k.o pgp-pgsql.o -L../../src/port -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -bundle_loader ../../src/backend/postgres -lcrypto -lz -o libpgcrypto.0.0.so ld warning: in /opt/local/lib/libcrypto.dylib, file is not of required architecture ld warning: in /opt/local/lib/libz.dylib, file is not of required architecture ld: duplicate symbol _PGP_S2K_TYPE in pgp.o and pgp-mpi-openssl.o collect2: ld returned 1 exit status gnumake: * [libpgcrypto.0.0.so] Error 1
Warning: the following items did not execute (for postgresql83): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
comment:3 Changed 16 years ago by cerieljacobs@…
/usr/bin/gcc-4.2 -no-cpp-precomp -fast -march=nocona -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -bundle -multiply_defined suppress pgcrypto.o px.o px-hmac.o px-crypt.o crypt-gensalt.o crypt-blowfish.o crypt-des.o crypt-md5.o openssl.o pgp-mpi-openssl.o mbuf.o pgp.o pgp-armor.o pgp-cfb.o pgp-compress.o pgp-decrypt.o pgp-encrypt.o pgp-info.o pgp-mpi.o pgp-pubdec.o pgp-pubenc.o pgp-pubkey.o pgp-s2k.o pgp-pgsql.o -L../../src/port -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -bundle_loader ../../src/backend/postgres -lcrypto -lz -o libpgcrypto.0.0.so ld warning: in /opt/local/lib/libcrypto.dylib, file is not of required architecture ld warning: in /opt/local/lib/libz.dylib, file is not of required architecture ld: duplicate symbol _PGP_S2K_TYPE in pgp.o and pgp-mpi-openssl.o collect2: ld returned 1 exit status gnumake: *** [libpgcrypto.0.0.so] Error 1 Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.7/contrib/pgcrypto/ && gnumake" returned error 2 Command output: /usr/bin/gcc-4.2 -no-cpp-precomp -fast -march=nocona -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -bundle -multiply_defined suppress pgcrypto.o px.o px-hmac.o px-crypt.o crypt-gensalt.o crypt-blowfish.o crypt-des.o crypt-md5.o openssl.o pgp-mpi-openssl.o mbuf.o pgp.o pgp-armor.o pgp-cfb.o pgp-compress.o pgp-decrypt.o pgp-encrypt.o pgp-info.o pgp-mpi.o pgp-pubdec.o pgp-pubenc.o pgp-pubkey.o pgp-s2k.o pgp-pgsql.o -L../../src/port -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -bundle_loader ../../src/backend/postgres -lcrypto -lz -o libpgcrypto.0.0.so ld warning: in /opt/local/lib/libcrypto.dylib, file is not of required architecture ld warning: in /opt/local/lib/libz.dylib, file is not of required architecture ld: duplicate symbol _PGP_S2K_TYPE in pgp.o and pgp-mpi-openssl.o collect2: ld returned 1 exit status gnumake: *** [libpgcrypto.0.0.so] Error 1 Warning: the following items did not execute (for postgresql83): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
comment:4 Changed 16 years ago by jmroot (Joshua Root)
You're still using a modified default for configure.compiler. Are openssl and zlib built universal too? What is the output from running file
on those dylibs? Also, how did -fast -march=nocona
get in there if you reverted to -O2
?
comment:5 Changed 16 years ago by cerieljacobs@…
I really don't know where -march=nocona is coming from. That was specified on the command-line, but definately not in my retry. I am now going to start all over again, by removing /opt
comment:6 Changed 16 years ago by cerieljacobs@…
In the cleaned system state, with gcc 4.0 and universal=x86_64 there is no problem installing postgresql83.
comment:7 Changed 16 years ago by cerieljacobs@…
The /usr/bin/gcc-4.2 -fast -march=nocona -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 fails to make.
Why should I be on my own on this?
All configuration parameters were now configured in portconfigure.tcl Any parameter in the port file should overwrite values configured portconfire. There now seems to be a make dependency on a specific compiler, flag not to be used.
With darwin 10 / mac os 10.6 gcc-4.2 will be the default compiler. Wouldn't it be good that the postgresql83 port file is improved, to be prepared for the future?
comment:8 Changed 16 years ago by cerieljacobs@…
BTW now there is a different error: ld: duplicate symbol _PGP_S2K_TYPE in pgp.o and pgp-mpi-openssl.o
<snip> /usr/bin/gcc-4.2 -no-cpp-precomp -fast -march=nocona -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -bundle -multiply_defined suppress pgcrypto.o px.o px-hmac.o px-crypt.o crypt-gensalt.o crypt-blowfish.o crypt-des.o crypt-md5.o openssl.o pgp-mpi-openssl.o mbuf.o pgp.o pgp-armor.o pgp-cfb.o pgp-compress.o pgp-decrypt.o pgp-encrypt.o pgp-info.o pgp-mpi.o pgp-pubdec.o pgp-pubenc.o pgp-pubkey.o pgp-s2k.o pgp-pgsql.o -L../../src/port -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -bundle_loader ../../src/backend/postgres -lcrypto -lz -o libpgcrypto.0.0.so ld: duplicate symbol _PGP_S2K_TYPE in pgp.o and pgp-mpi-openssl.o collect2: ld returned 1 exit status gnumake: *** [libpgcrypto.0.0.so] Error 1
comment:9 Changed 16 years ago by tobypeterson
Resolution: | → invalid |
---|---|
Status: | new → closed |
If it fails to build with simply gcc-4.2, then there's perhaps something to be fixed here. However, failing to compile with -fast/-march=nocona/etc is not our problem.
comment:10 Changed 16 years ago by cerieljacobs@…
You are right this is not a macports problem, but a bug which is filed at postgresql.org under #4731:
what is causing it: pgp.h contains:
enum { PGP_S2K_SIMPLE = 0, PGP_S2K_SALTED = 1, PGP_S2K_ISALTED = 3 } PGP_S2K_TYPE;
What was meant was
enum PGP_S2K_TYPE { PGP_S2K_SIMPLE = 0, PGP_S2K_SALTED = 1, PGP_S2K_ISALTED = 3 };
because what the first one is doing is defining a global variable that is of an anonymous enum type.
Eh, it's silly mistake indeed.
postgresql83 install error full debug output