Anyone heard of "eprintf" ?

Anyone heard of "eprintf" ?

Post by Lars Tunkran » Fri, 28 Feb 2003 01:05:35



This is what a compile run of  Sendmail on Solaris 9/SPARC  US III
comes up with :

Making all in:
/home/xxx/src/sendmail-8.12.7/sendmail
Configuration: pfx=, os=SunOS, rel=5.9, rbase=5, rroot=5.9, arch=sun4,
sfx=, variant=optimized
Making in /home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/sendmail
/opt/SUNWspro/bin/cc -o sendmail  -L/usr/local/BerkeleyDB.4.1/lib main.o
alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o
deliver.o domain.o envelope.o err.o headers.o macro.o map.o mci.o
milter.o mime.o parseaddr.o queue.o readcf.o recipient.o sasl.o
savemail.o sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o stab.o stats.o
sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o version.o
-lssl -lcrypto
/home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/lib*il/lib*il.a
/home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/libsm/libsm.a  -ldb
-lresolv -lsocket -lnsl -ldb -lldap

Undefined                       first referenced
  symbol                            in file
__eprintf                          /usr/local/lib/libcrypto.a(b_print.o)

ld: fatal: Symbol referencing errors. No output written to sendmail
*** Error code 1
make: Fatal error: Command failed for target `sendmail'
Current working directory
/home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/sendmail
*** Error code 1
make: Fatal error: Command failed for target `all'
------------------------

eprintf ??????

I have "grepped " through the whole openssl sourcetree ( libcrypto is
from openssl )   and cant find  the string "eprintf"  at all.

There is no manual about any "eprintf"  subroutine

Any ideeas ?????

Regards  //Lars

$ man -k printf
ber_printf      ber_encode (3ldap)  - simplified Basic Encoding Rules library
encoding functions
fprintf         printf (3c)     - print formatted output
fprintf         printf (3ucb)   - formatted output conversion
fwprintf        fwprintf (3c)   - print formatted wide-character output
printf          printf (1)      - write formatted output
printf          printf (3c)     - print formatted output
printf          printf (3ucb)   - formatted output conversion
snprintf        printf (3c)     - print formatted output
snprintf        sprintf (9f)    - format characters in memory
sprintf         printf (3c)     - print formatted output
sprintf         printf (3ucb)   - formatted output conversion
sprintf         sprintf (9f)    - format characters in memory
swprintf        fwprintf (3c)   - print formatted wide-character output
vfprintf        printf (3ucb)   - formatted output conversion
vfprintf        vprintf (3c)    - print formatted output of a variable argument list
vfwprintf       vfwprintf (3c)  - wide-character formatted output of a stdarg
argument list
vprintf         printf (3ucb)   - formatted output conversion
vprintf         vprintf (3c)    - print formatted output of a variable argument list
vsnprintf       vprintf (3c)    - print formatted output of a variable argument list
vsprintf        printf (3ucb)   - formatted output conversion
vsprintf        vprintf (3c)    - print formatted output of a variable argument list
vsprintf        vsprintf (9f)   - format characters in memory
vswprintf       vfwprintf (3c)  - wide-character formatted output of a stdarg
argument list
vwprintf        vfwprintf (3c)  - wide-character formatted output of a stdarg
argument list
wprintf         fwprintf (3c)   - print formatted wide-character output
wsprintf        wsprintf (3c)   - formatted output conversion
printf          printf (1)      - format and print data
aa_printf       aa_printf (3)   - print text to AA-lib output buffers.
ber_printf      ber_encode (3ldap)  - simplified Basic Encoding Rules library
encoding functions
fprintf         printf (3c)     - print formatted output
fprintf         printf (3ucb)   - formatted output conversion
fwprintf        fwprintf (3c)   - print formatted wide-character output
printf          printf (1)      - write formatted output
printf          printf (3c)     - print formatted output
printf          printf (3ucb)   - formatted output conversion
snprintf        printf (3c)     - print formatted output
snprintf        sprintf (9f)    - format characters in memory
sprintf         printf (3c)     - print formatted output
sprintf         printf (3ucb)   - formatted output conversion
sprintf         sprintf (9f)    - format characters in memory
swprintf        fwprintf (3c)   - print formatted wide-character output
vfprintf        printf (3ucb)   - formatted output conversion
vfprintf        vprintf (3c)    - print formatted output of a variable argument list
vfwprintf       vfwprintf (3c)  - wide-character formatted output of a stdarg
argument list
vprintf         printf (3ucb)   - formatted output conversion
vprintf         vprintf (3c)    - print formatted output of a variable argument list
vsnprintf       vprintf (3c)    - print formatted output of a variable argument list
vsprintf        printf (3ucb)   - formatted output conversion
vsprintf        vprintf (3c)    - print formatted output of a variable argument list
vsprintf        vsprintf (9f)   - format characters in memory
vswprintf       vfwprintf (3c)  - wide-character formatted output of a stdarg
argument list
vwprintf        vfwprintf (3c)  - wide-character formatted output of a stdarg
argument list
wprintf         fwprintf (3c)   - print formatted wide-character output
wsprintf        wsprintf (3c)   - formatted output conversion
$

 
 
 

Anyone heard of "eprintf" ?

Post by Mark » Fri, 28 Feb 2003 03:42:48



> This is what a compile run of  Sendmail on Solaris 9/SPARC  US III
> comes up with :

[snip]

Quote:> /home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/libsm/libsm.a  -ldb
> -lresolv -lsocket -lnsl -ldb -lldap

> Undefined                  first referenced
>   symbol                       in file
> __eprintf                          /usr/local/lib/libcrypto.a(b_print.o)

> ld: fatal: Symbol referencing errors. No output written to sendmail
> *** Error code 1
> make: Fatal error: Command failed for target `sendmail'
> Current working directory
> /home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/sendmail
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> ------------------------

> eprintf ??????

Yep, that would be eprintf.  If you have gcc installed, try adding -lgcc to
your library line, and see if that fixes it.  eprintf is defined there.'
Another way to take care of this would be to recompile openssl/sendmail
without using gcc, if possible.

Hope that helps,

--
Exanter

 
 
 

Anyone heard of "eprintf" ?

Post by Casper H.S. Di » Fri, 28 Feb 2003 20:26:34



>This is what a compile run of  Sendmail on Solaris 9/SPARC  US III
>comes up with :
>Making all in:
>/home/xxx/src/sendmail-8.12.7/sendmail
>Configuration: pfx=, os=SunOS, rel=5.9, rbase=5, rroot=5.9, arch=sun4,
>sfx=, variant=optimized
>Making in /home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/sendmail
>/opt/SUNWspro/bin/cc -o sendmail  -L/usr/local/BerkeleyDB.4.1/lib main.o
>alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o
>deliver.o domain.o envelope.o err.o headers.o macro.o map.o mci.o
>milter.o mime.o parseaddr.o queue.o readcf.o recipient.o sasl.o
>savemail.o sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o stab.o stats.o
>sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o version.o
>-lssl -lcrypto
>/home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/lib*il/lib*il.a
>/home/xxx/src/sendmail-8.12.7/obj.SunOS.5.9.sun4/libsm/libsm.a  -ldb
>-lresolv -lsocket -lnsl -ldb -lldap
>Undefined                   first referenced
>  symbol                        in file
>__eprintf                          /usr/local/lib/libcrypto.a(b_print.o)

you're linking with a library compiled with gcc; in some cases, such
libraries include gcc C runtime glue and they then need to be linked with
the "gcc" runtime.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

Anyone heard of "eprintf" ?

Post by Dave Uhrin » Fri, 28 Feb 2003 20:50:59




>>Undefined                       first referenced
>>  symbol                            in file
>>__eprintf                          /usr/local/lib/libcrypto.a(b_print.o)

> you're linking with a library compiled with gcc; in some cases, such
> libraries include gcc C runtime glue and they then need to be linked with
> the "gcc" runtime.

[3.2.1]$ nm libgcc.a | grep printf
libgcc.a[_eprintf.o]:
[9]     |         8|      72|FUNC |GLOB |0    |2      |__eprintf
[7]     |         0|       0|NOTY |GLOB |0    |UNDEF  |fprintf
[24]    |         0|       0|NOTY |GLOB |0    |UNDEF  |fprintf