- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gcc __main unsatisfied symbol
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 02:17 AM
05-25-2004 02:17 AM
gcc __main unsatisfied symbol
I also applied patch PHSS_30049.
Now, I am trying to use gcc to link a module with our Oracle Financials Application modules and I am getting this error:
usr/ccs/bin/ld: Unsatisfied symbols:
__main (first referenced in /fp02/oracle/f11tappl/mcm/integration/lib/MCMLJ.o) (code)
From what I have read, libgcc.a should have the definition for __main.
I added the -v option to the gcc command and here is the output:
Reading specs from /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/specs
Configured with: /scratch/zack/pkgbuild/3.3.1/hpux-11/gcc-3.3.3/configure --enable-languages=c,c++ --enable-
threads=posix --disable-nls --with-gnu-as --without-gnu-ld --with-as=/usr/local/bin/as --prefix=/usr/local
Thread model: posix
gcc version 3.3.3
/usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/collect2 -z -u main -u __gcc_plt_call -o /fp02/oracle/f1
1tappl/mcm/integration/bin/MCMLJ /usr/lib/crt0.o -L/fp01/app/oracle/product/8.0.6/lib/ -L/usr/local/lib/gcc-
lib/hppa2.0w-hp-hpux11.11/3.3.3 -L/fp01/app/oracle/product/8.0.6/network/jre11/lib/PA_RISC/native_threads -L
. -L/fp01/app/oracle/product/8.0.6/lib -L/usr/lib/Motif2.1 -L/usr/ccs/lib -L/usr/local/lib/gcc-lib/hppa2.0w-
hp-hpux11.11/3.3.3 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib -a default +s /fp02/oracle/f11tappl/mcm/in
tegration/lib/MCMLJ.o /fp02/oracle/f11tappl/mcm/integration/lib/libmcm.a /fp02/oracle/f11tappl/fnd/11.5.0/li
b/libfnd.a -lsql /fp01/app/oracle/product/8.0.6/lib/nautab.o /fp01/app/oracle/product/8.0.6/lib/naeet.o /fp0
1/app/oracle/product/8.0.6/lib/naect.o /fp01/app/oracle/product/8.0.6/lib/naedhs.o -lnetv2 -lnttcp -lnetwork
-lncr -lnetv2 -lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4
-lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lclient -lvsn -lcommon -lgeneric -lepc
-lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3
-lcore4 -lnlsrtl3 -l:libcl.a -l:librt.sl -lpthread -l:libnss_dns.1 -l:libdld.sl -l:libgcc.a -lm /fp01/app/or
acle/product/8.0.6/rdbms/lib/defopt.o /fp01/app/oracle/product/8.0.6/rdbms/lib/ssbbded.o -lgcc -lgcc_eh -lc
-lgcc -lgcc_eh
/usr/ccs/bin/ld: Unsatisfied symbols:
__main (first referenced in /fp02/oracle/f11tappl/mcm/integration/lib/MCMLJ.o) (code)
/usr/ccs/bin/ld: (Warning) Linker features were used that may not be supported in future releases. The +vall
compatwarnings option can be used to display more details, and the ld(1) man page contains additional inform
ation. This warning can be suppressed with the +vnocompatwarnings option.
collect2: ld returned 1 exit status
~
Can anyone help me?
THANKS!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 02:22 AM
05-25-2004 02:22 AM
Re: gcc __main unsatisfied symbol
try the basics first:
# cat >xx.c
int main (int argc, char *argv[])
{
return (0);
} /* main */
^D
# gcc -o xx xx.c
# ./xx
# echo $?
0
From your comments, I cannot see which object should define main (the program's entry point)
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 02:26 AM
05-25-2004 02:26 AM
Re: gcc __main unsatisfied symbol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 02:33 AM
05-25-2004 02:33 AM
Re: gcc __main unsatisfied symbol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 02:41 AM
05-25-2004 02:41 AM