[Bug 2119494] Review Request: aubit4gl - Informix-4GL compatible compiler

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=2119494



--- Comment #103 from Stansoft <rpm@xxxxxxxxxxxx> ---
I tried adding -laubit4gl to all the plugin private libraries during linking,
but that does not fix the undefined weak symbols warning. This was already in
place for PostgreSQL and it also has the warning on libSQL_pg8.so, but it is
linking with -laubit4gl as shown below:

gcc -Wall -Wredundant-decls -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -g  -fPIC
-DPIC -DSRC_TREE -DDEBUG -DHAVE_CONFIG_H=
-I/builddir/build/BUILD/aubit4gl-r12801/incl
-I/builddir/build/BUILD/aubit4gl-r12801  -fPIC -DPIC -I.. -I/usr/include
-I/include -shared pg8.o -L/usr/lib  -lpq -o
/builddir/build/BUILD/aubit4gl-r12801/plugins-1.5.3/libSQL_pg8.so -laubit4gl
-L/builddir/build/BUILD/aubit4gl-r12801/lib


I ran ldd against libSQL_pg.so on a system with Aubit4GL installed and it gives
the undefined symbol unless LD_LIBRARY_PATH is pointing to libaubit4gl.so which
I have also shown below:

ldd -d -r aubit4gl/plugins-1.5_3/libSQL_pg.so
        linux-vdso.so.1 (0x00007ffdceb7b000)
        libpq.so.5 => /lib64/libpq.so.5 (0x00007f9b59d4d000)
        libaubit4gl-1.5_3.so => not found
        libc.so.6 => /lib64/libc.so.6 (0x00007f9b59a00000)
        libssl.so.3 => /lib64/libssl.so.3 (0x00007f9b59caa000)
        libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f9b59400000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f9b59c51000)
        libldap_r-2.4.so.2 => /lib64/libldap_r-2.4.so.2 (0x00007f9b59c4c000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f9b59dbb000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f9b59c32000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f9b59923000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f9b59c19000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f9b59c12000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f9b59912000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f9b59c09000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f9b598fe000)
        libldap.so.2 => /lib64/libldap.so.2 (0x00007f9b59898000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f9b5986c000)
        liblber.so.2 => /lib64/liblber.so.2 (0x00007f9b5985a000)
        libevent-2.1.so.7 => /lib64/libevent-2.1.so.7 (0x00007f9b593a7000)
        libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007f9b5983a000)
        libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f9b5930a000)
        libcrypt.so.2 => /lib64/libcrypt.so.2 (0x00007f9b592d0000)
undefined symbol: a4gl_status   (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_esql_db_open     (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_debug_full_extended_ln  
(aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_strcpy   (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_new_literal_string      
(aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_exitwith (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_strstartswith    (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_global_A4GLSQL_get_sqlerrm      
(aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_esql_dbopen_connection  
(aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_new_ptr_list     (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_add_pointer      (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_assertion_full   (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_find_pointer     (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_trim     (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: acl_getenv    (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_mja_fopen        (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_set_errm (aubit4gl/plugins-1.5_3/libSQL_pg.so)
undefined symbol: A4GL_new_append_ptr_list     
(aubit4gl/plugins-1.5_3/libSQL_pg.so)

When libaubit4gl.so is found there are no undefined symbol errors:

LD_LIBRARY_PATH=aubit4gl/lib ldd -d -r aubit4gl/plugins-1.5_3/libSQL_pg.so
        linux-vdso.so.1 (0x00007ffe873f3000)
        libpq.so.5 => /lib64/libpq.so.5 (0x00007f674f68f000)
        libaubit4gl-1.5_3.so => aubit4gl/lib/libaubit4gl-1.5_3.so
(0x00007f674f000000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f674ec00000)
        libssl.so.3 => /lib64/libssl.so.3 (0x00007f674ef5d000)
        libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f674e600000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f674f636000)
        libldap_r-2.4.so.2 => /lib64/libldap_r-2.4.so.2 (0x00007f674f631000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f674ee7f000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f674f617000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f674f6fd000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f674eb23000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f674ee66000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f674f60e000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f674ee55000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f674ee4e000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f674ee3a000)
        libldap.so.2 => /lib64/libldap.so.2 (0x00007f674eabd000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f674ee0e000)
        liblber.so.2 => /lib64/liblber.so.2 (0x00007f674eaab000)
        libevent-2.1.so.7 => /lib64/libevent-2.1.so.7 (0x00007f674ea52000)
        libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007f674ea32000)
        libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 (0x00007f674e563000)
        libcrypt.so.2 => /lib64/libcrypt.so.2 (0x00007f674e529000)


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2119494
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux