id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,port
28592,"qjackctl relies on qt4-x11, which doesn't build",frases@…,macports-tickets@lists.macosforge.org,"Guys, 
I am experiencing a problem installing qt4-x11 with the most recent version of MacPorts:
{{{
bash-3.2$ sudo port version
Version: 1.9.2
}}}
on MacOSX 10.5.8 running XCode 3.1.2.

I had performed a recent reinstall of MacPorts using these instructions:  [http://guide.macports.org/#installing.macports.uninstalling]

And then built from the binary .dmg:  [http://guide.macports.org/#installing.macports.binary]

After I did the reinstall, I installed my preferred set of packages. I wanted to install qjackctl, which depended on qt gui toolkit.  The install bombs on the build of qt4-x11. So I focused my attention on that package.  Procedurally, I first performed a plain old, install:
{{{
bash-3.2$ sudo port install qt4-x11
}}}
Based on some other posts of similar issues, I tried this:
{{{
bash-3.2$ sudo port clean qt4-x11
--->  Cleaning qt4-x11
bash-3.2$ sudo port uninstall qt4-x11
bash-3.2$ sudo port -fR upgrade openssl
bash-3.2$ sudo port install qt4-x11
}}}
Both ended up the same way:
{{{
:info:build /usr/bin/g++-4.0 -c -pipe -O2 -arch i386 -isystem/opt/local/include -I/opt/local/include/mysql5/mysql -I/opt/local/include/postgresql83 -I/opt/local/include/gstreamer-0.10 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/libxml2 -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQT_SHARED -D__USE_WS_X11__ -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/darwin-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I/usr/include -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qsslconfiguration.o ssl/qsslconfiguration.cpp
:info:build ssl/qsslsocket_openssl_symbols_p.h:264: error: variable or field 'q_sk_free' declared void
:info:build ssl/qsslsocket_openssl_symbols_p.h:264: error: 'STACK' was not declared in this scope
:info:build ssl/qsslsocket_openssl_symbols_p.h:264: error: 'a' was not declared in this scope
:info:build ssl/qsslsocket_openssl_symbols_p.h:265: error: 'STACK' was not declared in this scope
:info:build ssl/qsslsocket_openssl_symbols_p.h:265: error: 'a' was not declared in this scope
:info:build ssl/qsslsocket_openssl_symbols_p.h:266: error: 'STACK' was not declared in this scope
:info:build ssl/qsslsocket_openssl_symbols_p.h:266: error: 'a' was not declared in this scope
:info:build ssl/qsslsocket_openssl_symbols_p.h:266: error: expected primary-expression before 'int'
:info:build ssl/qsslsocket_openssl_symbols_p.h:266: error: initializer expression list treated as compound expression
:info:build ssl/qsslcertificate.cpp: In member function 'QMultiMap<QSsl::AlternateNameEntryType, QString> QSslCertificate::alternateSubjectNames() const':
:info:build ssl/qsslcertificate.cpp:372: error: 'STACK' was not declared in this scope
:info:build ssl/qsslcertificate.cpp:372: error: 'altNames' was not declared in this scope
:info:build ssl/qsslcertificate.cpp:372: error: expected primary-expression before ')' token
:info:build ssl/qsslcertificate.cpp:372: error: expected `;' before 'q_X509_get_ext_d2i'
:info:build ssl/qsslcertificate.cpp:393: error: 'q_sk_free' cannot be used as a function
:info:build make[1]: *** [.obj/release-shared/qsslcertificate.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make: *** [sub-network-make_default-ordered] Error 2
:info:build shell command "" cd ""/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_qt4-x11/work/qt-x11-opensource-src-4.4.3"" && /usr/bin/make -j2 first "" returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
""command_exec build""
    (procedure ""portbuild::build_main"" line 8)
    invoked from within
""$procedure $targetname""
:info:build Warning: the following items did not execute (for qt4-x11): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for qt4-x11 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_qt4-x11/main.log
}}}
I'm using the most recent version of openssl:
{{{
mac:~ newuser$ sudo port installed | grep openssl
Password:
  openssl @0.9.8k_0
  openssl @1.0.0a_0
  openssl @1.0.0d_0 (active)
}}}
The other versions of openssl are in the list because I tried various combinations of older versions of qt4-x11 and openssl. To no avail, of course.

Does anyone have any ideas? 
Is it necessary that openssl be used for qt4-x11? 
Can I just disable it from the configure process of qt4-x11?

thanks,
scott",defect,closed,Normal,,ports,1.9.2,fixed,,michaelld@… devans@… ryandesign@…,"qt4-x11, qt4-mac, qjackctl"
