BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
{bb} bbgen compile failure on Solaris 8.
- To: <bb@bb4.com>
- Subject: {bb} bbgen compile failure on Solaris 8.
- From: "Brookins, Neil \(YBUSA-KOP\)" <Neil.Brookins@Yellowbook.com>
- Date: Fri, 16 Sep 2005 13:05:33 -0400
- Content-class: urn:content-classes:message
- Content-transfer-encoding: 8bit
- Content-type: text/plain; charset="US-ASCII"
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
- Thread-index: AcW64Nl7eYIGEwkHRJ6k3DZwSnrUgQ==
- Thread-topic: bbgen compile failure on Solaris 8.
Issue: Installing bbgen-3.6 on Solaris 8 results in the linker
complaining about undefined symbols.
Impact: Installation of bbgen fails.
Cause: Solaris linker only makes one pass through static libraries and
only includes symbols needed to resolve previous references. The order
that the libraries are listed in the linker's command line must be such
that libraries which call functions in other libraries must be to the
left of (before) the libraries that contain those functions.
Solution:
In the file "bbgen-3.6/common/Makefile" I had to move the $(SSLLIBS) so
that it was after the libbbgen.a This is because libbbgen makes calls
to functions in the SSL library.
---------------------------------------------------------
bbdigest: $(DIGESTOBJS)
$(CC) $(CFLAGS) -o $@ $(DIGESTOBJS) ../lib/libbbgen.a $(SSLLIBS)
$(NETLIBS)
---------------------------------------------------------
Likewise in "bbgen-3.6/bbnet/Makefile" I moved $(SSLLIBS) so that it was
after the libbbgen.a
----------------------------------------------------------
bbtest-net: $(NETTESTOBJS)
$(CC) $(CFLAGS) -o $@ $(NETTESTOBJS) $(LDAPLIBS)
../lib/libbbgen.a $(SSLLIBS) libcares.a $(NETLIBS)
-----------------------------------------------------------
In the file "bbgen-3.6/Makefile" I had to move the "crypto" library
after the "ssl" library. This is because functions in libssl call
functions in libcrypto.
-----------------------------------------------------------
SSLLIBS = -L/usr/local/ssl/lib -lssl -lcrypto
-----------------------------------------------------------
Then, since the crypto library uses the dl library, I had to add that to
the end of the line:
-----------------------------------------------------------
SSLLIBS = -L/usr/local/ssl/lib -lssl -lcrypto -ldl
-----------------------------------------------------------
Result:
After making these changes, bbgen compiles successfully on Solaris 8.
Can these changes be rolled into the official distribution for other
people's use?
Neil G. Brookins
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index