Opened 14 years ago

Closed 14 years ago

#25715 closed defect (fixed)

qca-ossl cannot find qca during configure phase

Reported by: snowflake (Dave Evans) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.9.99
Keywords: Cc: rowue@…, dsdale24@…
Port: qca-ossl

Description

qca-ossl is not finding qca during the configure phase

Here is the log:

DEBUG: Executing org.macports.configure (qca-ossl)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_davidevans_macports_svn-repo_macports-trunk_dports_devel_qca-ossl/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_davidevans_macports_svn-repo_macports-trunk_dports_devel_qca-ossl/work/qca-ossl-2.0.0-beta3" && ./configure --qtdir=/opt/local/libexec/qt4-mac --with-qca=/opt/local'
Configuring qca-ossl ...
Verifying Qt 4 build environment ... ok
Checking for QCA >= 2.0 ... no

Error: need QCA >= 2.0!

I have reinstalled qca just in case, but it does not fix it.

Change History (12)

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

Owner: changed from macports-tickets@… to rowue@…

comment:2 Changed 14 years ago by michaelld (Michael Dickens)

Owner: changed from rowue@… to michaelld@…

OK; let's see if QCA is installed correctly. If you do (assuming you installed MacPorts using the default prefix of "/opt/local"; if not, state so & change the command accordingly):

ls /opt/local/lib/libqca*

what's returned, if anything?

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Cc: rowue@… added; michaelld@… removed

comment:4 in reply to:  2 ; Changed 14 years ago by snowflake (Dave Evans)

Replying to michaelld@…:

ls returns

/opt/local/lib/libqca.2.0.2.dylib	/opt/local/lib/libqca.2.dylib
/opt/local/lib/libqca.2.0.dylib		/opt/local/lib/libqca.dylib

comment:5 in reply to:  4 Changed 14 years ago by snowflake (Dave Evans)

Replying to dave.evans55@…:

I turned on the --verbose option for configure in the qca-ossl port file and did a cleaned and reconfigure for the port. It is looking for a qca-debug library

Here is the log:

--->  Configuring qca-ossl
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: configure phase started at Sun Jul 18 11:20:20 BST 2010
DEBUG: Executing org.macports.configure (qca-ossl)
DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_davidevans_macports_svn-repo_macports-trunk_dports_devel_qca-ossl/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_davidevans_macports_svn-repo_macports-trunk_dports_devel_qca-ossl/work/qca-ossl-2.0.0-beta3" && ./configure --qtdir=/opt/local/libexec/qt4-mac --with-qca=/opt/local --verbose'
Configuring qca-ossl ...

EX_QTDIR=/opt/local/libexec/qt4-mac
QC_STATIC=
QC_RELEASE=
QC_DEBUG=
QC_DEBUG_AND_RELEASE=
QC_NO_SEPARATE_DEBUG_INFO=
QC_SEPARATE_DEBUG_INFO=
QC_UNIVERSAL=
QC_MAC_SDK=
QC_PLUGINS_PATH=
QC_WITH_QCA=/opt/local
QC_WITH_OPENSSL_INC=
QC_WITH_OPENSSL_LIB=

Verifying Qt 4 build environment ... 
qmake found in /opt/local/libexec/qt4-mac/bin/qmake
 -> ok
conf command: [./configure]
conf path:    [./configure]
srcdir:       [/opt/local/var/macports/build/_Users_davidevans_macports_svn-repo_macports-trunk_dports_devel_qca-ossl/work/qca-ossl-2.0.0-beta3]
builddir:     [/opt/local/var/macports/build/_Users_davidevans_macports_svn-repo_macports-trunk_dports_devel_qca-ossl/work/qca-ossl-2.0.0-beta3]
profile:      [/opt/local/var/macports/build/_Users_davidevans_macports_svn-repo_macports-trunk_dports_devel_qca-ossl/work/qca-ossl-2.0.0-beta3/qca-ossl.pro]
qmake path:   [/opt/local/libexec/qt4-mac/bin/qmake]
make tool:    [/opt/local/bin/gmake]


 * extra += CONFIG += release

Checking for QCA >= 2.0 ...ld: library not found for -lqca_debug
collect2: ld returned 1 exit status
gmake: *** [atest] Error 1

 * Wrote atest.cpp:
#include <QtCrypto>

int main()
{
	unsigned long x = QCA_VERSION;
	if(x >= 0x020000 && x < 0x030000) return 0; else return 1;
}

 * Wrote atest.pro:
CONFIG  += console
CONFIG  -= qt app_bundle
SOURCES += atest.cpp
CONFIG += qt
QT -= gui
CONFIG *= qt
INCLUDEPATH += /opt/local/include/QtCrypto
LIBS += -L/opt/local/lib

LINKAGE = -lqca
CONFIG(debug, debug|release) {
	windows:LINKAGE = -lqcad
	mac:LINKAGE = -lqca_debug
}
LIBS += $$LINKAGE
CONFIG += release

 * [/opt/local/libexec/qt4-mac/bin/qmake atest.pro]
 * returned: 0
 * [/opt/local/bin/gmake]
/usr/bin/g++-4.2 -c -pipe -O2 -Wall -W -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/opt/local/libexec/qt4-mac/mkspecs/macx-g++ -I. -I/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/lib/QtCore.framework/Versions/4/Headers -I/opt/local/libexec/qt4-mac/include -I/opt/local/include/QtCrypto -I. -F/opt/local/libexec/qt4-mac/lib -o atest.o atest.cpp
/usr/bin/g++-4.2 -headerpad_max_install_names -o atest atest.o   -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib -L/opt/local/lib -lqca_debug -framework QtCore -L/opt/local/libexec/qt4-mac/lib 
 * returned: 512
 * [/opt/local/bin/gmake distclean]
rm -f atest.o
rm -f *~ core *.core
rm -f atest 
rm -f Makefile
 * returned: 0
 -> no

Error: need QCA >= 2.0!

comment:6 Changed 14 years ago by michaelld (Michael Dickens)

OK; we're making progress. What does "port installed qt4-mac" return?

comment:7 in reply to:  6 Changed 14 years ago by snowflake (Dave Evans)

Replying to michaelld@…:

OK; we're making progress. What does "port installed qt4-mac" return?

  qt4-mac @4.6.2_2
  qt4-mac @4.6.2_2+universal
  qt4-mac @4.6.3_1+universal
  qt4-mac @4.6.3_3+universal
  qt4-mac @4.6.3_4+universal (active)

comment:8 Changed 14 years ago by michaelld (Michael Dickens)

I've got enough info to fix the issue; it'll take me a couple days to do it. I'll post back when I've checked in the changes. Thank you for your assistance tracking down the issues!

comment:9 Changed 14 years ago by dsdale24@…

Cc: dsdale24@… added

Cc Me!

comment:10 in reply to:  8 Changed 14 years ago by macports@…

Replying to michaelld@…:

I've got enough info to fix the issue; it'll take me a couple days to do it. I'll post back when I've checked in the changes. Thank you for your assistance tracking down the issues!

It's been two weeks and and this should only take maybe 2 minutes... WTF

The error is here:

LINKAGE = -lqca
CONFIG(debug, debug|release) {
	windows:LINKAGE = -lqcad
	mac:LINKAGE = -lqca_debug
}
LIBS += $$LINKAGE
CONFIG += release

That CONFIG += release needs to go BEFORE the CONFIG() line, otherwise the LINKAGE is changed to -lqca_debug before the release version is specified. I changed this in the configure script and then re-ran the port install qca-ossl and it worked perfectly. Please patch the config and commit so others don't have to waste their time finding this solution.

comment:11 Changed 14 years ago by michaelld (Michael Dickens)

"WTF" is that I've been traveling in Central America for the last few weeks with sporadic and often limited internet & not able to work as much as I'd like; I got home less than 2 days ago, and am now playing catch-up with email, work, and all of my volunteer programming (e.g., MacPorts). The immediate problem can be fixed by your solution, but there's another issue with QCA that I need to take care of that impacts this ticket & needs to be done first. I appreciate your (and others') patience; I'll be getting there quickly now that I'm back in the States.

comment:12 Changed 14 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

I apologize for this taking so long; had a busy work-week catching up. I've just checked in fixes in r70437 that address this ticket. Please "sync", "clean", and then try installing again. I'm closing this ticket; please reopen if the original issue isn't addressed for you.

Note: See TracTickets for help on using tickets.