Operating System - HP-UX
1753759 Members
4599 Online
108799 Solutions
New Discussion юеВ

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

 
Peter Godron
Honored Contributor

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

Soumya,
so this mean it is now working?
The -h option was added to the ld stage of the make. See my pevious mail.
Hope this is the solution.
Regards
soumya das
Advisor

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

Hi peter,

If I add the -h option in the LD_FLAG errors are coming that -h is not recognised there. The same is case for +allowdups.

My prob. is where in my make file can the option -h sqlca or +allowdups be added.

--regards,
soumya
soumya das
Advisor

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

Hi Peter,

Could you find out any solution??

-- regards,

soumya
Peter Godron
Honored Contributor

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

Soumya,
please amend:
LD_FLAGS = -L$(CONFIGURATIONAPI) -L$(COLLECTIONAPI) -L$(EVENTAPI) -L$(SOCKETAPI) -L$(MQAPI) -lconfigurationmanager -lcollectionmanager -leventmanager -lsocketlib -b
to
LD_FLAGS = -hsqlca -L$(CONFIGURATIONAPI) -L$(COLLECTIONAPI) -L$(EVENTAPI) -L$(SOCKETAPI) -L$(MQAPI) -lconfigurationmanager -lcollectionmanager -leventmanager -lsocketlib -b
and try it (added -hsqlca [no space])
soumya das
Advisor

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

Hi Peter,

I amended as u told .. but the error persists and says "unknown options -hsqlca".

This option works with ld option ie. ld -h sqlca is not giving any error.But not with the LDFLAG options.

Actually it's not recognising the sqlca symbol in the makefile.

Can in any ways the ld option be included in the makefile like ld -h -sqlca be included?? Or we have to put the -h -sqlca in a place where make file will understand the sqlca symbol.
Peter Godron
Honored Contributor

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

Soumya,
we will need a little help from a make expert for this final part. We have written our own scripts for compilation and we separate the process into ProC Pre-compile, C compile and ld steps.

I would suggest you complete this thread with the exisiting solution of adding the -hsqlca and allowdups parameters.

Then open a new thread calling all make experts (include a brief description of the problem and proposed solution).
Many Thanks
soumya das
Advisor

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

Ok, Peter,
Many thanks. I would do what you suggetsed.

--regards,
soumya
soumya das
Advisor

Re: Duplicate symbol "sqlca" in files <file1.o> <file2.o>

Hi,

I think the thread should be completed now.
-h sqlca and +allowdups are some options that can be used with ld.

--regards
soumya