Linking issue under AIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Linking issue under AIX
# 1  
Old 06-14-2010
Linking issue under AIX

Hello everyone:
I've made a program for AIX, but it's unable to run, by running ld I got the following screen:

Code:
ld MyApp

ld: 0711-317 ERROR: Undefined symbol: getenv
ld: 0711-317 ERROR: Undefined symbol: _iob
ld: 0711-317 ERROR: Undefined symbol: fprintf
ld: 0711-317 ERROR: Undefined symbol: fflush
ld: 0711-317 ERROR: Undefined symbol: malloc
ld: 0711-317 ERROR: Undefined symbol: atexit
ld: 0711-317 ERROR: Undefined symbol: exit
ld: 0711-317 ERROR: Undefined symbol: __CleanupCatch
ld: 0711-317 ERROR: Undefined symbol: __run_final_dtors
ld: 0711-317 ERROR: Undefined symbol: __crt0v
ld: 0711-317 ERROR: Undefined symbol: __malloc_user_defined_name
ld: 0711-317 ERROR: Undefined symbol: __pthread
ld: 0711-317 ERROR: Undefined symbol: __pth_init
ld: 0711-317 ERROR: Undefined symbol: __mod_init
...

the -lC and -bdynamic flags are included in the linker options and the LIBPATH variable is correctly defined, thanks in advance for any advice
# 2  
Old 06-15-2010
Linking Issue under AIX

edgarvm,

Is this a C program? Can you please post your #include's as well as the command line parameters for your compiler?

Thanks,
Dan Chase
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Linking issue due to so version number

Hi all, currently I'm facing a issue in linking a .so file. In my build machine, I've libcrypto.so.6 and there is a softlink as libcrypto.so. In my make file I'm trying to link to the lib using -L -lcrypto and it is success and created my test.exe. When I copy this test.exe to other... (4 Replies)
Discussion started by: vijkrr
4 Replies

2. AIX

GIT issue in AIX 6.1

Hello, I recently installed GIT 1.8.1 on my AIX 6.1 machine referring to AIX Open Source Packages | Main / git website and am facing a few issues with it. Now if I login as root and issue git commands like git --version I get the response as shown : git version 1.8.1And I have tried creating... (4 Replies)
Discussion started by: gaugeta
4 Replies

3. AIX

AIX password issue

Hi, My server is an AIX server. Whenever a new user is created through smitty, the first time he logs in, he has to change his password. But i want to disable it and to enable the password expiry to a month. (i.e) after every month, he has to change his password. Any help in this matter... (1 Reply)
Discussion started by: mac4rfree
1 Replies

4. Shell Programming and Scripting

HP UX and AIX compatibility issue

Hi All, The below code works perfectly on AIX machine but doesnt give the desired o/p on HP UX. Can someone please generalise the code so that it becomes platform independent. awk 'NR == FNR { /^*\47name/ && c++ # get the field number if (/^*\47size/) { split($0, t, ":") ... (2 Replies)
Discussion started by: subhrap.das
2 Replies

5. AIX

Help while linking the library in AIX

Hi, I have one library(libfoo.a) that is folder /home/xyz and my c program is in /home/xyz/cprog. Whenever I issue cc command cc -o test test.c -lfoo , i get the error /usr/bin/ld: cannot find -lfoo. echo $PATH has already listing of /home/xyz variable, even LIBPATH also has same entry... (0 Replies)
Discussion started by: rishisoft1
0 Replies

6. AIX

Issue "Error 404" when upgrade AIX 5300-05-CSP-0000 to AIX (5300-09-02-0849)

Please read my issue! My old server using: - AIX system operating (5300-05-CSP-0000) - WebSphere 6.1.0.21 (Fix Pack 21) After I've upgraded version AIX - AIX system operating (5300-09-02-0849) - WebSphere 6.1.0.21 (Fix Pack 21) I have 1 issue when I access home page: "Error... (0 Replies)
Discussion started by: gamonhon
0 Replies

7. AIX

linking warning in AIX-Please help-duplicate symbols :(((

:confused: Hi All I am getting following warnings on AIX: ctsaix01-kepatil > make -f MakePMXMLParserAIX.mak xlC_r -g -c -DAIX -D_REENTRANT -I. -I/ctsadev/Development/kepatil/p4client/3rd_party/XercesC/2.7.0/UNIX/AIX-51/XercesC/include -I../../API/INC -c -w -DNDEBUG -DAPP_NO_THREADS... (0 Replies)
Discussion started by: login0001
0 Replies

8. AIX

Linking query in AIX

Hi, Can we link to 2 libraries out of which one is compiled with version 5 and other with version 6. version 6 used AIX 5.0 Version 5 used AIX 4.3 Will there be any runtime problems because of this ( If it goes through linking step )? Thanks , Suman (2 Replies)
Discussion started by: suman_jakkula
2 Replies

9. AIX

AIX 5.3 - Issue with using at command

When I submit a .ksh script via the <at> command the script cannot find its input file specified every now and then. at now myscript.ksh inputfile.dat The issue can be reproduced with the following steps: 1. enter at now 2. enter script name and file name spell the filename incorrectly... (2 Replies)
Discussion started by: vigsgb
2 Replies

10. Programming

Linking problem while linking to shared library

Hi I'm getting ld: fatal: option -h and building a dynamic executable are incompatible ld: fatal: Flags processing errors When I run ld -shared -L/usr/dt/lib -lDtSvc -o builtin.so Workspace.o after running gcc -fPIC -I/usr/X11R6/include -I/usr/dt/include -c Workspace.c I'm... (6 Replies)
Discussion started by: laho
6 Replies
Login or Register to Ask a Question