[vorbis] AIX + ogg123

dopp at acm.cs.umn.edu dopp at acm.cs.umn.edu
Fri Dec 15 10:40:35 PST 2000



Has anyone managed to get ogg123 to compile in AIX?  I'm got an RS6k with a
PPC 604e, running AIX 4.3.3.  I can get libogg, libvorbis, libao, oggenc
(so, everything _but_ ogg123) to compile just fine.  I'm using gcc,
thankfully, and not the native IBM compilers.  I believe the problem to be
with the linker.  By default gcc for AIX doesn't use the GNU linker, but
the standard AIX linker.  I'm using the beta 3 source tar-ball. I've tried
the CVS source as well, but had no luck.  Here are some errors:

This happens with just a straight "make" (I'm using GNU make):

gcc -DPACKAGE=\"vorbis-tools\" -DVERSION=\"1.0beta3\"  -I. -I.
-I/home/xxxx/xxxx/arch/AIX/include -I/home/xxxx/xxxx/arch/AIX/include
-I/home/xxxx/xxxx/arch/AIX/include     -c ogg123.c
ogg123.c:37: getopt.h: A file or directory in the path name does not exist.
gmake: *** [ogg123.o] Error 1

/home/xxxx/xxxx/arch/AIX/include is the directory where the
lib{ogg,vorbis,ao} headers reside.

Obviously, it can't find getopt.h.  It seems that the oggenc source has
it's own getopt.h included, yet the ogg123 source does not. AIX does not
have getopt.h by default (unlike Linux, I noticed).

So, I copied oggenc/getopt.h into the ogg123 source dir and tried again.
Not likely to work, and, well, it didn't.

gcc -DPACKAGE=\"vorbis-tools\" -DVERSION=\"1.0beta3\"  -I. -I.
-I/home/xxxx/xxxx/arch/AIX/include -I/home/xxxx/xxxx/arch/AIX/include
-I/home/xxxx/xxxx/arch/AIX/include     -c ogg123.c
ogg123.c: In function `get_default_device':
ogg123.c:176: `NAME_MAX' undeclared (first use in this function)
ogg123.c:176: (Each undeclared identifier is reported only once
        ogg123.c:176: for each function it appears in.)
gmake: *** [ogg123.o] Error 1

NAME_MAX is indeed, not declared in ogg123.c, leading me to believe it's
suppose to exist in the missing getopt.h header file...  So I tried just
declaring it as 128 to what would happen:

diff ogg123.c ogg123.c.old 
171c171
< int NAME_MAX = 128;

---
> 

Chaos ensues:

gcc -DPACKAGE=\"vorbis-tools\" -DVERSION=\"1.0beta3\"  -I. -I.
-I/home/xxxx/xxxx/arch/AIX/include -I/home/xxxx/xxxx/arch/AIX/include
-I/home/xxxx/xxxx/arch/AIX/include     -c ogg123.c
/bin/sh ../libtool --mode=link gcc    -o ogg123
-L/home/xxxx/xxxx/arch/AIX/lib -logg -L/home/xxxx/xxxx/arch/AIX/lib
-lvorbis -lm -lvorbisfile -L/home/xxxx/xxxx/arch/AIX/lib -lao -ldl ogg123.o  
mkdir .libs
gcc -o ogg123 -L/home/xxxx/xxxx/arch/AIX/lib -logg
-L/home/xxxx/xxxx/arch/AIX/lib -lvorbis -lm -lvorbisfile
-L/home/xxxx/xxxx/arch/AIX/lib -lao -ldl ogg123.o
ld: 0711-224 WARNING: Duplicate symbol: .strcmp
ld: 0711-224 WARNING: Duplicate symbol: strcmp
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-317 ERROR: Undefined symbol: .getopt_long
collect2: ld returned 8 exit status
gmake: *** [ogg123] Error 1

So, it produced the object file, but the linker is now complaining and
ogg123 wasn't created.  Anyway, I'm not a C programmer, so I'm not sure how
to proceed next.

If anyone has gotten this compiled, please, please, please tell me how :)
Any insight would also be greatly appreciated.  Ogg sounds so much better
than mp3 that I want to fully convert, but I need to be able to listen to
music on the RS6k on my desk to be completely free from mp3 :)

TIA,

Gabe

-- 
--------------------------------------------------------------------------------
Gabe Turner				       |  	   X-President,
UNIX Systems Administrator,		       | Assoc. for Computing Machinery
U of M Supercomputing Institute for	       |    University of Minnesohta
Digital Simulation and Advanced Computation    |       dopp at acm.cs.umn.edu

"Look!  It's my magic nose goblins!" -- Stimpy
"I finally get a good look at 'em!" -- Sven
				- Stimpson J. Cat and Sven Hoek in "Sven Hoek"
--------------------------------------------------------------------------------

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis mailing list