vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm trying to port netperf4: http://www.netperf.org/svn/netperf4/...glib_migration to AIX. I happen to have access to a system running 5.3 with: # what `which cc` /usr/vac/bin/cc: 61 1.14 src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos510 7/11/00 12:04:14 IBM XL C/C++ Enterprise Edition V7.0 5724-I11 Licensed Materials - Property of IBM IBM XL C/C++ Enterprise Edition V7.0 5724-I11 (C) Copyright IBM Corp. 1990, 2004, and by others. All Rights Reserved. IBM is a trademark or registered trademark of International Business Machines Corp. in the U.S., other countries or both. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Version: 07.00.0000.0000 Level: 040805, 2004/08/05 18:40:13 I have downloaded and installed a number of RPMs from the Bull freeware site for GNOME 2.12 to satisfy netperf4's dependency on libxml2 and glib-2.0: # rpm -qa cdrecord-1.9-4 mkisofs-1.13-4 AIX-rpm-5.3.0.0-1 wget-1.9.1-1 pkg-config-0.19-2 gettext-0.10.40-5 glib2-2.8.1-2 glib2-devel-2.8.1-2 intltool-0.34.1-1 zlib-1.2.3-1 libxml2-2.6.21-1 zlib-devel-1.2.3-1 libxml2-devel-2.6.21-1 (There are some in the list that were already installed and not part of the dependency chain started by netperf4) and then configured netperf4 and tried to build it but the compiler became rather unhappy: Making all in src source='nettest_bsd.c' object='nettest_bsd.lo' libtool=yes depfile='.deps/nettest_bsd.Plo' tmpdepfile='.deps/nettest_bsd.TPlo' depmode=aix /bin/sh ../depcomp /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR="\"/usr/local/lib\"" -DNETPERFDIR="\"/usr/local/share/netperf\"" -D_THREAD_SAFE -I/opt/freeware/include/libxml2 -I/opt/freeware/include/glib-2.0 -I/opt/freeware/lib/glib-2.0/include -c -o nettest_bsd.lo `test -f 'nettest_bsd.c' || echo './'`nettest_bsd.c cc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR=\"/usr/local/lib\" -DNETPERFDIR=\"/usr/local/share/netperf\" -D_THREAD_SAFE -I/opt/freeware/include/libxml2 -I/opt/freeware/include/glib-2.0 -I/opt/freeware/lib/glib-2.0/include -c -M nettest_bsd.c -DPIC -o .libs/nettest_bsd.o "/opt/freeware/include/glib-2.0/glib/gutils.h", line 239.15: 1506-277 (S) Syntax error: possible missing ';' or ','? "/opt/freeware/include/glib-2.0/glib/gutils.h", line 249.3: 1506-046 (S) Syntax error. "/opt/freeware/include/glib-2.0/glib/gutils.h", line 237.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for inline. which seems to correspond to some issue with "G_INLINE_FUNC" I'm not sure if the "problem" is in the glib bits, or in the compiler - perhaps I'm using too old a compiler? I've heard that one has to be cognizant of the name by which one invokes the compiler? Any gentle taps with a nerf cluebat would be most welcome, rick jones -- The computing industry isn't as much a game of "Follow The Leader" as it is one of "Ring Around the Rosy" or perhaps "Duck Duck Goose." - Rick Jones these opinions are mine, all mine; HP might not want them anyway... feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... |
| |||
| Dave <dacooley@gmail.com> wrote: > You might try GCC for a compiler... > It is "Gnu aware" and may be more compatible with the libs etc you > downloaded If I can avoid it I really don't want to force anyone to use a specific compiler, and rather like BIND, I want to be able to compile netperf4 with the "platform" compiler. The idea is to have portable code. And besides I have gcc exposure for netperf4 already via Linux and OSX. I've experimented a bit and found that saying: CC=xlc ./configure makes things rather happier trying to compile netperf4 than when it was I suspect just defaulting to "cc". There were some issues with DNS defines but I've worked-around those and am now in the process of learning dbx to debug some core dumps I'm getting. rick jones -- portable adj, code that compiles under more than one compiler these opinions are mine, all mine; HP might not want them anyway... feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... |
| ||||
| Rick Jones <rick.jones2@hp.com> wrote: > makes things rather happier trying to compile netperf4 than when it > was I suspect just defaulting to "cc". There were some issues with > DNS defines but I've worked-around those and am now in the process of > learning dbx to debug some core dumps I'm getting. Which it seems stemmed from a library my program dlopened (via g_module_open) wanting to call a function in the main program by name. This I have learned is "problematic" under AIX (and Windows and OpenVMS as it turns-out) and one needs to call via a function pointer. So, between that, and finding I should use xlc_r since the application is threaded, there is now a mostly working, synchronized, multi-system, multiple-connection, multi-threaded netperf4 for AIX (5.3 anyway) http://www.netperf.org/svn/netperf4/...glib_migration rick jones -- firebug n, the idiot who tosses a lit cigarette out his car window these opinions are mine, all mine; HP might not want them anyway... feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... |