Error No Csects Or Exported Symbols Have Been Saved
on an AIX 5.2 machine and running into the following the problem: ld: 0711-327 WARNING: Entry point not found: __start ld: 0711-244 ERROR: No csects or exported symbols have been saved. Here is my real simple source code: cat xx.c test() { printf ("Hello World\n"); } ================================================= xlC_r -c xx.c (generates xx.o ) ld -G -o abc xx.o ld: 0711-327 WARNING: Entry point not found: __start ld: 0711-244 ERROR: No csects or exported symbols have been saved. Can somebody tell me what I am missing. Thanks in advance for your help... Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode January 12th,08:46 PM #1 Creating a shared library I am tring to create a shared library on an AIX 5.2 machine and running into the following the problem: ld: 0711-327 WARNING: Entry point not found: __start ld: 0711-244 ERROR: No csects or exported symbols have been saved. Here is my real simple source code: cat xx.c test() { printf ("Hello World\n"); } ================================================= xlC_r -c xx.c (generates xx.o ) ld -G -o abc xx.o ld: 0711-327 WARNING: Entry point not found: __start ld: 0711-244 ERROR: No csects or exported symbols have been saved. Can somebody tell me what I am missing. Thanks in advance for your help Stu Guest January 13th,04:13 AM #2 Re: Creating a shared library com (Stu) writes: Start by reading this doent: http://www.ibm.com/servers/esdd/pdfs/aix_ll.pdf Using 'ld' directly to build any user-level program or library is incorrect on almost all UNIX systems. Don't do that, unless you *know* what you are doing. Use the compiler driver instead. Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. Paul Guest January 14th,05:59 AM #3 Re: Creating a shared library Paul Pluzhnikov wrote: > > > Start by reading this doent: > http://www.ibm.com/servers/esdd/pdfs/aix_ll.pdf[/ref] Or, "Chapter 2. Compiling an
Groups Pictures & Albums Members List Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Page 1 of 4 1 23 > Last » Thread Tools Display Modes #1 03-01-2006, 15:55 pcamelio Member Join Date: Jul 2005 Posts: 67 Help needed : compilation on AIX 5.3 failed I try to compile Zabbix on AIX 5.3 unsuccessfully I got the following error msg at the link step: Configure option I used : configure --enable-server --enable-agent --with-mysql --with-net-snmp-5.2.2 --prefix=$HOME Then I run Make the compilation is OK but the link failed at the first step ... Making all in zabbix_agent ... gcc -static -g -O2 -o zabbix_agent zabbix_agent.o ..... collect2: http://www.justskins.com/forums/creating-a-shared-library-199762.html ../libs/zbxsysinfo/libzbxsysinfo.a: not a COFF file make: The error code from the last command is 1. Any idea ? pcamelio View Public Profile Send a private message to pcamelio Find all posts by pcamelio #2 03-01-2006, 16:00 Alexei Zabbix developer, product manager Join Date: Sep 2004 Location: Riga, Latvia Posts: 5,606 Seems like outdated version of GCC. Try to compile ZABBIX with AIX compiler by setting environment CC: export CC=cc __________________ Alexei Vladishev Creator https://www.zabbix.com/forum/showthread.php?t=1883 of Zabbix, Product manager New York | Tokyo | Riga My Twitter Alexei View Public Profile Send a private message to Alexei Find all posts by Alexei #3 03-01-2006, 16:13 pcamelio Member Join Date: Jul 2005 Posts: 67 So I need the IBM C compiler but we did not have it, I just can use gcc provided by IBM: gcc 3.3.2-5 for aix 5.3 ... I read in some threads in forum about pb between 32 bits and 64 bits I tried to compile with -maix64 but I have got error msg for declaration variables in some c files ... stop to look in that direction sniff sniff I already used Zabbix on Linux, but I really loved use it on AIX 5.3 (p520) Any others suggestions pcamelio View Public Profile Send a private message to pcamelio Find all posts by pcamelio #4 03-01-2006, 17:09 pcamelio Member Join Date: Jul 2005 Posts: 67 I am downloading gcc 4.0.2 I let you know if I already have problem to compile Regards pcamelio View Public Profile Send a private message to pcamelio Find all posts by pcamelio #5 05-01-2006, 16:54 pcamelio Member Join Date: Jul 2005 Posts: 67 I still have the same pb with gcc 4.0.2 Any help is welcome pcamelio View Public Profile Send a priv
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time https://www.experts-exchange.com/questions/22627686/Need-the-'start'-entry-function-of-a-dynamic-shared-library-in-AIX-and-xlC.html Help Create a Freelance Project Hire for a Full Time Job Ways http://grokbase.com/t/tomcat/users/01264346g3/ld-0711-244-error-no-csects-or-exported-symbols-have-been-saved to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Need the 'start' entry function of a dynamic shared library in AIX and xlC. Want to Advertise error no Here? Solved Need the 'start' entry function of a dynamic shared library in AIX and xlC. Posted on 2007-06-11 Unix OS C++ 4 Verified Solutions 19 Comments 2,309 Views Last Modified: 2013-11-17 Need the 'start' entry function of a dynamic shared library in AIX and xlC which is supposed to be the equivalent thing as DllMain in Windows. error no csects Regards, Alex 0 Question by:itsmeandnobodyelse Facebook Twitter LinkedIn Google LVL 14 Best Solution bysjm_ee Did you read the document I pointed to? No? Ok, you are getting a message "Entry point not found: __start" because by default the linker (which gets called by the compiler ) writes out whole programs, Go to Solution 19 Comments LVL 14 Overall: Level 14 Unix OS 13 C++ 1 Message Assisted Solution by:sjm_ee2007-06-12 The "start" symbol in a UNIX executable is the entry point of an executable. An AIX shared object doesn't have a "start". See this: http://www.redbooks.ibm.com/abstracts/sg245674.html?Open. When you say "which is supposed to be", who is supposing this? This is one way in which UNIX and Windows differ. 0 LVL 2 Overall: Level 2 C++ 1 Message Assisted Solution by:asaeed2007-06-12 there is no main start in AIX u need to have these in caller functions file #include
for AIX 4.3, try adding the option -bexpall to theCFG_LDFLAGS_SHLIB entry in the apxs script.iemy $CFG_LDFLAGS_SHLIB = q(-bM:SRE -bnoentry -bI:/usr/local/lib/apache/httpd.exp-bexpall -lc);Hope this helps reply Tweet Search Discussions Search All Groups users Related Discussions compiling mod_jk under AIX Building mod_jk on AIX cannot create mod_jk.so problem compiling Jserv module AW: mod_jk for AIX? which symbols must mod_jk.so export ? [ANN] : Tomcat 5 on Linux Step-By-Step Mathematical Editor for textarea in JSP page. APR build under Win32 (Visual Studio) - undefined symbols Build Problem - jakarta-tomcat-connectors-4.1.30-src Discussion Navigation viewthread | post Discussion Overview groupusers @ Notice: Undefined variable: pl_domain_short in /home/whirl/sites/grokbase/root/www/public_html__www/cc/flow/tpc.main.php on line 1605 categoriestomcat postedFeb 6, '01 at 5:19p activeFeb 6, '01 at 5:19p posts1 users1 websitetomcat.apache.org irc#tomcat Preferences responses expanded Hotkey:s font variable Hotkey:f user style avatars Hotkey:a 1 user in discussion Keith Axon-csc (1) Content Home Groups & Organizations People Users Badges Support Welcome FAQ Contact Us Translate site design / logo © 2016 Grokbase