Solved Xorg dependency issues on ibook g4

This thread is a continuation of this one which was marked as closed. I have been having reoccurring issue with a dependency of a dependency for xorg on my ibook g4. I keep running into issues in compiling with this package. The previous issue was gcc could not find my libxml2 libraries. I finally got that working but now I have ran into another issue. Below is the error I am seeing. Has anyone ran into this issue or something similar before?

Thanks!

Code:
 $depbase.Tpo -c -o shrpx_accesslog.o shrpx_accesslog.cc && mv -f $depbase.Tpo $depbase.Po
depbase=`echo shrpx.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; g++48 -DHAVE_CONFIG_H -I. -I..  -Wall -I./../lib/includes -I./../lib/includes  -I -I/usr/local/include/libxml2 -I/usr/include -I/usr/local/include  -DHAVE_CONFIG_H  -O2 -pipe  -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing  -Wl,-rpath=/usr/local/lib/gcc48 -std=c++11 -MT shrpx.o -MD -MP -MF $depbase.Tpo -c -o shrpx.o shrpx.cc && mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool  --tag=CXX  --mode=link g++48  -O2 -pipe  -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing  -Wl,-rpath=/usr/local/lib/gcc48 -std=c++11 -L -lcrypto -lssl -L/usr/local/lib -lxml2 -lz -L/usr/lib -lm -levent_openssl -L/usr/local/lib -levent  -pthread -Wl,-rpath=/usr/local/lib/gcc48 -L/usr/local/lib/gcc48 -o spdycat util.o timegm.o  spdylay_ssl.o  spdycat.o  HtmlParser.o  http-parser/http_parser.o ../lib/libspdylay.la -L/usr/lib -lz
libtool: link: require no space between `-L' and `-lcrypto'
*** [spdycat] Error code 1

make[3]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2/src
1 error

make[3]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2/src
*** [all-recursive] Error code 1

make[2]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
1 error

make[2]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
*** [all] Error code 2

make[1]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
1 error

make[1]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/spdylay
 
I make grep for "-lcrypto" in the work/ directory.
The line
Code:
OPENSSL_LIBS = -L/usr/lib -lcrypto -lssl
appears in two files:
work/spdylay-1.3.2/lib/includes/Makefile and work/spdylay-1.3.2/Makefile.

I don't know what's the rigtht syntax. I hope someone can tell. If I know this it will no problem to change it in the port Makefile or write a patch for the other file.
(I am not sure, but I think it is time to consider a PR ?).

You can try replace the line
Code:
 OPENSSL_LIBS = -L/usr/lib -lcrypto -lssl
with two lines:
Code:
OPENSSL_LIBS = -L/usr/lib
OPENSSL_LIBS= -lcrypto -lssl
to avoid the space error.

But I am really not sure, if the second line will "overwrite" the first.
 
Or try simply to remove this:
Code:
-L${OPENSSLLIB}
from /usr/ports/www/spdylay/Makefile.

(I tried this, and it compiles without error-message, but I have no powerpc).
 
Or try simply to remove this:
Code:
-L${OPENSSLLIB}
from /usr/ports/www/spdylay/Makefile.

(I tried this, and it compiles without error-message, but I have no powerpc).
I do not have that line in my make file. This is what I have

Code:
OPENSSL_LIBS = -L -lcrypto -lssl

I am going to try to break them up as you suggested. I also tried adding /usr/lib in front of the -L but that did not work either.
 
So it looks in my Makefile:
Code:
CONFIGURE_ENV=  OPENSSL_CFLAGS="-I${OPENSSLINC}" \
  OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
  ZLIB_CFLAGS="-I${INCLUDEDIR}" \
  ZLIB_LIBS="-L${LIBDIR} -lz"
.

I would remove the "alone standing" -L.
 
I removed the -L and still the same

Code:
root@freebsd-ppc:/usr/ports/www/spdylay # make install clean
===>  Building for spdylay-1.3.2
/usr/bin/make  all-recursive
Making all in lib
Making all in includes
Making all in src
/bin/sh ../libtool  --tag=CXX  --mode=link g++48  -O2 -pipe  -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing  -Wl,-rpath=/usr/local/lib/gcc48 -std=c++11 -L -lcrypto -lssl -L/usr/local/lib -lxml2 -lz -L/usr/lib -lm -levent_openssl -L/usr/local/lib -levent  -pthread -Wl,-rpath=/usr/local/lib/gcc48 -L/usr/local/lib/gcc48 -o spdycat util.o timegm.o  spdylay_ssl.o  spdycat.o  HtmlParser.o  http-parser/http_parser.o ../lib/libspdylay.la -L/usr/lib -lz
libtool: link: require no space between `-L' and `-lcrypto'
*** [spdycat] Error code 1

make[3]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2/src
1 error

make[3]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2/src
*** [all-recursive] Error code 1

make[2]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
1 error

make[2]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
*** [all] Error code 2

make[1]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
1 error

make[1]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/spdylay
 
I did find the section you mentioned. I was looking at the wrong Makefile. So when I removed the part you said this what happened

Code:
root@freebsd-ppc:/usr/ports/www/spdylay # make install clean
===>  Building for spdylay-1.3.2
/usr/bin/make  all-recursive
Making all in lib
Making all in includes
Making all in src
/bin/sh ../libtool  --tag=CXX  --mode=link g++48  -O2 -pipe  -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing  -Wl,-rpath=/usr/local/lib/gcc48 -std=c++11 -lcrypto -lssl -L/usr/local/lib -lxml2 -lz -L/usr/lib -lm -levent_openssl -L/usr/local/lib -levent  -pthread -Wl,-rpath=/usr/local/lib/gcc48 -L/usr/local/lib/gcc48 -o spdycat util.o timegm.o  spdylay_ssl.o  spdycat.o  HtmlParser.o  http-parser/http_parser.o ../lib/libspdylay.la -L/usr/lib -lz
libtool: link: g++48 -O2 -pipe -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 -std=c++11 -pthread -Wl,-rpath=/usr/local/lib/gcc48 -o .libs/spdycat util.o timegm.o spdylay_ssl.o spdycat.o HtmlParser.o http-parser/http_parser.o  -lcrypto -lssl -L/usr/local/lib -lxml2 -L/usr/lib -lm -levent_openssl -levent -L/usr/local/lib/gcc48 ../lib/.libs/libspdylay.so -lz -pthread -Wl,-rpath -Wl,/usr/local/lib
spdylay_ssl.o: In function `spdylay::connect_to(std::string const&, unsigned short)':
spdylay_ssl.cc:(.text+0x45c): undefined reference to `std::ctype<char>::_M_widen_init() const'
spdylay_ssl.o: In function `spdylay::make_listen_socket(std::string const&, unsigned short, int)':
spdylay_ssl.cc:(.text+0x700): undefined reference to `std::ctype<char>::_M_widen_init() const'
spdylay_ssl.o: In function `spdylay::ssl_handshake(ssl_st*, int)':
spdylay_ssl.cc:(.text+0xef4): undefined reference to `std::ctype<char>::_M_widen_init() const'
spdylay_ssl.o: In function `spdylay::nonblock_connect_to(std::string const&, unsigned short, int)':
spdylay_ssl.cc:(.text+0x1660): undefined reference to `std::ctype<char>::_M_widen_init() const'
spdylay_ssl.o: In function `spdylay::ssl_nonblock_handshake(ssl_st*, int, int&)':
spdylay_ssl.cc:(.text+0x1894): undefined reference to `std::ctype<char>::_M_widen_init() const'
spdylay_ssl.o:spdylay_ssl.cc:(.text+0x2014): more undefined references to `std::ctype<char>::_M_widen_init() const' follow
collect2: error: ld returned 1 exit status
*** [spdycat] Error code 1

make[3]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2/src
1 error

make[3]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2/src
*** [all-recursive] Error code 1

make[2]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
1 error

make[2]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
*** [all] Error code 2

make[1]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
1 error

make[1]: stopped in /usr/ports/www/spdylay/work/spdylay-1.3.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
 
I went into ftp/curl and turned off http2 and now Xorg has been able move on in the installation! Hopefully it will be complete by the afternoon. If so then I will mark this thread as solved. Thanks again for the help!
 
Back
Top