Opened 15 years ago

Closed 15 years ago

#21482 closed defect (invalid)

pcre-7.9 build failure

Reported by: austinrobertson@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port:

Description

pcre fails when I try to build. I am running Snow Leopard v10.5.1. I have the latest XCode and X11 installed. I've search around a bit and couldn't find anything related that worked. Any ideas?

sudo port install pcre
Password:
Warning: Skipping upgrade since ncursesw 5.7_0 >= ncursesw 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
Warning: Skipping upgrade since ncurses 5.7_0 >= ncurses 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
Warning: Skipping upgrade since readline 6.0.000_1 >= readline 6.0.000_1, even though installed variants "" do not match "+darwin". Use 'upgrade --enforce-variants' to switch to the requested variants.
--->  Computing dependencies for pcre
--->  Building pcre
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pcre/work/pcre-7.9" && /usr/bin/make -j2 all " returned error 2
Command output: /usr/bin/make  all-am
/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -O2 -arch x86_64  -L/opt/local/lib -lncurses -o pcretest pcretest.o libpcreposix.la -lreadline 
/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -O2 -arch x86_64  -L/opt/local/lib -lncurses -o pcregrep pcregrep.o libpcreposix.la -lz -lbz2 
/usr/bin/gcc-4.2 -O2 -arch x86_64 -o .libs/pcretest pcretest.o  -L/opt/local/lib ./.libs/libpcreposix.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pcre/work/pcre-7.9/.libs/libpcre.dylib -lncurses -lreadline 
/usr/bin/gcc-4.2 -O2 -arch x86_64 -o .libs/pcregrep pcregrep.o  -L/opt/local/lib ./.libs/libpcreposix.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pcre/work/pcre-7.9/.libs/libpcre.dylib -lncurses -lz -lbz2 
ld: warning: in /opt/local/lib/libncurses.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libreadline.dylib, file is not of required architecture
Undefined symbols:
  "_readline", referenced from:
      _extend_inputline in pcretest.o
  "_add_history", referenced from:
      _extend_inputline in pcretest.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [pcretest] Error 1
make[1]: *** Waiting for unfinished jobs....
ld: warning: in /opt/local/lib/libncurses.dylib, file is not of required architecture
creating pcregrep
make: *** [all] Error 2

Error: Status 1 encountered during processing.
macbook-austin:~ Austin$ sudo port install pcre
Warning: Skipping upgrade since ncursesw 5.7_0 >= ncursesw 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
Warning: Skipping upgrade since ncurses 5.7_0 >= ncurses 5.7_0, even though installed variants "" do not match "+darwin_10". Use 'upgrade --enforce-variants' to switch to the requested variants.
Warning: Skipping upgrade since readline 6.0.000_1 >= readline 6.0.000_1, even though installed variants "" do not match "+darwin". Use 'upgrade --enforce-variants' to switch to the requested variants.
--->  Computing dependencies for pcre
--->  Building pcre
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pcre/work/pcre-7.9" && /usr/bin/make -j2 all " returned error 2
Command output: /usr/bin/make  all-am
/bin/sh ./libtool --tag=CC   --mode=link /usr/bin/gcc-4.2  -O2 -arch x86_64  -L/opt/local/lib -lncurses -o pcretest pcretest.o libpcreposix.la -lreadline 
/bin/sh ./libtool --tag=CXX   --mode=link /usr/bin/g++-4.2  -O2 -arch x86_64  -L/opt/local/lib -lncurses -o pcrecpp_unittest pcrecpp_unittest.o libpcrecpp.la 
/usr/bin/gcc-4.2 -O2 -arch x86_64 -o .libs/pcretest pcretest.o  -L/opt/local/lib ./.libs/libpcreposix.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pcre/work/pcre-7.9/.libs/libpcre.dylib -lncurses -lreadline 
/usr/bin/g++-4.2 -O2 -arch x86_64 -o .libs/pcrecpp_unittest pcrecpp_unittest.o -Wl,-bind_at_load  -L/opt/local/lib ./.libs/libpcrecpp.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pcre/work/pcre-7.9/.libs/libpcre.dylib -lncurses 
ld: warning: in /opt/local/lib/libncurses.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libreadline.dylib, file is not of required architecture
Undefined symbols:
  "_readline", referenced from:
      _extend_inputline in pcretest.o
  "_add_history", referenced from:
      _extend_inputline in pcretest.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [pcretest] Error 1
make[1]: *** Waiting for unfinished jobs....
ld: warning: in /opt/local/lib/libncurses.dylib, file is not of required architecture
creating pcrecpp_unittest
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Change History (1)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

You must have upgraded from Leopard and assumed Macports would work. Please read the migration page on the wiki.

Note: See TracTickets for help on using tickets.