Loading ...
Sorry, an error occurred while loading the content.

Re: [solarisx86] Building squid 3.1.19 on S11

Expand Messages
  • Ian Collins
    ... Have you tried adding -lldap to LDFLAGS and -DLDAP_DEPRECATED to CFLAGS? -- Ian.
    Message 1 of 16 , May 7, 2012
    View Source
    • 0 Attachment
      On 05/ 8/12 04:00 PM, hal_hl wrote:
      > Trying to build Squid 3.1.19 on S11. Someone here mentioned they were able to build it?
      >
      > I'm running into this:
      > Undefined first referenced
      > symbol in file
      > ldap_start_tls_s squid_ldap_auth.o
      > ldap_initialize squid_ldap_auth.o
      >
      >
      > I'm perfectly happy with the Oracle supplied package, except someone forgot the --with-ipf-transparent flag :( I swore it was there with Solaris 11, but it's gone with SRU6.6...Or at least not there :)
      >
      > I've goggled, and see others have the same issue, but no solutions posted, other than it's due to a missing liblber.a. I don't have a liblber.a, but a liblber.so....

      Have you tried adding -lldap to LDFLAGS and -DLDAP_DEPRECATED to CFLAGS?

      --
      Ian.
    • hal_hl
      ... Just did, same linker error. libtool: link: /usr/sfw/bin/gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments
      Message 2 of 16 , May 8, 2012
      View Source
      • 0 Attachment
        --- In solarisx86@yahoogroups.com, Ian Collins <ian@...> wrote:

        > Have you tried adding -lldap to LDFLAGS and -DLDAP_DEPRECATED to CFLAGS?
        >

        Just did, same linker error.

        libtool: link: /usr/sfw/bin/gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -pthreads -Usparc -Uunix -Ui386 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -m32 -I/usr/include/kerberosv5 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -o squid_ldap_auth squid_ldap_auth.o -L/usr/lib ../../../compat/.libs/libcompat.a -L/export/home1/src/www/squid-3.1.19/lib -lmiscutil -lldap -llber -lm -lmalloc -lsocket -lresolv -lnsl -pthreads -R/usr/lib
      • John D Groenveld
        Try 64-bit: $ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin::/usr/sfw/bin CC=gcc CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=/opt/squid
        Message 3 of 16 , May 8, 2012
        View Source
        • 0 Attachment
          Try 64-bit:
          $ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin::/usr/sfw/bin CC=gcc \
          CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=/opt/squid \
          --with-ipf-transparent --enable-arp-acl \
          --enable-auth=basic,digest,negotiate,ntlm \
          --enable-basic-auth-helpers=DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL \
          --enable-cache-digests --enable-carp --enable-coss-aio-ops \
          --enable-delay-pools --enable-digest-auth-helpers=password \
          --enable-external-acl-helpers=ip_user,unix_group,wbinfo_group \
          --enable-follow-x-forwarded-for --enable-forward-log --enable-forw-via-db \
          --enable-htcp --enable-icmp --enable-large-cache-files \
          --enable-multicast-miss --enable-negotiate-auth-helpers=squid_kerb_auth \
          --enable-ntlm-auth-helpers=smb_lm,fakeauth,no_check \
          --enable-ntlm-fail-open --enable-referer-log \
          --enable-removal-policies=heap,lru --enable-snmp --enable-ssl \
          --enable-storeio=aufs,diskd,ufs --enable-useragent-log \
          --enable-x-accelerator-vary --with-aio --with-aufs-threads=8 \
          --enable-ltdl-convenience --enable-ipfw-transparent --enable-shared

          John
          groenveld@...
        • hal_hl
          ... Same failure. Also tried the nightly build in case it was a known issue, same failure as well.
          Message 4 of 16 , May 8, 2012
          View Source
          • 0 Attachment
            --- In solarisx86@yahoogroups.com, John D Groenveld <jdg117@...> wrote:
            >
            > Try 64-bit:

            Same failure. Also tried the nightly build in case it was a known issue, same failure as well.
          • Ian Collins
            ... I just tried the rune John posted and the squid executable builds OK: ldd ./src/squid librt.so.1 = /lib/64/librt.so.1 libpthread.so.1 =
            Message 5 of 16 , May 8, 2012
            View Source
            • 0 Attachment
              On 05/ 9/12 06:56 AM, hal_hl wrote:
              >
              > --- In solarisx86@yahoogroups.com, John D Groenveld<jdg117@...> wrote:
              >> Try 64-bit:
              > Same failure. Also tried the nightly build in case it was a known issue, same failure as well.

              I just tried the rune John posted and the squid executable builds OK:

              ldd ./src/squid
              librt.so.1 => /lib/64/librt.so.1
              libpthread.so.1 => /lib/64/libpthread.so.1
              libcrypt.so.1 => /usr/lib/64/libcrypt.so.1
              libmd5.so.1 => /lib/64/libmd5.so.1
              libstdc++.so.6 => /usr/gcc/4.5/lib/amd64/libstdc++.so.6
              libssl.so.1.0.0 => /lib/64/libssl.so.1.0.0
              libcrypto.so.1.0.0 => /lib/64/libcrypto.so.1.0.0
              libmalloc.so.1 => /usr/lib/64/libmalloc.so.1
              libsocket.so.1 => /lib/64/libsocket.so.1
              libresolv.so.2 => /lib/64/libresolv.so.2
              libnsl.so.1 => /lib/64/libnsl.so.1
              libm.so.2 => /lib/64/libm.so.2
              libgcc_s.so.1 => /usr/gcc/4.5/lib/amd64/libgcc_s.so.1
              libc.so.1 => /lib/64/libc.so.1
              libmd.so.1 => /lib/64/libmd.so.1
              libmp.so.2 => /lib/64/libmp.so.2

              Notice no libldap.

              The build still fails due to no "pod2man" being present, but that's
              another problem.

              --
              Ian.
            • hal_hl
              ... So....What s going on here then I wonder? According to google, others are having the same issue. Are you using make or gmake? (I ve tried both...) Are
              Message 6 of 16 , May 8, 2012
              View Source
              • 0 Attachment
                --- In solarisx86@yahoogroups.com, Ian Collins <ian@...> wrote:
                >

                So....What's going on here then I wonder? According to google, others are having the same issue. Are you using make or gmake? (I've tried both...)

                Are you on S10 or S11?
              • John D Groenveld
                ... $ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin gmake ... $ pkg info entire| grep Ver Version: 0.5.11 (Oracle Solaris 11 SRU 6.6) John
                Message 7 of 16 , May 8, 2012
                View Source
                • 0 Attachment
                  In message <joc2g6+utrc@...>, "hal_hl" writes:
                  >So....What's going on here then I wonder? According to google, others are hav
                  >ing the same issue. Are you using make or gmake? (I've tried both...)

                  $ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/sfw/bin gmake

                  >Are you on S10 or S11?

                  $ pkg info entire| grep Ver
                  Version: 0.5.11 (Oracle Solaris 11 SRU 6.6)

                  John
                  groenveld@...
                • Ian Collins
                  ... I don t know, you didn t say which target failed to build, which was it? ... make and gmake. ... 11 SR3 and 6 (two systems). -- Ian.
                  Message 8 of 16 , May 8, 2012
                  View Source
                  • 0 Attachment
                    On 05/ 9/12 09:16 AM, hal_hl wrote:
                    >
                    > --- In solarisx86@yahoogroups.com, Ian Collins<ian@...> wrote:
                    > So....What's going on here then I wonder? According to google, others are having the same issue.

                    I don't know, you didn't say which target failed to build, which was it?

                    > Are you using make or gmake? (I've tried both...)

                    make and gmake.

                    > Are you on S10 or S11?

                    11 SR3 and 6 (two systems).

                    --
                    Ian.
                  • Ian Collins
                    ... You have OpenLdap installed on your system (ldap_start_tls_s isn t in the native LDAP), so you should include the path to its libraries in LDFLAGS. -- Ian.
                    Message 9 of 16 , May 8, 2012
                    View Source
                    • 0 Attachment
                      On 05/ 8/12 04:00 PM, hal_hl wrote:
                      > Trying to build Squid 3.1.19 on S11. Someone here mentioned they were able to build it?
                      >
                      > I'm running into this:
                      > Undefined first referenced
                      > symbol in file
                      > ldap_start_tls_s squid_ldap_auth.o
                      > ldap_initialize squid_ldap_auth.o

                      You have OpenLdap installed on your system (ldap_start_tls_s isn't in
                      the native LDAP), so you should include the path to its libraries in
                      LDFLAGS.

                      --
                      Ian.
                    • hal_hl
                      ... You re right... pkg://solaris/library/openldap@2.4.25,5.11-0.175.0.0.0.2.537:20111019T104458Z Looks like the libraries are in /usr/lib/amd64 I added: env
                      Message 10 of 16 , May 8, 2012
                      View Source
                      • 0 Attachment
                        --- In solarisx86@yahoogroups.com, Ian Collins <ian@...> wrote:
                        > You have OpenLdap installed on your system (ldap_start_tls_s isn't in
                        > the native LDAP), so you should include the path to its libraries in
                        > LDFLAGS.
                        >

                        You're right...
                        pkg://solaris/library/openldap@2.4.25,5.11-0.175.0.0.0.2.537:20111019T104458Z

                        Looks like the libraries are in /usr/lib/amd64

                        I added:
                        env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin::/usr/sfw/bin CC=gcc \
                        CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS="-m64 -L/usr/lib/amd64 -R/usr/lib/amd64" ./configure --prefix=/opt/squid \ .... etc


                        but I'm still getting:
                        libtool: link: gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -pthreads -m64 -m64 -o squid_ldap_auth squid_ldap_auth.o -L/usr/lib/amd64 ../../../compat/.libs/libcompat.a -L/export/home1/src/www/squid-3.1.19/lib -lmiscutil -lldap -llber -lm -lmalloc -lsocket -lresolv -lnsl -pthreads -R/usr/lib/amd64
                        Undefined first referenced
                        symbol in file
                        ldap_start_tls_s squid_ldap_auth.o
                        ldap_initialize squid_ldap_auth.o
                      • Ian Collins
                        ... Ah, that s clearer. Your compile is picking up the OpenLDAP header, the link is using the native library. One of: Compile with -DLDAP_DEPRECATED or change
                        Message 11 of 16 , May 8, 2012
                        View Source
                        • 0 Attachment
                          On 05/ 9/12 03:40 PM, hal_hl wrote:
                          >
                          > --- In solarisx86@yahoogroups.com, Ian Collins<ian@...> wrote:
                          >> You have OpenLdap installed on your system (ldap_start_tls_s isn't in
                          >> the native LDAP), so you should include the path to its libraries in
                          >> LDFLAGS.
                          >>
                          > You're right...
                          > pkg://solaris/library/openldap@2.4.25,5.11-0.175.0.0.0.2.537:20111019T104458Z
                          >
                          > Looks like the libraries are in /usr/lib/amd64
                          >
                          > I added:
                          > env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin::/usr/sfw/bin CC=gcc \
                          > CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS="-m64 -L/usr/lib/amd64 -R/usr/lib/amd64" ./configure --prefix=/opt/squid \ .... etc
                          >
                          >
                          > but I'm still getting:
                          > libtool: link: gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -pthreads -m64 -m64 -o squid_ldap_auth squid_ldap_auth.o -L/usr/lib/amd64 ../../../compat/.libs/libcompat.a -L/export/home1/src/www/squid-3.1.19/lib -lmiscutil -lldap -llber -lm -lmalloc -lsocket -lresolv -lnsl -pthreads -R/usr/lib/amd64
                          > Undefined first referenced
                          > symbol in file
                          > ldap_start_tls_s squid_ldap_auth.o
                          > ldap_initialize squid_ldap_auth.o
                          >
                          Ah, that's clearer. Your compile is picking up the OpenLDAP header, the
                          link is using the native library.

                          One of:

                          Compile with -DLDAP_DEPRECATED or
                          change -lldap to -lldap-24 in the link

                          Should fix it.

                          --
                          Ian.
                        • hal_hl
                          ... It s just not my day... I tried adding LIBS=-lldap-24 and configure complained that it couldn t find the library ldap-24. I added -DLDAP_DEPRECATED to
                          Message 12 of 16 , May 9, 2012
                          View Source
                          • 0 Attachment
                            --- In solarisx86@yahoogroups.com, Ian Collins <ian@...> wrote:

                            >
                            > Compile with -DLDAP_DEPRECATED or
                            > change -lldap to -lldap-24 in the link

                            It's just not my day...

                            I tried adding LIBS=-lldap-24 and configure complained that it couldn't find the library ldap-24.

                            I added -DLDAP_DEPRECATED to CFLAGS and bombed with the same error:
                            libtool: link: gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -pthreads -m64 -DLDAP_DEPRECATED -m64 -o squid_ldap_auth squid_ldap_auth.o -L/usr/lib/amd64 ../../../compat/.libs/libcompat.a -L/export/home1/src/www/squid-3.1.19/lib -lmiscutil -lldap -llber -lm -lmalloc -lsocket -lresolv -lnsl -pthreads -R/usr/lib/amd64
                            Undefined first referenced
                            symbol in file
                            ldap_start_tls_s squid_ldap_auth.o
                            ldap_initialize squid_ldap_auth.o
                          • palowoda
                            ... Hmm. I have: root@fishbutt:/root ls -ld /usr/lib/amd64/libldap-2* lrwxrwxrwx 1 root root 20 Nov 13 01:00 /usr/lib/amd64/libldap-2.4.so -
                            Message 13 of 16 , May 9, 2012
                            View Source
                            • 0 Attachment
                              --- In solarisx86@yahoogroups.com, "hal_hl" <werner@...> wrote:
                              >
                              >
                              >
                              > --- In solarisx86@yahoogroups.com, Ian Collins <ian@> wrote:
                              >
                              > >
                              > > Compile with -DLDAP_DEPRECATED or
                              > > change -lldap to -lldap-24 in the link
                              >
                              > It's just not my day...
                              >
                              > I tried adding LIBS=-lldap-24 and configure complained that it couldn't find the library ldap-24.
                              >
                              > I added -DLDAP_DEPRECATED to CFLAGS and bombed with the same error:
                              > libtool: link: gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -pthreads -m64 -DLDAP_DEPRECATED -m64 -o squid_ldap_auth squid_ldap_auth.o -L/usr/lib/amd64 ../../../compat/.libs/libcompat.a -L/export/home1/src/www/squid-3.1.19/lib -lmiscutil -lldap -llber -lm -lmalloc -lsocket -lresolv -lnsl -pthreads -R/usr/lib/amd64
                              > Undefined first referenced
                              > symbol in file
                              > ldap_start_tls_s squid_ldap_auth.o
                              > ldap_initialize squid_ldap_auth.o
                              >

                              Hmm. I have:

                              root@fishbutt:/root> ls -ld /usr/lib/amd64/libldap-2*
                              lrwxrwxrwx 1 root root 20 Nov 13 01:00 /usr/lib/amd64/libldap-2.4.so -> libldap-2.4.so.2.7.0
                              lrwxrwxrwx 1 root root 20 Nov 13 01:00 /usr/lib/amd64/libldap-2.4.so.2 -> libldap-2.4.so.2.7.0
                              -r-xr-xr-x 1 root bin 620152 Oct 20 2011 /usr/lib/amd64/libldap-2.4.so.2.7.0


                              So shouldn't it be -lldap-2.4 ?

                              ---Bob
                            • Ian Collins
                              ... Yes, I need new glasses.... -- Ian.
                              Message 14 of 16 , May 9, 2012
                              View Source
                              • 0 Attachment
                                On 05/10/12 04:32 AM, palowoda wrote:
                                >
                                > --- In solarisx86@yahoogroups.com, "hal_hl"<werner@...> wrote:
                                >>
                                >>
                                >> --- In solarisx86@yahoogroups.com, Ian Collins<ian@> wrote:
                                >>
                                >>> Compile with -DLDAP_DEPRECATED or
                                >>> change -lldap to -lldap-24 in the link
                                >> It's just not my day...
                                >>
                                >> I tried adding LIBS=-lldap-24 and configure complained that it couldn't find the library ldap-24.
                                >>
                                >> I added -DLDAP_DEPRECATED to CFLAGS and bombed with the same error:
                                >> libtool: link: gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -pthreads -m64 -DLDAP_DEPRECATED -m64 -o squid_ldap_auth squid_ldap_auth.o -L/usr/lib/amd64 ../../../compat/.libs/libcompat.a -L/export/home1/src/www/squid-3.1.19/lib -lmiscutil -lldap -llber -lm -lmalloc -lsocket -lresolv -lnsl -pthreads -R/usr/lib/amd64
                                >> Undefined first referenced
                                >> symbol in file
                                >> ldap_start_tls_s squid_ldap_auth.o
                                >> ldap_initialize squid_ldap_auth.o
                                >>
                                > Hmm. I have:
                                >
                                > root@fishbutt:/root> ls -ld /usr/lib/amd64/libldap-2*
                                > lrwxrwxrwx 1 root root 20 Nov 13 01:00 /usr/lib/amd64/libldap-2.4.so -> libldap-2.4.so.2.7.0
                                > lrwxrwxrwx 1 root root 20 Nov 13 01:00 /usr/lib/amd64/libldap-2.4.so.2 -> libldap-2.4.so.2.7.0
                                > -r-xr-xr-x 1 root bin 620152 Oct 20 2011 /usr/lib/amd64/libldap-2.4.so.2.7.0
                                >
                                >
                                > So shouldn't it be -lldap-2.4 ?

                                Yes, I need new glasses....

                                --
                                Ian.
                              • hal_hl
                                ... That fixed it! Thanks everyone for the help!
                                Message 15 of 16 , May 10, 2012
                                View Source
                                • 0 Attachment
                                  --- In solarisx86@yahoogroups.com, "palowoda" <palowoda@...> wrote:

                                  > So shouldn't it be -lldap-2.4 ?

                                  That fixed it! Thanks everyone for the help!
                                Your message has been successfully submitted and would be delivered to recipients shortly.