BIND 9.11.6-P1 build fails on Solaris

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

BIND 9.11.6-P1 build fails on Solaris

greg.rabil

BIND 9.11.5-P4 built fine on this Solaris 10 environment with same configure settings:

 

--enable-ipv6 \

--enable-filter-aaaa \

--enable-largefile \

--enable-fixed-rrset \

--enable-threads \

--disable-shared \

--with-dlopen=no \

--with-openssl=/opt/bind911/openssl \

--with-geoip=/opt/bind911/geoip \

--without-gssapi --without-python \

--prefix=/opt/bind911

 

However, now the build fails for BIND 9.11.6-P1 with the following:

 

Undefined                      first referenced

symbol                            in file

isc_atomic_xadd                     client.o

ld: fatal: symbol referencing errors. No output written to namedtmp0

*** Error code 1

make: Fatal error: Command failed for target `named'

 

 

Thanks,

Greg


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Nick Edwards
lots of things failing in recent times, even with CentOS, mostly because of openssl min version changes, and most recently even latest releases wont build now because of a change in min python versions *sigh*, i'm just going to leave it as is, thats all we can do.


On Fri, Apr 26, 2019 at 5:05 AM <[hidden email]> wrote:

BIND 9.11.5-P4 built fine on this Solaris 10 environment with same configure settings:

 

--enable-ipv6 \

--enable-filter-aaaa \

--enable-largefile \

--enable-fixed-rrset \

--enable-threads \

--disable-shared \

--with-dlopen=no \

--with-openssl=/opt/bind911/openssl \

--with-geoip=/opt/bind911/geoip \

--without-gssapi --without-python \

--prefix=/opt/bind911

 

However, now the build fails for BIND 9.11.6-P1 with the following:

 

Undefined                      first referenced

symbol                            in file

isc_atomic_xadd                     client.o

ld: fatal: symbol referencing errors. No output written to namedtmp0

*** Error code 1

make: Fatal error: Command failed for target `named'

 

 

Thanks,

Greg

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Bind-Users forum mailing list
In reply to this post by greg.rabil
On 4/25/19 21:04, [hidden email] wrote:

BIND 9.11.5-P4 built fine on this Solaris 10 environment with same configure settings:

 

--enable-ipv6 \

--enable-filter-aaaa \

--enable-largefile \

--enable-fixed-rrset \

--enable-threads \

--disable-shared \

--with-dlopen=no \

--with-openssl=/opt/bind911/openssl \

--with-geoip=/opt/bind911/geoip \

--without-gssapi --without-python \

--prefix=/opt/bind911

 

However, now the build fails for BIND 9.11.6-P1 with the following:

 

Undefined                      first referenced

symbol                            in file

isc_atomic_xadd                     client.o

ld: fatal: symbol referencing errors. No output written to namedtmp0

*** Error code 1

make: Fatal error: Command failed for target `named'

 

 

Thanks,

Greg


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Experiencing a similar issue with BIND 9.11.6-P1 on Solaris 11.4, the build fails with the following:

Undefined                       first referenced
 symbol                             in file
isc_atomic_xadd                     .libs/client.o
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `named'
Current working directory /usr/local/src/bind-9.11.6-P1/bin/named
*** Error code 1
The following command caused the error:
for i in named rndc dig delv dnssec tools nsupdate check confgen  python  tests nulldir; do \
        if [ "$i" != "nulldir" -a -d $i ]; then \
                echo "making all in `pwd`/$i"; \
                (cd $i; make  DESTDIR="" all) || exit 1; \
        fi; \
done
make: Fatal error: Command failed for target `subdirs'
Current working directory /usr/local/src/bind-9.11.6-P1/bin
*** Error code 1
The following command caused the error:
for i in make lib bin doc nulldir; do \
        if [ "$i" != "nulldir" -a -d $i ]; then \
                echo "making all in `pwd`/$i"; \
                (cd $i; make  DESTDIR="" all) || exit 1; \
        fi; \
done
make: Fatal error: Command failed for target `subdirs'


Both BIND 9.11.5-P4 and 9.11.6 build fine with the following configure settings:
./configure --prefix=/opt/local --libdir=/opt/local/lib/dns/sparcv9 \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --with-randomdev=/dev/random \
        --with-tuning=large \
        --with-gssapi=krb5-config \
        --with-libtool \
        --with-openssl \
        --without-pkcs11 \
        --without-dlopen \
        --enable-full-report \
        --with-python=/usr/bin/python3.5 \
        --with-python-install-dir=/usr/lib/python3.5/vendor-packages \
        --enable-threads --enable-ipv6 --enable-devpoll

Compiled with both Studio 12.6 and GCC 7.3.0.

Thanks

-- 
---
Jaco Lesch
SAIX HLS
Email: [hidden email]


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Levin Stanislav
Please, take a look at
https://gitlab.isc.org/isc-projects/bind9/issues/999 and
https://gitlab.isc.org/isc-projects/bind9/merge_requests/1864

Thank you.


26.04.2019 11:01, Jaco Lesch via bind-users пишет:

> On 4/25/19 21:04, [hidden email] wrote:
>>
>> BIND 9.11.5-P4 built fine on this Solaris 10 environment with same
>> configure settings:
>>
>>  
>>
>> --enable-ipv6 \
>>
>> --enable-filter-aaaa \
>>
>> --enable-largefile \
>>
>> --enable-fixed-rrset \
>>
>> --enable-threads \
>>
>> --disable-shared \
>>
>> --with-dlopen=no \
>>
>> --with-openssl=/opt/bind911/openssl\
>>
>> --with-geoip=/opt/bind911/geoip \
>>
>> --without-gssapi --without-python \
>>
>> --prefix=/opt/bind911
>>
>>  
>>
>> However, now the build fails for BIND 9.11.6-P1 with the following:
>>
>>  
>>
>> Undefined                      first referenced
>>
>> symbol                            in file
>>
>> isc_atomic_xadd                     client.o
>>
>> ld: fatal: symbol referencing errors. No output written to namedtmp0
>>
>> *** Error code 1
>>
>> make: Fatal error: Command failed for target `named'
>>
>>  
>>
>>  
>>
>> Thanks,
>>
>> Greg
>>
>>
>> _______________________________________________
>> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>>
>> bind-users mailing list
>> [hidden email]
>> https://lists.isc.org/mailman/listinfo/bind-users
> Experiencing a similar issue with BIND 9.11.6-P1 on Solaris 11.4, the
> build fails with the following:
>
> Undefined                       first referenced
>  symbol                             in file
> isc_atomic_xadd                     .libs/client.o
> ld: fatal: symbol referencing errors
> collect2: error: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `named'
> Current working directory /usr/local/src/bind-9.11.6-P1/bin/named
> *** Error code 1
> The following command caused the error:
> for i in named rndc dig delv dnssec tools nsupdate check confgen 
> python  tests nulldir; do \
>         if [ "$i" != "nulldir" -a -d $i ]; then \
>                 echo "making all in `pwd`/$i"; \
>                 (cd $i; make  DESTDIR="" all) || exit 1; \
>         fi; \
> done
> make: Fatal error: Command failed for target `subdirs'
> Current working directory /usr/local/src/bind-9.11.6-P1/bin
> *** Error code 1
> The following command caused the error:
> for i in make lib bin doc nulldir; do \
>         if [ "$i" != "nulldir" -a -d $i ]; then \
>                 echo "making all in `pwd`/$i"; \
>                 (cd $i; make  DESTDIR="" all) || exit 1; \
>         fi; \
> done
> make: Fatal error: Command failed for target `subdirs'
>
>
> Both BIND 9.11.5-P4 and 9.11.6 build fine with the following configure
> settings:
> ./configure --prefix=/opt/local --libdir=/opt/local/lib/dns/sparcv9 \
>         --sysconfdir=/etc \
>         --localstatedir=/var \
>         --with-randomdev=/dev/random \
>         --with-tuning=large \
>         --with-gssapi=krb5-config \
>         --with-libtool \
>         --with-openssl \
>         --without-pkcs11 \
>         --without-dlopen \
>         --enable-full-report \
>         --with-python=/usr/bin/python3.5 \
>         --with-python-install-dir=/usr/lib/python3.5/vendor-packages \
>         --enable-threads --enable-ipv6 --enable-devpoll
>
> Compiled with both Studio 12.6 and GCC 7.3.0.
>
> Thanks
>
> --
> ---
> Jaco Lesch
> SAIX HLS
> Email: [hidden email]
>
>
>
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
> bind-users mailing list
> [hidden email]
> https://lists.isc.org/mailman/listinfo/bind-users

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Jeff Wieland
In reply to this post by greg.rabil
Jaco Lesch via bind-users wrote:

>
>
> Both BIND 9.11.5-P4 and 9.11.6 build fine with the following configure
> settings:
> ./configure --prefix=/opt/local --libdir=/opt/local/lib/dns/sparcv9 \
>         --sysconfdir=/etc \
>         --localstatedir=/var \
>         --with-randomdev=/dev/random \
>         --with-tuning=large \
>         --with-gssapi=krb5-config \
>         --with-libtool \
>         --with-openssl \
>         --without-pkcs11 \
>         --without-dlopen \
>         --enable-full-report \
>         --with-python=/usr/bin/python3.5 \
> --with-python-install-dir=/usr/lib/python3.5/vendor-packages \
>         --enable-threads --enable-ipv6 --enable-devpoll
>
> Compiled with both Studio 12.6 and GCC 7.3.0.
>
> Thanks
>
> --
> ---
> Jaco Lesch
> SAIX HLS
> Email:[hidden email]
>

Jaco, what version of Solaris did you build this on?

--
Jeff Wieland, UNIX/Network Systems Administrator
Purdue University IT Infrastructure Services UNIX Platforms

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Stacey Marshall

I'm struggling with this on Solaris 10 with Solaris Studio compiler.
Seems to be a couple of issues, I'm still working through...

For example configure is using -pthread option when testing OpenSSL which is not appropriate for Studio:

configure:17237: checking for OpenSSL AES support
configure:17261: /ws/on10-patch-tools/SUNWspro/SS12/bin/cc -D_STDC_C99= -mt -pthread -o conftest  -g  -D_XPG4_2 -D__EXTENSIONS__ -L/builds2/smarshal/sfw10-patch/proto/root_sparc/usr/lib -L/builds2/smarshal/sfw10-patch/proto/root_sparc/usr/lib/dns conftest.c -lcrypto -lpthread  >&5
ld: fatal: option -h and building a dynamic executable are incompatible
ld: fatal: Flags processing errors
configure:17261: $? = 1
configure: program exited with status 1
configure: failed program was:

'pthread' option also needs patching out of ltmain.sh, I have raised that as an issue with libtool.

libtool should not pass option '-pthread' to Solaris link-editor.
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
index 0f0a2da3f9..7c8bcfd9d2 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -7070,7 +7070,21 @@ func_mode_link ()
     continue
     ;;

-      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
+      # Solaris ld rejects as of 11.4.  Refer to Oracle bug 22985199.
+      -pthread)
+      case $host in
+              *solaris2*) ;;
+              *)
+          case "$new_inherited_linker_flags " in
+                      *" $arg "*) ;;
+                      * ) func_append new_inherited_linker_flags " $arg" ;;
+          esac
+           ;;
+      esac
+       continue
+      ;;
+
+      -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
       |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
     func_append compiler_flags " $arg"
     func_append compile_command " $arg"

I'm running a GCC build now, with gcc from /usr/sfw/bin. I needed to tell gcc to not use /usr/sfw/include, where it was finding an older OpenSSL include file:

CC =        /usr/sfw/bin/gcc
CFLAGS =     -g -Os -Wall,packed,padded,sign-compare,pointer-arith
# override default gcc include search order (shown by 'gcc -v file.c')
# as need openssl headers to come from /usr/include and not
# /usr/sfw/include.  Note, do not seem to need gcc include dir; commented out.
#
CFLAGS +=    -nostdinc
# CFLAGS +=    -isystem /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/include
CFLAGS +=    -isystem /usr/include/libxml2
CFLAGS +=    -isystem /usr/include
CFLAGS +=    -isystem /usr/sfw/include

Also, needed patch that I posted to https://gitlab.isc.org/isc-projects/bind9/issues/935

--
Stacey


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Bind-Users forum mailing list
In reply to this post by Jeff Wieland
On 4/26/19 18:13, Wieland, Jeffrey J. wrote:

> Jaco Lesch via bind-users wrote:
>>
>> Both BIND 9.11.5-P4 and 9.11.6 build fine with the following configure
>> settings:
>> ./configure --prefix=/opt/local --libdir=/opt/local/lib/dns/sparcv9 \
>>          --sysconfdir=/etc \
>>          --localstatedir=/var \
>>          --with-randomdev=/dev/random \
>>          --with-tuning=large \
>>          --with-gssapi=krb5-config \
>>          --with-libtool \
>>          --with-openssl \
>>          --without-pkcs11 \
>>          --without-dlopen \
>>          --enable-full-report \
>>          --with-python=/usr/bin/python3.5 \
>> --with-python-install-dir=/usr/lib/python3.5/vendor-packages \
>>          --enable-threads --enable-ipv6 --enable-devpoll
>>
>> Compiled with both Studio 12.6 and GCC 7.3.0.
>>
>> Thanks
>>
>> --
>> ---
>> Jaco Lesch
>> SAIX HLS
>> Email:[hidden email]
>>
> Jaco, what version of Solaris did you build this on?
>
Jeffrey

The compile is on Solaris 11.4 Sparc, sorry for that slip of the
fingers. Will have a look and see what X86-64 version of Solaris 11.4
does next week also.

Regards

--
---
Jaco Lesch
SAIX HLS
Email: [hidden email]

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Jeff Wieland
In reply to this post by Jeff Wieland

--
Jeff Wieland, UNIX/Network Systems Administrator
Purdue University IT Infrastructure Services UNIX Platforms

Jaco Lesch via bind-users wrote:

> On 4/26/19 18:13, Wieland, Jeffrey J. wrote:
>> Jaco Lesch via bind-users wrote:
>>> Both BIND 9.11.5-P4 and 9.11.6 build fine with the following configure
>>> settings:
>>> ./configure --prefix=/opt/local --libdir=/opt/local/lib/dns/sparcv9 \
>>>           --sysconfdir=/etc \
>>>           --localstatedir=/var \
>>>           --with-randomdev=/dev/random \
>>>           --with-tuning=large \
>>>           --with-gssapi=krb5-config \
>>>           --with-libtool \
>>>           --with-openssl \
>>>           --without-pkcs11 \
>>>           --without-dlopen \
>>>           --enable-full-report \
>>>           --with-python=/usr/bin/python3.5 \
>>> --with-python-install-dir=/usr/lib/python3.5/vendor-packages \
>>>           --enable-threads --enable-ipv6 --enable-devpoll
>>>
>>> Compiled with both Studio 12.6 and GCC 7.3.0.
>>>
>>> Thanks
>>>
>>> --
>>> ---
>>> Jaco Lesch
>>> SAIX HLS
>>> Email:[hidden email]
>>>
>> Jaco, what version of Solaris did you build this on?
>>
> Jeffrey
>
> The compile is on Solaris 11.4 Sparc, sorry for that slip of the
> fingers. Will have a look and see what X86-64 version of Solaris 11.4
> does next week also.
>
> Regards
>
> --
> ---
> Jaco Lesch
> SAIX HLS
> Email: [hidden email]

I've got UltraSPARC II's to support, so Studio 12.4 is as new as I can go. 
Although I'm
wondering if you can compile for UltraSPARC II's with Studio 12.5 on an
UltraSPARC 3?
I might have to try it.

--
Jeff Wieland, UNIX/Network Systems Administrator
Purdue University IT Infrastructure Services UNIX Platforms

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Bind-Users forum mailing list
In reply to this post by Nick Edwards
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Fri, 2019-04-26 at 10:41 +1000, Nick Edwards wrote:
> lots of things failing in recent times, even with CentOS, mostly
> because of openssl min version changes, and most recently even latest
> releases wont build now because of a change in min python versions
> *sigh*, i'm just going to leave it as is, thats all we can do.

On centos, you might try

https://www.five-ten-sg.com/mapper/bind


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEAREKAAYFAlzJ9CoACgkQL6j7milTFsE83gCff5EeY09QUCkVYhODAvMRtY8g
R0AAoIlzg8ejExYucdtPZoUcuMJUrGJR
=pjpX
-----END PGP SIGNATURE-----



_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: BIND 9.11.6-P1 build fails on Solaris

Dennis Clarke
On 5/3/19 1:52 AM, Carl Byington via bind-users wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On Fri, 2019-04-26 at 10:41 +1000, Nick Edwards wrote:
>> lots of things failing in recent times, even with CentOS, mostly
>> because of openssl min version changes, and most recently even latest
>> releases wont build now because of a change in min python versions
>> *sigh*, i'm just going to leave it as is, thats all we can do.
>
> On centos, you might try
>
> https://www.five-ten-sg.com/mapper/bind
>

I have had no problems building solid ISC bind named services on Solaris
10 ( and earlier ) for a very long long time now. If there are problems
they are most likely your build environment and nothing to do with the
ISC release code.

Having said that I still have production and up to date iscbind under
smf running fine and I have no love for Solaris anymore.  It runs fine
but is very crusty and has no future really.


--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users