Home · Articles · Downloads · Hobby Wear · Forums · Web Links · News CategoriesTuesday, December 03, 2024
Navigation
Home
Articles
Downloads
Hobby Wear
FAQ
Forums
Web Links
News Categories
Contact Us
Photo Gallery
OpenVMS Bigot
Search
Users Online
Guests Online: 4
No Members Online

Registered Members: 7,708
Newest Member: nifseg
Sponsors
Island Computer
View Thread
OpenVMS Hobbyist Program | Alpha Systems Forums | Alpha Software Forum
Author Linking issue with C
Sivakumar RS
Member

Posts: 3
Joined: 02.01.13
Posted on January 24 2013 17:59
Could you please help us to find root cause for the below warning message. We are repeatedly getting this warning message while compiling a C module.

%LINK-W-MULDEF, symbol DECC$REALLOC multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
%LINK-W-MULDEF, symbol DECC$MALLOC multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
%LINK-W-MULDEF, symbol DECC$CALLOC multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
%LINK-W-MULDEF, symbol DECC$CFREE multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
%LINK-W-MULDEF, symbol DECC$FREE multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1

We tried all possible options available on the net. Will be a great help if someone can get more insights on this.
Author RE: Linking issue with C
abrsvc
Member

Posts: 108
Joined: 12.03.10
Posted on January 25 2013 01:35
Please post the commands used to compile and link that generate the errors listed. Also a small reproducer would be helpful. As with most assistance requests, a list of the current version of the OS and compiler would be nice.

Dan
Author RE: Linking issue with C
Sivakumar RS
Member

Posts: 3
Joined: 02.01.13
Posted on January 28 2013 15:02
Hi Dan,

Please find the details, below..



============================================================================
> CC/VER
Compaq C V6.5-001 on OpenVMS Alpha V7.3-2

============================================================================
(LNM$SYSTEM_TABLE)

"DECC$CRTLMAP" = "SYS$SHAREsmileyECC$SHR_EV56"
"DECC$SHR" = "SYS$SHAREsmileyECC$SHR_EV56"

============================================================================
SYS$COMMON:[SYSLIB]

DECC$SHR_EV56.EXE;1 4984 29-SEP-2009 15:59:29.82 11-MAY-2010 12:52:18.88

============================================================================

>TYP REX_REPRINT.OPT
! IDENT = "S4617-1"
IDENTIFICATION = "S4617-1"

REPRINT_OBJ:REX_REPRINT
REPRINT_OBJ:REX_REPRINT_SQL

REX_C_EXE:REX_LOCKING /shareable

REX_LIB:REX /library
SQL$USER /library
>

============================================================================

>LINK/EXE=REX_REPRINT.EXE REX_REPRINT.OPT/OPT
! IDENT = "S4617-1"
IDENTIFICATION = "S4617-1"

REPRINT_OBJ:REX_REPRINT
REPRINT_OBJ:REX_REPRINT_SQL

REX_C_EXE:REX_LOCKING /shareable

REX_LIB:REX /library
SQL$USER /library
%LINK-W-MULDEF, symbol DECC$REALLOC multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
%LINK-W-MULDEF, symbol DECC$MALLOC multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
%LINK-W-MULDEF, symbol DECC$CALLOC multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
%LINK-W-MULDEF, symbol DECC$CFREE multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
%LINK-W-MULDEF, symbol DECC$FREE multiply defined
in module DECC$SHR_EV56 file SYS$COMMON:[SYSLIB]DECC$SHR_EV56.EXE;1
============================================================================
Author RE: Linking issue with C
malmberg
Moderator

Posts: 530
Joined: 15.04.08
Posted on January 29 2013 03:13
You are not getting that message when compiling, you are getting it when you are linking, which are quite different operations.

One of your programs that you are linking has routines named "realloc", "malloc", "cfree", "free" with the same names as ones that are in the C Runtime library.

That is a bug.

If you are replacing a standard C library routine, you have to give it a different name such as "my_realloc", and then use a pre-processor macro like #define realloc my_realloc after the header file that declares the macro.

The symbols involved indicate those are some of the routines for allocating and deallocating memory from the heap, and typically replacements are used to try to diagnose heap corruption issues.

As these are not a complete set of routines that are known to return pointers to memory allocated from the heap, even if you get the symbols correct, the routines may still not give you the information that you need.
Jump to Forum:
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Member Poll
Are you going to OpenVMS Boot Camp 2016?

Yes

No

You must login to vote.
Shoutbox
You must login to post a message.

malmberg
August 04 2022
No more VAX hobbyist licenses. Community licenses for Alpha/IA64/X86_64 VMS Software Inc. Commercial VMS software licenses for VAX available from HPE.

ozboomer
July 20 2022
Just re-visiting.. No more hobbyist licenses? Is that from vmssoftware.com, no 'community' licenses?

valdirfranco
July 01 2022
No more hobbyist license...sad

mister_wavey
February 12 2022
I recall that the disks failed on the public access VMS systems that included Fafner

parwezw
January 03 2022
Anyone know what happened to FAFNER.DYNDS.ORG? I had a hobbyist account here but can longer access the site.

gtackett
October 27 2021
Make that DECdfs _2.1A_ for Vax

gtackett
October 27 2021
I'm looking for DECdfs V2.4A kit for VAX. Asking here just in case anyone is still listening.

MarkRLV
September 17 2021
At one time, didn't this web site have a job board? I would love to use my legacy skills one last time in my career.

malmberg
January 18 2021
New Hobbyist PAKs for VAX/VMS are no longer available according to reports. Only commercial licenses are reported to be for sale from HPE

dfilip
January 16 2021
Can someone please point me to hobbyist license pak? I'm looking for VAX/VMS 7.1, DECnet Phase IV, and UCX/TCPIP ... have the 7.1 media, need the license paks ... thanks!

Bart
October 16 2020
OpenVMS, and this website!

malmberg
September 05 2020
VSI community non-commercial licenses for AXP/IA64 are available now.

malmberg
September 05 2020
See the forum about licensing. Don't know if HPE hobby licenses still being issued. Commercial licenses still being sold.

silfox70
September 01 2020
I need the license for OpenVMS7.3. Where can I find them?

malmberg
August 29 2020
Eisner, which is currently being moved, got an SSH update and the keys were updated to more modern encryption standards.

Shoutbox Archive