LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-26-2007, 05:43 AM   #1
patilvidya
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Rep: Reputation: 0
Compiler warning on HP-UX 11.23 Itanium


Hi,
I downloaded apache 2.0.59 source and compiled and created package on HP-UX 11.23 Itanium box. The compiler throws so many warnings like:

cc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I/DE/SI/OvApacheA/build/HPUX11.22_IPF32/apache/a/srclib/apr-util/xml/expat/lib -I.. -I/DE/SI/OvApacheA/build/HPUX11.22_IPF32/apache/a/srclib/apr-util/xml/expat/lib -g -c xmltok.c -DPIC -o .libs/xmltok.o
"xmltok_impl.c", line 228: warning #2111-D: statement is unreachable
CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
^

"xmltok_impl.c", line 228: warning #2111-D: statement is unreachable
CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
^

"xmltok_impl.c", line 228: warning #2111-D: statement is unreachable
CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
^
"dir.c", line 193: warning #2068-D: integer conversion resulted in a change of sign
[1283] if (thedir->entry->DIRENT_INODE && thedir->entry->DIRENT_INODE != -1)

Any body aware of such warnings.I dont have idea whether it is platform specific or not?
Any System dependent file i need to check?

Any help is appreciated.
Thanks in advance.
 
Old 04-27-2007, 02:17 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,024
Blog Entries: 5

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
HP-UX has a default compiler designed only for recompiling the kernel. It isn't really a development C good for most apps. To get that you have to either buy the product HP sells (HP ANSI C or C++) or install gcc (GNU C Compiler). If you're not doing development on this box there's little reason to pay HP for their product so just download and use gcc. It works better with open source packages like Apache anyway as they were generally tested with gcc.

By the way - you don't have to compile a lot of open source stuff unless you really want to do so. You can get much of it as depots from HP at
http://software.hp.com
so you install it using swinstall.

Other packages can be gotten at the HP-UX Porting Center:
http://hpux.cs.utah.edu/

Last edited by MensaWater; 04-27-2007 at 02:19 PM.
 
Old 04-30-2007, 02:22 AM   #3
patilvidya
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks a lot for the reply.
Ok, i will download gcc and will try to compile apache with gcc.Hope this time i wont get the warnings.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
compiler warning! kalleanka Programming 3 07-13-2006 06:42 AM
LXer: Itanium Needs Linux, but Does Linux Need Itanium? LXer Syndicated Linux News 0 05-08-2006 07:04 PM
Itanium and 64-bit computers monohouse Linux - Hardware 3 12-18-2004 01:32 AM
Itanium 2 and Redhat sikandar Linux - Software 0 08-24-2003 06:10 AM


All times are GMT -5. The time now is 07:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration