Hi,
I have tried to compile lame-3.93 with gcc version 3.0.3 running OS/2 (actually
eCS).
I modified the OS/2 section of makefile.unix as below:
----
#########################################################################
# OS/2
##########################################################################
# Properly installed EMX runtime & development package is a prerequisite.
# tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13
#
##########################################################################
ifeq ($(UNAME),OS/2)
SHELL=sh
CC = gcc
CC_OPTS = -O3 -D__OS2__
PGM = lame.exe
LIBS =
RANLIB = touch
# I use the following for slightly better performance on my Pentium-II
# using pgcc-2.91.66:
# CC_OPTS = -O6 -ffast-math -funroll-loops -mpentiumpro -march=pentiumpro
-D__OS2__
# for the unfortunates with a regular pentium (using pgcc):
# CC_OPTS = -O6 -ffast-math -funroll-loops -mpentium -march=pentium -D__OS2__
CC_OPTS = -O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2
-malign-functions=2 -s -D__OS2__
# Comment out next 2 lines if you want to remove VBR histogram capability
# BRHIST_SWITCH = -DBRHIST -DHAVE_TERMCAP -DHAVE_{NCURSES_}TERMCAP_H
# LIBTERMCAP = -lncurses
# Uncomment & inspect the 2 GTK lines to use MP3x GTK frame analyzer.
# Properly installed XFree86/devlibs & GTK+ is a prerequisite.
# The following works for me using Xfree86/OS2 3.3.5 and GTK+ 1.2.3:
# GTK = -DHAVE_GTK -IC:/XFree86/include/gtk12 -Zmt -D__ST_MT_ERRNO__
-IC:/XFree86/include/glib12 -IC:/XFree86/include
# GTKLIBS = -LC:/XFree86/lib -Zmtd -Zsysv-signals -Zbin-files -lgtk12 -lgdk12
-lgmodule -lglib12 -lXext -lX11 -lshm -lbsd -lsocket -lm
endif
---
It ends with the following message:
---
gcc -O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2
-s -D__OS2__ -o frontend/lame.exe frontend/main.o frontend/amiga_mpega.o front
end/brhist.o frontend/get_audio.o frontend/lametime.o frontend/parse.o frontend/
portableio.o frontend/timestatus.o \
libmp3lame/libmp3lame.a \
ld: failure reading string table size of frontend/amiga_mpega.o
make: *** [frontend/lame.exe] Error 1
---
As amiga_mpega.o seemed to be the problem I removed the following line from
makefile.unix:
frontend_sources = \
frontend/amiga_mpega.c \ <--- removed this line
After this lame compiles and seems to work well. However, I have three
questions:
1. Why does the error with amiga_mpega.o happen?
2. What can be done about it?
3. Did I brake something important by removing 'frontend/amiga_mpega.c \' from
the makefile?
Kind regards,
--
Roger Troost
Polarbar / eComStation
_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder