[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/452] New: ar can't handle object name conflict
From: |
nvouk at eos dot ncsu dot edu |
Subject: |
[Bug binutils/452] New: ar can't handle object name conflict |
Date: |
15 Oct 2004 15:35:32 -0000 |
Hello,
I'd like to report a problem with the gnu archive utility (ar) not being able
to handle multiple object files in a source tree having the same object name. I
saw on the net that a similar problem was resolved with libtool
(http://www.jankratochvil.net/project/libtool/), but ar has the same issue.
I ran into this problem compiling the silo library from LLNL
(http://www.llnl.gov/bdiv/meshtv/software.html) as it has two object files named
(obj.o). The two conflicting files are located, from the source root, at
"silo/tools/browser/obj.c" and "silo/netcdf/obj.c". Renaming one to obj2.c and
modifying its respective Makefile allows for a clean compile.
This is a problem when using the 'replace' option. What happens, I think, is
that ar keys on the file name for symbol replacement. Maybe a solution may be to
give some sort of complete path, or as with the libtool idea, create a random
name when it comes upon a conflict.
Maybe a stop-gap solution is to just put some sort of warning in the man page
under the 'r' option. That could save a few heads of hair at least.
Unfortunately, I don't have a patch to provide, but, as since I have not seen
anything on the net regarding it, I wanted to report this for fixing in a future
version. The work-around is to rename one of the files and then recompile and
archive.
My binutils version is:
address@hidden silo]$ ar -V
GNU ar 2.15.90.0.3 20040415
Copyright 2004 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
thanks,
nik
--
Summary: ar can't handle object name conflict
Product: binutils
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: nvouk at eos dot ncsu dot edu
CC: bug-binutils at gnu dot org
http://sources.redhat.com/bugzilla/show_bug.cgi?id=452
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/452] New: ar can't handle object name conflict,
nvouk at eos dot ncsu dot edu <=