bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Build problems under DEC-VAX-Ultrix


From: miim webmaster
Subject: [Bug-tar] Build problems under DEC-VAX-Ultrix
Date: Wed, 3 Aug 2005 01:37:56 -0700 (PDT)

(1)

Under DEC-VAX-Ultrix, the routine "strdup" is not
available and the tar build fails.

Quick and dirty fix:

Inserting the following code into src/tar.c
*appears* (see (2) below) to solve the problem.

>char *strdup (const char *s) {
>
>char *d;
>
>if (s == NULL) return NULL;
>if ((d = malloc (strlen (s) + 1)) == NULL) return
NULL;
>memcpy (d, s, strlen (s) + 1);
>return d;
>}

This is not a complete fix, as I have no idea what
conditionalization of the package is required to
ensure it
is not compiled in under architectures that have the
routine.

This fix is not tested to work, due to the additional
problem below.


(2)

The routine "vsnprintf" is not available under
DEC-VAX-Ultrix
and the tar build fails.

The routine is referenced in (at least)
lib/argp-fmtstream.c

After a quick Google search, I have not been able to
find the
source for this routine and am stuck at this point.



If anyone is interested in chasing this bug, I can
make the
host system available for testing.




-------------------------------------------
Sign above earmuffs in reactor guard-shack:

"Hearing protection MUST be worn when
  automatic shotgun is in use!"  (OSHA)





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]