Amanda-Users

Re: Problems compiling 2.4.4p3 on Solaris 2.51

2004-08-05 07:43:17
Subject: Re: Problems compiling 2.4.4p3 on Solaris 2.51
From: Jean-Louis Martineau <martinea AT iro.umontreal DOT ca>
To: stan <stanb AT panix DOT com>
Date: Thu, 5 Aug 2004 07:35:43 -0400
Hi stan,

Change the call to snprintf in amqde.c to ap_snprintf.

Jean-Louis

On Wed, Aug 04, 2004 at 06:16:58PM -0400, stan wrote:
> I'm trying to comiple 2.4.4p3 on an ancient Solaris 2.5.1 machine.
> 
> I gte errors in the linking phase with snprintf not being found. 
> What's puzzling is that config.log clearly shows that this function 
> was not found:
> 
> conftest.c:294: warning: conflicting types for built-in function 'snprintf'
> Undefined                       first referenced
>  symbol                             in file
>  snprintf                            /var/tmp//ccjH8So6.o
>  ld: fatal: Symbol referencing errors. No output written to conftest
>  collect2: ld returned 1 exit status
> 
> And it seems that the Amanda source tree provides this function
> for just such a case:
> 
> ./common-src/snprintf.c
> 
> Yet, I'm getting the following error:
> 
>  -g -O2 -o .libs/amqde amqde.o  -L/usr/local/lib -L/usr/include 
> ./.libs/libamclient.so
>  ../common-src/.libs/libamanda.so -lgen -lm -ltermcap -lsocket -lnsl -lintl 
> -R/opt/amanda/lib
>  -R/usr/local/lib
>  -R/usr/include
>  Undefined                       first referenced
>   symbol                             in file
>   snprintf                            amqde.o
>   ld: fatal: Symbol referencing errors. No output written to .libs/amqde
> 
> 
> Any sugestions as to what I might be doign wrong?
> 
> 
> 
> -- 
> "They that would give up essential liberty for temporary safety deserve
> neither liberty nor safety."
>                                               -- Benjamin Franklin

-- 
Jean-Louis Martineau             email: martineau AT iro.umontreal DOT ca 
Département IRO, Université de Montréal
C.P. 6128, Succ. CENTRE-VILLE    Tel: (514) 343-6111 ext. 3529
Montréal, Canada, H3C 3J7        Fax: (514) 343-5834

<Prev in Thread] Current Thread [Next in Thread>