Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solaris 10 socket library build problem #22

Closed
mcarpenter opened this issue Jun 20, 2013 · 3 comments
Closed

Solaris 10 socket library build problem #22

mcarpenter opened this issue Jun 20, 2013 · 3 comments

Comments

@mcarpenter
Copy link

Compiling current head of polarssl-1.2 on Solaris 10 appears to be missing linker flags (-lsocket, -lnsl)? Compilation fails.

$ make
...
  CC    pkey/dh_client.c
Undefined                       first referenced
 symbol                             in file
bind                                ../library/libpolarssl.a(net.o)
accept                              ../library/libpolarssl.a(net.o)
listen                              ../library/libpolarssl.a(net.o)
gethostbyname                       ../library/libpolarssl.a(net.o)
socket                              ../library/libpolarssl.a(net.o)
setsockopt                          ../library/libpolarssl.a(net.o)
connect                             ../library/libpolarssl.a(net.o)
shutdown                            ../library/libpolarssl.a(net.o)
ld: fatal: symbol referencing errors. No output written to pkey/dh_client
collect2: ld returned 1 exit status
make[1]: *** [pkey/dh_client] Error 1
make: *** [all] Error 2
@pjbakker
Copy link
Contributor

Check programs/Makefile:

# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS

In order to let Makefile be as make-independent as possible, no 'difficult' macros are used that might not be supported by all instantiations of make..

So, if you use Makefile you'll have to do this by hand at this point, until we find a nice way to do it make-independent.

@pjbakker
Copy link
Contributor

We explicitly include this into a Solaris Knowledge Base article

@pjbakker
Copy link
Contributor

This has been integrated in the Knowledge base article for compiling PolarSSL on Solaris

hanno-becker pushed a commit to hanno-becker/mbedtls that referenced this issue Jan 25, 2019
…ation-crypto

Adapting to the new PSA key slot allocation mechanism
iameli pushed a commit to livepeer/mbedtls that referenced this issue Dec 5, 2023
Security fix to not ignore RTCP encryption, if required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants