7.2.6  
Download Now
 
 

Sawmill Discussion Forum

Subject: "AIX compliation issue"     Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences Support Topic #3115
Reading Topic #3115
newton
Member since Sep-4-06
15 posts
Sep-11-06, 00:28 AM (PDT)
Click to EMail newton Click to send private message to newton Click to add this user to your buddy list  
"AIX compliation issue"
 
   On my AIX 5.2.0.0 system I am trying to compile Sawmill 7.2.6 using gcc 4.0.0 (the inbuilt XLC doesn't seem to be detected by configure).

Here is where I get errors with the make sawmill command:
-----------------------------------------------------------

if g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I./boost -I./gd -DSAWMILL -g -O2 -DUSE_BOOST_REGEXP -DBOOST_REGEX_NO_LIB -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -DNO_DLMALLOC -DNONDLL -MT sawmill-Sdff2c7bbecd28bcde2438f8d715e775f.o -MD -MP -MF ".deps/sawmill-pithreads.Tpo" -c -o sawmill-Sdff2c7bbecd28bcde2438f8d715e775f.o `test -f 'Sdff2c7bbecd28bcde2438f8d715e775f.cpp' || echo './'`Sdff2c7bbecd28bcde2438f8d715e775f.cpp; then mv -f ".deps/sawmill-pithreads.Tpo" ".deps/sawmill-Sdff2c7bbecd28bcde2438f8d715e775f.Po"; else rm -f ".deps/sawmill-pithreads.Tpo"; exit 1; fi
/opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/include/c++/cstdio:108: error: '::fgetpos' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/include/c++/cstdio:110: error: '::fopen' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/include/c++/cstdio:115: error: '::freopen' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/include/c++/cstdio:118: error: '::fsetpos' has not been declared
S7332e8532faaeaa08ece4ff68a5b4e2a.h:129: error: expected constructor, destructor, or type conversion before '&' token
Sf4ef2f8db3b109135bf2d8029ed4b1ad.h:97: error: expected constructor, destructor, or type conversion before '&' token
Sf9027807f2b8b1890da3dca95705e392.h:91: error: expected constructor, destructor, or type conversion before '&' token
S8e76d046821889c21b2dcb92ddd2083a.h:115: error: expected initializer before '<' token
S8e76d046821889c21b2dcb92ddd2083a.h:132: error: expected initializer before '<' token
S3c9f2d8996f495dd65a51e9543291871.h:87: error: expected constructor, destructor, or type conversion before '*' token
S3c9f2d8996f495dd65a51e9543291871.h: In constructor 'Sd9f39939feeaa904af4f90561173e1f3::Sd9f39939feeaa904af4f90561173e1f3(const char*)':
S3c9f2d8996f495dd65a51e9543291871.h:373: error: 'cout' was not declared in this scope
S3c9f2d8996f495dd65a51e9543291871.h:373: error: 'endl' was not declared in this scope
S92df3f279e76ae542b23a66d07d3d1c9.h: At global scope:
S92df3f279e76ae542b23a66d07d3d1c9.h:129: error: expected constructor, destructor, or type conversion before '*' token
S92df3f279e76ae542b23a66d07d3d1c9.h:161: error: variable or field 'S407d8701150aaf2cd12ce8242827c16f' declared void
S92df3f279e76ae542b23a66d07d3d1c9.h:161: error: 'vector' was not declared in this scope
S92df3f279e76ae542b23a66d07d3d1c9.h:161: error: expected primary-expression before '>' token
S92df3f279e76ae542b23a66d07d3d1c9.h:162: error: 'S87dccb64767f4e48ed757f134021a882' was not declared in this scope
S92df3f279e76ae542b23a66d07d3d1c9.h:162: error: expected primary-expression before 'const'
S92df3f279e76ae542b23a66d07d3d1c9.h:162: error: expected primary-expression before 'const'
S92df3f279e76ae542b23a66d07d3d1c9.h:162: error: initializer expression list treated as compound expression
S92df3f279e76ae542b23a66d07d3d1c9.h:237: error: 'vector' has not been declared
S92df3f279e76ae542b23a66d07d3d1c9.h:237: error: expected ',' or '...' before '<' token
S92df3f279e76ae542b23a66d07d3d1c9.h:239: error: 'vector' has not been declared
S92df3f279e76ae542b23a66d07d3d1c9.h:239: error: expected ',' or '...' before '<' token
S92df3f279e76ae542b23a66d07d3d1c9.h:243: error: 'vector' has not been declared
S92df3f279e76ae542b23a66d07d3d1c9.h:243: error: expected ',' or '...' before '<' token
Sbd2f27207d8c8b128a43c0d2c8aa11a2.h:78: error: expected initializer before '<' token
S238c40aea860fbf4037875c83b7b4b30.h:151: error: 'ostream' has not been declared
S604a96a5a164c9f2cac79744755a81d8.h:132: error: ISO C++ forbids declaration of 'map' with no type
S604a96a5a164c9f2cac79744755a81d8.h:132: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:135: error: ISO C++ forbids declaration of 'ostream' with no type
S604a96a5a164c9f2cac79744755a81d8.h:135: error: expected ';' before '*' token
S604a96a5a164c9f2cac79744755a81d8.h:135: error: ISO C++ forbids declaration of 'ostream' with no type
S604a96a5a164c9f2cac79744755a81d8.h:136: error: expected ';' before '*' token
S604a96a5a164c9f2cac79744755a81d8.h:139: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:139: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:144: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:144: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:149: error: 'Sbd2f27207d8c8b128a43c0d2c8aa11a2' does not name a type
S604a96a5a164c9f2cac79744755a81d8.h:151: error: 'Sbd2f27207d8c8b128a43c0d2c8aa11a2' does not name a type
S604a96a5a164c9f2cac79744755a81d8.h:154: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:154: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:154: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:154: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:156: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:156: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:157: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:157: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:159: error: ISO C++ forbids declaration of 'list' with no type
S604a96a5a164c9f2cac79744755a81d8.h:159: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:160: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:160: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:170: error: ISO C++ forbids declaration of 'map' with no type
S604a96a5a164c9f2cac79744755a81d8.h:170: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:173: error: ISO C++ forbids declaration of 'map' with no type
S604a96a5a164c9f2cac79744755a81d8.h:173: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:176: error: ISO C++ forbids declaration of 'list' with no type
S604a96a5a164c9f2cac79744755a81d8.h:176: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:199: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:199: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:201: error: ISO C++ forbids declaration of 'map' with no type
S604a96a5a164c9f2cac79744755a81d8.h:201: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:205: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:205: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:208: error: ISO C++ forbids declaration of 'ostream' with no type
S604a96a5a164c9f2cac79744755a81d8.h:209: error: expected ';' before '*' token
S604a96a5a164c9f2cac79744755a81d8.h:218: error: ISO C++ forbids declaration of 'set' with no type
S604a96a5a164c9f2cac79744755a81d8.h:218: error: expected ';' before '<' token
S604a96a5a164c9f2cac79744755a81d8.h:221: error: ISO C++ forbids declaration of 'vector' with no type
S604a96a5a164c9f2cac79744755a81d8.h:221: error: expected ';' before '<' token
S219303b0651c6b1b3be69064386b2080.h:153: error: ISO C++ forbids declaration of 'vector' with no type
S219303b0651c6b1b3be69064386b2080.h:153: error: expected ';' before '<' token
S219303b0651c6b1b3be69064386b2080.h:154: error: ISO C++ forbids declaration of 'vector' with no type
S219303b0651c6b1b3be69064386b2080.h:154: error: expected ';' before '<' token
S219303b0651c6b1b3be69064386b2080.h:165: error: ISO C++ forbids declaration of 'vector' with no type
S219303b0651c6b1b3be69064386b2080.h:165: error: expected ';' before '<' token
S219303b0651c6b1b3be69064386b2080.h:166: error: ISO C++ forbids declaration of 'vector' with no type
S219303b0651c6b1b3be69064386b2080.h:166: error: expected ';' before '<' token
S219303b0651c6b1b3be69064386b2080.h:190: error: ISO C++ forbids declaration of 'list' with no type
S219303b0651c6b1b3be69064386b2080.h:190: error: expected ';' before '<' token
S219303b0651c6b1b3be69064386b2080.h:217: error: ISO C++ forbids declaration of 'ostream' with no type
S219303b0651c6b1b3be69064386b2080.h:218: error: expected ';' before '*' token
S219303b0651c6b1b3be69064386b2080.h:219: error: ISO C++ forbids declaration of 'ostream' with no type
S219303b0651c6b1b3be69064386b2080.h:220: error: expected ';' before '*' token
S219303b0651c6b1b3be69064386b2080.h:221: error: ISO C++ forbids declaration of 'list' with no type
S219303b0651c6b1b3be69064386b2080.h:221: error: expected ';' before '<' token
S219303b0651c6b1b3be69064386b2080.h:222: error: ISO C++ forbids declaration of 'vector' with no type
S219303b0651c6b1b3be69064386b2080.h:222: error: expected ';' before '<' token
S219303b0651c6b1b3be69064386b2080.h:223: error: ISO C++ forbids declaration of 'ostream' with no type
S219303b0651c6b1b3be69064386b2080.h:223: error: expected ';' before '*' token
S219303b0651c6b1b3be69064386b2080.h:248: error: ISO C++ forbids declaration of 'vector' with no type
S219303b0651c6b1b3be69064386b2080.h:248: error: expected ';' before '<' token
Sdff2c7bbecd28bcde2438f8d715e775f.cpp: In function 'void* S70e2c31a43988fcb6ddb6f326cff3c99(S3c8b517513114d3254a690e3d87d6556&, void (*)(void*), int, void*)':
Sdff2c7bbecd28bcde2438f8d715e775f.cpp:197: error: 'class S3c8b517513114d3254a690e3d87d6556' has no member named 'Sd1d81fac5aeeaddd9d43e2ef39732c4a'
make: 1254-004 The error code from the last command is 1.


-----------------------------------------------------------

Any ideas?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top

 
Conferences | Topics | Previous Topic | Next Topic
newton
Member since Sep-4-06
15 posts
Sep-11-06, 11:00 PM (PDT)
Click to EMail newton Click to send private message to newton Click to add this user to your buddy list  
1. "RE: AIX compliation issue"
In response to message #0
 
   Dear Sawmill team,
Any ideas, what could be wrong?

I have another option to use Ubuntu on PPC4, but if I would prefer to get Sawmill running on AIX 5.2.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
dgilmoreadmin
Member since Nov-18-04
1833 posts
Sep-12-06, 04:17 PM (PDT)
Click to EMail dgilmore Click to send private message to dgilmore Click to view user profileClick to add this user to your buddy list Click to send message via AOL IM  
2. "RE: AIX compliation issue"
In response to message #1
 
I have forwarded this to development, you will hear back shortly.

David
Sawmill Product Support Team
support@flowerfire.com


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
ferraradmin
Member since Sep-5-01
3151 posts
Sep-13-06, 04:45 PM (PDT)
Click to EMail ferrar Click to send private message to ferrar Click to view user profileClick to add this user to your buddy list  
3. "RE: AIX compliation issue"
In response to message #2
 
It's hard to say what the issue is, from just the g++ error messages. Can you also post the output of "configure"?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
newton
Member since Sep-4-06
15 posts
Sep-13-06, 11:30 PM (PDT)
Click to EMail newton Click to send private message to newton Click to add this user to your buddy list  
4. "RE: AIX compliation issue"
In response to message #3
 
   Here you go:
----------------------------------------------------
checking build system type... powerpc-ibm-aix5.2.0.0
checking host system type... powerpc-ibm-aix5.2.0.0
checking target system type... powerpc-ibm-aix5.2.0.0
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether we are building with MinGW... no
checking whether the C++ compiler can handle regexp library... yes
checking for mysql_config... no
checking for MYSQL... no
checking whether MySQL GPL databases are allowed... yes
checking for main in -lpthread... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking socketbits.h usability... no
checking socketbits.h presence... no
checking for socketbits.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking size_t.h usability... no
checking size_t.h presence... no
checking for size_t.h... no
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking iostream.h usability... yes
checking iostream.h presence... yes
checking for iostream.h... yes
checking fstream usability... yes
checking fstream presence... yes
checking for fstream... yes
checking fstream.h usability... yes
checking fstream.h presence... yes
checking for fstream.h... yes
checking utility usability... yes
checking utility presence... yes
checking for utility... yes
checking algorithm usability... yes
checking algorithm presence... yes
checking for algorithm... yes
checking stat.h usability... no
checking stat.h presence... no
checking for stat.h... no
checking for sys/types.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for sys/stat.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking cstdio usability... yes
checking cstdio presence... yes
checking for cstdio... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for string.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for unistd.h... (cached) yes
checking for limits.h... (cached) yes
checking for float.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking net/if_arp.h usability... no
checking net/if_arp.h presence... yes
checking for net/if_arp.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/termios.h usability... no
checking sys/termios.h presence... no
checking for sys/termios.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking map usability... yes
checking map presence... yes
checking for map... yes
checking vector usability... yes
checking vector presence... yes
checking for vector... yes
checking semphore.h usability... no
checking semphore.h presence... no
checking for semphore.h... no
checking for cstdio... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking streambuf usability... yes
checking streambuf presence... yes
checking for streambuf... yes
checking streambuf.h usability... yes
checking streambuf.h presence... yes
checking for streambuf.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sstream usability... yes
checking sstream presence... yes
checking for sstream... yes
checking sstream.h usability... no
checking sstream.h presence... no
checking for sstream.h... no
checking strstream.h usability... no
checking strstream.h presence... no
checking for strstream.h... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for the pthreads library -lpthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking for cc_r... gcc
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for vprintf... yes
checking for _doprnt... yes
checking for re_comp... yes
checking for regcomp... yes
checking for strerror... yes
checking for strstr... yes
checking for nanosleep... yes
checking for usleep... yes
checking for localtime_t... no
checking for getdomainname... yes
checking for bzero... yes
checking for pthread_attr_setschedparam... yes
checking for wait3... yes
checking for waitpid... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for stat64... yes
checking for fopen64... yes
checking for library containing socket... none required
checking for library containing nanosleep... none required
checking for library containing gethostbyname... none required
checking for library containing iconv... -liconv
checking for library containing sem_init... none required
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether getdomainname() is defined in unistd.h... no
checking whether nan() works... yes
checking whether nanosleep() is defined in time.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... 1
checking whether the C++ compiler supports namespaces... no
checking whether the third parameter to accept() is socklen_t... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

This is the end of the config output. Additionally I also get some warnings on screen. These are:

configure: WARNING: net/if_arp.h: present but cannot be compiled
configure: WARNING: net/if_arp.h: check for missing prerequisite headers?
configure: WARNING: net/if_arp.h: see the Autoconf documentation
configure: WARNING: net/if_arp.h: section "Present But Cannot Be Compiled"
configure: WARNING: net/if_arp.h: proceeding with the preprocessor's result
configure: WARNING: net/if_arp.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
/bin/sh: ./config.rpath: not found

------------------------------------------------------------------
I am not sure, if there is something that I need to fix at my end. Note that this is a fresh installation of AIX. Also, I don't have any experience with AIX or compilation as such.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
ferraradmin
Member since Sep-5-01
3151 posts
Sep-15-06, 01:10 PM (PDT)
Click to EMail ferrar Click to send private message to ferrar Click to view user profileClick to add this user to your buddy list  
5. "RE: AIX compliation issue"
In response to message #4
 
This is the key line:

checking whether the C++ compiler supports namespaces... no

Your C++ compiler surely supports namespaces, so this strongly suggests something is going wrong with running compiled C++ programs. This is probably a library path issue. Make sure the environment variable LD_LIBRARY_PATH contains the location of the libstdc++.so file, which might be in /usr/local/lib; if it is, this command will do it for bash:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

and this will do for csh:

setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib

If you do that, does configure say that the compiler supports namespaces? If so, does it build successfully?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
newton
Member since Sep-4-06
15 posts
Sep-18-06, 03:10 AM (PDT)
Click to EMail newton Click to send private message to newton Click to add this user to your buddy list  
6. "RE: AIX compliation issue"
In response to message #5
 
   Thanks Ferrar for continuing to work with me.

My knowledge of compiling programs is limited as such.
But what I could figure out so far is:
1. AIX doesn't use LD_LIBRARY_PATH. It used LIBPATH
2. The libstdc++.so doesn't exist by itself, rather it is part of libstdc++.a and this file is present in /opt/freeware/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/libstdc++.a


So, I tried quite a few things based on your suggestions.

I tried to put the /opt/...../4.0.0 in my LIBPATH variable
I copied the libstdc++.a into /usr/lib
I made a soft link /usr/lib/libstdc++.so > the libstdc++.a in the /opt directory.
Each time I have tried to configure and make, and each time the namespaces line says NO.

There was no /usr/local directory by default, I created it with a soft link to /usr since there is a lib directory within /usr

I am sending you my config.log (that should probably contain more information) via email.

Please let me know if there is something else that I could try.

The only suggestion that I could get from elsewhere (for the namespaces problem) is to compile gcc from source, but I am sure there would be other issues that I might land into with that.


>This is the key line:
>
> checking whether the C++ compiler supports namespaces...
>no
>
>Your C++ compiler surely supports namespaces, so this
>strongly suggests something is going wrong with running
>compiled C++ programs. This is probably a library path
>issue. Make sure the environment variable LD_LIBRARY_PATH
>contains the location of the libstdc++.so file, which might
>be in /usr/local/lib; if it is, this command will do it for
>bash:
>
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
>
>and this will do for csh:
>
> setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib
>
>If you do that, does configure say that the compiler
>supports namespaces? If so, does it build successfully?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
ferraradmin
Member since Sep-5-01
3151 posts
Sep-19-06, 01:05 PM (PDT)
Click to EMail ferrar Click to send private message to ferrar Click to view user profileClick to add this user to your buddy list  
7. "RE: AIX compliation issue"
In response to message #6
 
Would it be possible for you to provide remote access (SSH) to that server? I could probably track down the problem pretty quickly if I had shell access. If that's not possible, we can continue to do it through here. If remote access is possible, you can email access information to support@sawmill.net or phone it in to +1-831-425-1758.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
newton
Member since Sep-4-06
15 posts
Sep-20-06, 10:47 AM (PDT)
Click to EMail newton Click to send private message to newton Click to add this user to your buddy list  
8. "RE: AIX compliation issue"
In response to message #7
 
   Remote access is possible, but would take some time.

Meanwhile, if we could explore some other options to get this working, then it would be really great.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
ferraradmin
Member since Sep-5-01
3151 posts
Sep-20-06, 05:37 PM (PDT)
Click to EMail ferrar Click to send private message to ferrar Click to view user profileClick to add this user to your buddy list  
9. "RE: AIX compliation issue"
In response to message #8
 
Okay, this may be a slow process, since I'm basically going to be dictating command lines to you, but here goes....

First, create a file named test.cpp containing these lines:

#include <iostream>
main() { std::cout << "Hello" << std::endl; }

Then run this command:

g++ test.cpp

and then run this command:

./a.out

Does the g++ command succeed, and if not, what are the errors? If the g++ command succeeds, does the a.out command succeed, and if so, what are the errors?

The first one compiles a basic C++ program, and the second one tries to run it. I suspect it will compile file, but will fail to run because it can't find libstdc++. If so, the next step is to show it where libstdc++ is.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
newton
Member since Sep-4-06
15 posts
Sep-21-06, 11:00 PM (PDT)
Click to EMail newton Click to send private message to newton Click to add this user to your buddy list  
10. "RE: AIX compliation issue"
In response to message #9
 
   Here is my test.cpp
-----------------------------------
#include <iostream>
main() {std::cout << "Hello" << std::endl;}
-----------------------------------

And here is the output of the g++ command.
----xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx----
# g++ test.cpp
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
ld: 0711-317 ERROR: Undefined symbol: std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status

----xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx----


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
ferraradmin
Member since Sep-5-01
3151 posts
Sep-24-06, 12:01 PM (PDT)
Click to EMail ferrar Click to send private message to ferrar Click to view user profileClick to add this user to your buddy list  
11. "RE: AIX compliation issue"
In response to message #10
 
Wow, it didn't even compile. Maybe that g++ really doesn't support namespaces. It would have to be mighty old. Which version of g++ is it ("g++ -v")?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
newton
Member since Sep-4-06
15 posts
Sep-24-06, 11:06 PM (PDT)
Click to EMail newton Click to send private message to newton Click to add this user to your buddy list  
12. "RE: AIX compliation issue"
In response to message #11
 
   GCC is the latest (4.0.0)


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
newton
Member since Sep-4-06
15 posts
Sep-27-06, 05:15 AM (PDT)
Click to EMail newton Click to send private message to newton Click to add this user to your buddy list  
13. "RE: AIX compliation issue"
In response to message #12
 
   I have removed AIX on my pseries and tried SuSE 10.1 on the same hardware (ppc). Have started another thread on the same.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top

Conferences | Topics | Previous Topic | Next Topic
 
 
Home    Lite    Professional    Enterprise    Samples    FAQ    Downloads    Purchase    Manual    Support    Contact Us
Copyright © 2006 by Flowerfire. Privacy Policy