Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#22527 closed defect (fixed)

mysql5-devel: libreadline.dylib, file is not of required architecture

Reported by: konstantinos.pouliasis@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: mysql5-devel

Description

Hi, I am totally new to macports. Trying to install amarok which requires mysql5-devel. I have hard times with the installation though. My output is

--->  Building mysql5-devel
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_mysql5-devel/work/mysql-5.1.40" && /usr/bin/make -j1 all " returned error 2
Command output: libtool: link: ln .libs/libndbmgmclient.lax/lt1-libportlib.a/NdbTCP.o .libs/libndbmgmclient.lax/lt9-NdbTCP.o || cp .libs/libndbmgmclient.lax/lt1-libportlib.a/NdbTCP.o .libs/libndbmgmclient.lax/lt9-NdbTCP.o
libtool: link: ln .libs/libndbmgmclient.lax/lt1-libportlib.a/NdbThread.o .libs/libndbmgmclient.lax/lt10-NdbThread.o || cp .libs/libndbmgmclient.lax/lt1-libportlib.a/NdbThread.o .libs/libndbmgmclient.lax/lt10-NdbThread.o
libtool: link: ln .libs/libndbmgmclient.lax/lt1-libportlib.a/NdbTick.o .libs/libndbmgmclient.lax/lt11-NdbTick.o || cp .libs/libndbmgmclient.lax/lt1-libportlib.a/NdbTick.o .libs/libndbmgmclient.lax/lt11-NdbTick.o
libtool: link: ar cru .libs/libndbmgmclient.a .libs/CommandInterpreter.o .libs/libndbmgmclient.lax/libmgmapi.a/ConfigInfo.o .libs/libndbmgmclient.lax/libmgmapi.a/LocalConfig.o .libs/libndbmgmclient.lax/libmgmapi.a/mgmapi.o .libs/libndbmgmclient.lax/libmgmapi.a/mgmapi_configuration.o .libs/libndbmgmclient.lax/libmgmapi.a/ndb_logevent.o .libs/libndbmgmclient.lax/libmgmapi.a/ndbd_exit_codes.o .libs/libndbmgmclient.lax/liblogger.a/ConsoleLogHandler.o .libs/libndbmgmclient.lax/liblogger.a/FileLogHandler.o .libs/libndbmgmclient.lax/liblogger.a/Logger.o .libs/libndbmgmclient.lax/liblogger.a/LogHandler.o .libs/libndbmgmclient.lax/liblogger.a/LogHandlerList.o .libs/libndbmgmclient.lax/liblogger.a/SysLogHandler.o .libs/libndbmgmclient.lax/libportlib.a/NdbCondition.o .libs/libndbmgmclient.lax/libportlib.a/NdbConfig.o .libs/libndbmgmclient.lax/libportlib.a/NdbDaemon.o .libs/libndbmgmclient.lax/libportlib.a/NdbEnv.o .libs/libndbmgmclient.lax/libportlib.a/NdbHost.o .libs/libndbmgmclient.lax/libportlib.a/NdbMem.o .libs/libndbmgmclient.lax/libportlib.a/NdbMutex.o .libs/libndbmgmclient.lax/libportlib.a/NdbSleep.o .libs/libndbmgmclient.lax/libportlib.a/NdbTCP.o .libs/libndbmgmclient.lax/libportlib.a/NdbThread.o .libs/libndbmgmclient.lax/libportlib.a/NdbTick.o .libs/libndbmgmclient.lax/libgeneral.a/BaseString.o .libs/libndbmgmclient.lax/libgeneral.a/basestring_vsnprintf.o .libs/libndbmgmclient.lax/libgeneral.a/Bitmask.o .libs/libndbmgmclient.lax/libgeneral.a/ConfigValues.o .libs/libndbmgmclient.lax/libgeneral.a/File.o .libs/libndbmgmclient.lax/libgeneral.a/InputStream.o .libs/libndbmgmclient.lax/libgeneral.a/md5_hash.o .libs/libndbmgmclient.lax/libgeneral.a/ndb_init.o .libs/libndbmgmclient.lax/libgeneral.a/ndb_rand.o .libs/libndbmgmclient.lax/libgeneral.a/NdbOut.o .libs/libndbmgmclient.lax/libgeneral.a/NdbSqlUtil.o .libs/libndbmgmclient.lax/libgeneral.a/new.o .libs/libndbmgmclient.lax/libgeneral.a/OutputStream.o .libs/libndbmgmclient.lax/libgeneral.a/Parser.o .libs/libndbmgmclient.lax/libgeneral.a/Properties.o .libs/libndbmgmclient.lax/libgeneral.a/random.o .libs/libndbmgmclient.lax/libgeneral.a/SimpleProperties.o .libs/libndbmgmclient.lax/libgeneral.a/socket_io.o .libs/libndbmgmclient.lax/libgeneral.a/SocketAuthenticator.o .libs/libndbmgmclient.lax/libgeneral.a/SocketClient.o .libs/libndbmgmclient.lax/libgeneral.a/SocketServer.o .libs/libndbmgmclient.lax/libgeneral.a/strdup.o .libs/libndbmgmclient.lax/libgeneral.a/uucode.o .libs/libndbmgmclient.lax/libgeneral.a/version.o .libs/libndbmgmclient.lax/lt1-NdbCondition.o .libs/libndbmgmclient.lax/lt2-NdbConfig.o .libs/libndbmgmclient.lax/lt3-NdbDaemon.o .libs/libndbmgmclient.lax/lt4-NdbEnv.o .libs/libndbmgmclient.lax/lt5-NdbHost.o .libs/libndbmgmclient.lax/lt6-NdbMem.o .libs/libndbmgmclient.lax/lt7-NdbMutex.o .libs/libndbmgmclient.lax/lt8-NdbSleep.o .libs/libndbmgmclient.lax/lt9-NdbTCP.o .libs/libndbmgmclient.lax/lt10-NdbThread.o .libs/libndbmgmclient.lax/lt11-NdbTick.o .libs/libndbmgmclient.lax/libtrace.a/BlockNames.o .libs/libndbmgmclient.lax/libtrace.a/DebuggerNames.o .libs/libndbmgmclient.lax/libtrace.a/EventLogger.o .libs/libndbmgmclient.lax/libtrace.a/SignalLoggerManager.o
ranlib: file: .libs/libndbmgmclient.a(strdup.o) has no symbols
libtool: link: ranlib .libs/libndbmgmclient.a
ranlib: file: .libs/libndbmgmclient.a(strdup.o) has no symbols
libtool: link: rm -fr .libs/libndbmgmclient.lax .libs/libndbmgmclient.lax
libtool: link: ( cd ".libs" && rm -f "libndbmgmclient.la" && ln -s "../libndbmgmclient.la" "libndbmgmclient.la" )
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -DNDEBUG   -I. -I../../../../include  -I. -I../../../../include -I../../../../storage/ndb/include -I../../../../include -I../../../../mysys -I../../../../storage/ndb/include -I../../../../storage/ndb/include/kernel -I../../../../storage/ndb/include/transporter -I../../../../storage/ndb/include/debugger -I../../../../storage/ndb/include/mgmapi -I../../../../storage/ndb/include/mgmcommon -I../../../../storage/ndb/include/ndbapi -I../../../../storage/ndb/include/util -I../../../../storage/ndb/include/portlib -I../../../../storage/ndb/include/logger -I../../../../storage/ndb/include/mgmapi -I../../../../storage/ndb/src/common/mgmcommon  -I/opt/local/include    -O2 -fPIC -arch x86_64   -fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
mv -f .deps/main.Tpo .deps/main.Po
/bin/sh ../../../../libtool --preserve-dup-deps --tag=CXX   --mode=link /usr/bin/g++-4.2    -O2 -fPIC -arch x86_64   -fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL -static -L/opt/local/lib  -o ndb_mgm main.o libndbmgmclient.la ../common/portlib/libportlib.la -lreadline ../../../../storage/ndb/src/libndbclient.la ../../../../dbug/libdbug.a ../../../../mysys/libmysys.a ../../../../strings/libmystrings.a -lcurses  -lm  
libtool: link: /usr/bin/g++-4.2 -O2 -fPIC -arch x86_64 -fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -o ndb_mgm main.o  -L/opt/local/lib ./.libs/libndbmgmclient.a ../common/portlib/.libs/libportlib.a -lreadline ../../../../storage/ndb/src/.libs/libndbclient.a ../../../../dbug/libdbug.a ../../../../mysys/libmysys.a ../../../../strings/libmystrings.a -lcurses -lm
ld: warning: in /opt/local/lib/libreadline.dylib, file is not of required architecture
Undefined symbols:
  "_add_history", referenced from:
      read_and_execute(int)   in main.o
  "_read_history", referenced from:
      _main in main.o
  "_readline", referenced from:
      read_and_execute(int)   in main.o
  "_write_history", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [ndb_mgm] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Change History (6)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Cc: ryandesign@… added
Owner: changed from macports-tickets@… to jwa@…
Port: mysql5-devel added

comment:2 in reply to:  description Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: problem with mysql5-develmysql5-devel: libreadline.dylib, file is not of required architecture

Replying to konstantinos.pouliasis@…:

ld: warning: in /opt/local/lib/libreadline.dylib, file is not of required architecture

It sounds like this situation.

comment:3 Changed 15 years ago by konstantinos.pouliasis@…

ok! I just did

sudo port clean all

and tried to reinstall mysql5-devel and got exactly the same output.

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Please read the Migration page again. "clean all" is not how you resolve the issue. Also, please use the mysql5 port now (which is version 5.1.41), not mysql5-devel (currently 5.1.40).

comment:5 Changed 15 years ago by jyrkiwahlstedt

Resolution: fixed
Status: newclosed

Yes, the readline port must be installed with +universal, this has nothing to do with any mysql5 port...

comment:6 in reply to:  5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jwa@…:

Yes, the readline port must be installed with +universal, this has nothing to do with any mysql5 port...

But we can improve the error message and let the user know this is what they must do. I did this by adding the archcheck portgroup to mysql5 and mysql5-devel in r61526.

Note: See TracTickets for help on using tickets.