Transmission 2.22 build fails on Solaris 11 Express

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
oh_noes
Posts: 15
Joined: Wed Dec 08, 2010 9:02 am

Transmission 2.22 build fails on Solaris 11 Express

Post by oh_noes »

Clean Solaris 11 install.

Code: Select all

$ wget curl-7.21.6.tar.gz
$ ./configure --prefix=/usr/local/curl
$ make
$ sudo make install
$ wget libevent-2.0.11-stable.tar.gz
$ ./configure --prefix=/usr/local/libevent
$ make
$ sudo make install
$ wget transmission-2.22.tar
$  CFLAGS="-L/usr/local/libevent/lib -R/usr/local/libevent/lib" \
CPPFLAGS="-I/usr/local/libevent/include -I/usr/local/curl/include" \
LIBEVENT_LIBS="-L/usr/local/libevent/lib -R/usr/local/libevent/lib -levent -lrt" \
LIBEVENT_CFLAGS="-I/usr/local/libevent/include" \
LIBCURL_CFLAGS="-I/usr/local/curl/include" \
LIBCURL_LIBS="-L/usr/local/curl/lib -lcurl -lidn -lssl -lcrypto -lldap -lsocket -lnsl -lz" \
./configure --prefix=/usr/local/transmission --enable-daemon --enable-cli --disable-nls --disable-mac --disable-gtk 
But this fails with:

Code: Select all

$ ./configure -q
configure: error: in `/home/username/transmission-2.22':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBCURL_CFLAGS
and LIBCURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See `config.log' for more details

Am I doing something wrong?

I'm expecting pkg-config to fail (Solaris 11 doesnt have it). I shouldn't need (or want) to install it. How come, even though I'm declaring the required environment variables it's still trying to check it?

This used to work in Solaris 10. Not working in Solaris 11. Is it doing something to incorrectly detect the environment variable declaration?

Libraries below;

Code: Select all

$ find /usr/local/curl | grep -v man
/usr/local/curl
/usr/local/curl/share
/usr/local/curl/lib
/usr/local/curl/lib/libcurl.so.4
/usr/local/curl/lib/libcurl.a
/usr/local/curl/lib/pkgconfig
/usr/local/curl/lib/pkgconfig/libcurl.pc
/usr/local/curl/lib/libcurl.so.4.2.0
/usr/local/curl/lib/libcurl.so
/usr/local/curl/lib/libcurl.la
/usr/local/curl/include
/usr/local/curl/include/curl
/usr/local/curl/include/curl/curl.h
/usr/local/curl/include/curl/mprintf.h
/usr/local/curl/include/curl/curlrules.h
/usr/local/curl/include/curl/types.h
/usr/local/curl/include/curl/curlver.h
/usr/local/curl/include/curl/easy.h
/usr/local/curl/include/curl/stdcheaders.h
/usr/local/curl/include/curl/multi.h
/usr/local/curl/include/curl/typecheck-gcc.h
/usr/local/curl/include/curl/curlbuild.h
/usr/local/curl/bin
/usr/local/curl/bin/curl
/usr/local/curl/bin/curl-config
$ find /usr/local/libevent | grep -v man
/usr/local/libevent
/usr/local/libevent/include
/usr/local/libevent/include/event.h
/usr/local/libevent/include/evrpc.h
/usr/local/libevent/include/event2
/usr/local/libevent/include/event2/event.h
/usr/local/libevent/include/event2/http_compat.h
/usr/local/libevent/include/event2/bufferevent_struct.h
/usr/local/libevent/include/event2/event-config.h
/usr/local/libevent/include/event2/thread.h
/usr/local/libevent/include/event2/dns_struct.h
/usr/local/libevent/include/event2/tag.h
/usr/local/libevent/include/event2/rpc_compat.h
/usr/local/libevent/include/event2/util.h
/usr/local/libevent/include/event2/dns.h
/usr/local/libevent/include/event2/event_struct.h
/usr/local/libevent/include/event2/http_struct.h
/usr/local/libevent/include/event2/bufferevent_ssl.h
/usr/local/libevent/include/event2/rpc.h
/usr/local/libevent/include/event2/listener.h
/usr/local/libevent/include/event2/buffer.h
/usr/local/libevent/include/event2/bufferevent_compat.h
/usr/local/libevent/include/event2/keyvalq_struct.h
/usr/local/libevent/include/event2/bufferevent.h
/usr/local/libevent/include/event2/tag_compat.h
/usr/local/libevent/include/event2/rpc_struct.h
/usr/local/libevent/include/event2/dns_compat.h
/usr/local/libevent/include/event2/http.h
/usr/local/libevent/include/event2/event_compat.h
/usr/local/libevent/include/event2/buffer_compat.h
/usr/local/libevent/include/evutil.h
/usr/local/libevent/include/evhttp.h
/usr/local/libevent/include/evdns.h
/usr/local/libevent/lib
/usr/local/libevent/lib/libevent.la
/usr/local/libevent/lib/libevent_pthreads.a
/usr/local/libevent/lib/libevent_core.a
/usr/local/libevent/lib/libevent_extra.la
/usr/local/libevent/lib/libevent_core-2.0.so.5.1.0
/usr/local/libevent/lib/libevent_core.so
/usr/local/libevent/lib/libevent_openssl-2.0.so.5
/usr/local/libevent/lib/libevent_pthreads-2.0.so.5
/usr/local/libevent/lib/libevent_core.la
/usr/local/libevent/lib/libevent_extra.so
/usr/local/libevent/lib/libevent_core-2.0.so.5
/usr/local/libevent/lib/libevent.so
/usr/local/libevent/lib/libevent_openssl.la
/usr/local/libevent/lib/libevent_pthreads.so
/usr/local/libevent/lib/libevent_pthreads-2.0.so.5.1.0
/usr/local/libevent/lib/libevent-2.0.so.5.1.0
/usr/local/libevent/lib/libevent_extra-2.0.so.5
/usr/local/libevent/lib/libevent.a
/usr/local/libevent/lib/libevent_openssl.a
/usr/local/libevent/lib/libevent_extra-2.0.so.5.1.0
/usr/local/libevent/lib/libevent_extra.a
/usr/local/libevent/lib/pkgconfig
/usr/local/libevent/lib/pkgconfig/libevent_pthreads.pc
/usr/local/libevent/lib/pkgconfig/libevent.pc
/usr/local/libevent/lib/pkgconfig/libevent_openssl.pc
/usr/local/libevent/lib/libevent-2.0.so.5
/usr/local/libevent/lib/libevent_openssl-2.0.so.5.1.0
/usr/local/libevent/lib/libevent_openssl.so
/usr/local/libevent/lib/libevent_pthreads.la
/usr/local/libevent/bin
/usr/local/libevent/bin/event_rpcgen.py

oh_noes
Posts: 15
Joined: Wed Dec 08, 2010 9:02 am

Re: Transmission 2.22 build fails on Solaris 11 Express

Post by oh_noes »

Found the fixed.

Even though I was declaring the environment vars, it still wanted pkg-config.

Code: Select all

ln -s /bin/true /usr/bin/pkg-config
And it passes the 'check' and uses the env vars as expected.
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Transmission 2.22 build fails on Solaris 11 Express

Post by Jordan »

That error message is coming from inside one of the pkg-config macros that gets compiled into the configure script... you might want to report this upstream to the pkg-config maintainers. Transmission's use of it for libcurl is pretty straightforward:

Code: Select all

PKG_CHECK_MODULES(LIBCURL, [libcurl >= $CURL_MINIMUM])
oh_noes
Posts: 15
Joined: Wed Dec 08, 2010 9:02 am

Re: Transmission 2.22 build fails on Solaris 11 Express

Post by oh_noes »

Hrmm, how can I report it to the pkg-config maintainers? No pkg-config binaries exists on the system at all. From a user point of view, having that variable declared (LIBCURL_CFLAGS
and LIBCURL_LIBS) should bypass any call to pkg-config?
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Transmission 2.22 build fails on Solaris 11 Express

Post by Jordan »

right. And the m4 code that does that is handled by the pkg-config macros that were on my machine when I built the tarball, and which I got from installing pkg-config on my system.
Post Reply