undefined symbol fabs in file test/ct_test.o in openssl 1.1.0e on solaris

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I pulled down 1.1.0e and tried to build it on Solaris 64.  I ran into the following error:


/tools/solaris/SunStudio12.2/bin/cc -xarch=v9 -mt -o test/ct_test test/ct_test.o test/testutil.o -L. -lcrypto -lresolv -lsocket -lnsl -ldl -lpthread
cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
Undefined                 first referenced
 symbol                             in file
fabs                                test/ct_test.o
ld: fatal: Symbol referencing errors. No output written to test/ct_test

These diffs appear to fix the issue.  Added -lm to ex_libs for Solaris.

solaris64:117$ diff -c /scratch/bsmith/openssl/openssl-1.1.0e/Configurations/10-main.conf Configurations/10-main.conf
*** /scratch/bsmith/openssl/openssl-1.1.0e/Configurations/10-main.conf    Thu Feb 16 06:58:20 2017
--- Configurations/10-main.conf Fri Feb 17 11:06:45 2017
***************
*** 179,185 ****
          inherit_from     => [ "BASE_unix" ],
          template         => 1,
          cflags           => "-DFILIO_H",
!         ex_libs          => add("-lresolv -lsocket -lnsl -ldl"),
          dso_scheme       => "dlfcn",
          thread_scheme    => "pthreads",
          shared_target    => "solaris-shared",
--- 179,185 ----
          inherit_from     => [ "BASE_unix" ],
          template         => 1,
          cflags           => "-DFILIO_H",
!         ex_libs          => add("-lresolv -lsocket -lnsl -ldl -lm"),
          dso_scheme       => "dlfcn",
          thread_scheme    => "pthreads",
          shared_target    => "solaris-shared",
solaris64:117$


-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux