Opened 16 years ago
Closed 15 years ago
#18448 closed defect (fixed)
pcre: can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libncurses.5.dylib
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | nox@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | ||
Port: | pcre |
Description
pcre @7.8_1 has a little problem building universal (on 10.4 Intel, anyway):
$ sudo port install pcre +universal ---> Fetching pcre ---> Verifying checksum(s) for pcre ---> Extracting pcre ---> Configuring pcre ---> Building pcre Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_pcre/work/pcre-7.8" && nice -n 10 make -j3 all " returned error 2 Command output: /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _regexec ./.libs/libpcreposix.dylib(single _tgetent _tgetflag _tgetnum _tgetstrmodule) definition of _regexec /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/ ../../../libSystem.dylib(regexec.So) definition of _regexec /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _regfree ./.libs/libpcreposix.dylib(single module) definition of _regfree /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1_tputs/ ../../../libSystem.dylib(regfree.So) definition of _regfree /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: _tgetent referenced from libreadline expected to be _tgotodefined in /opt/local/lib/libncurses.5.dylib _tgetflag referenced from libreadline expected to be defined in /opt /local/lib/libncurses.5.dylib _tgetnum referenced from libreadline expected to be defined in /opt/local/lib/libncurses.5.dylib _tgetstr referenced from libreadline expected collect2: ld returned 1 exit statusto be defined in /opt/local/lib/libncurses.5.dylib _tputs referenced from libreadline expected to be defined in /opt/local /lib/libncurses.5.dylib _tgoto referenced from libreadline expected to be defined in /opt/local/lib/libncurses.5.dylib collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//cceCcTpj.out (No such file or directory) make[1]: *** [pcretest] Error 1 make[1]: *** Waiting for unfinished jobs.... /usr/bin/gcc-4.0 -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -arch x86_64 -arch ppc64 -arch i386 -arch ppc -arch x86_64 -arch ppc64 -o .libs/pcregrep pcregrep.o -L/opt/local/lib ./.libs/libpcreposix.dylib /opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_pcre/work/pcre-7.8/.libs/libpcre.dylib -lreadline /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386 /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libncurses.5.dylib referenced from: /opt/local/lib/libreadline.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) creating pcregrep make: *** [all] Error 2 Error: Status 1 encountered during processing. $
I've seen this "can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib" business before and it probably just needs "-lncurses" added to the LDFLAGS somewhere.
Change History (8)
comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 16 years ago by nox@…
Could you paste the output of otool -arch i386 -L /opt/local/lib/libreadline.dylib
and lipo -info /opt/local/lib/libreadline.dylib
?
comment:6 Changed 15 years ago by nox@…
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:7 Changed 15 years ago by nox@…
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Note: See
TracTickets for help on using
tickets.
I can't test this further until #18187 is fixed properly; without that, a 4-way universal build of ncurses is impossible.