Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.porting > #234

Re: Problems building unzip 6.10b

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.netfront.net!not-for-mail
From Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com>
Newsgroups comp.os.os2.programmer.porting
Subject Re: Problems building unzip 6.10b
Date Tue, 04 Jun 2013 13:21:00 -0400
Organization Netfront http://www.netfront.net/
Lines 95
Message-ID <kol7lu$141j$1@adenine.netfront.net> (permalink)
References <kodd9t$2fhs$1@adenine.netfront.net> <51aab7c9$0$1639$c3e8da3$5d8fb80f@news.astraweb.com> <kojqea$8bu$1@adenine.netfront.net> <51ad8e39$0$31577$c3e8da3$cc4fe22d@news.astraweb.com>
NNTP-Posting-Host 50.73.8.217
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Trace adenine.netfront.net 1370366462 36915 50.73.8.217 (4 Jun 2013 17:21:02 GMT)
X-Complaints-To news@netfront.net
NNTP-Posting-Date Tue, 4 Jun 2013 17:21:02 +0000 (UTC)
User-Agent Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.12) Gecko/20130108 Firefox/10.0.12 SeaMonkey/2.7.2
In-Reply-To <51ad8e39$0$31577$c3e8da3$cc4fe22d@news.astraweb.com>
Xref csiph.com comp.os.os2.programmer.porting:234

Show key headers only | View raw


On 06/04/13 02:50 am, Dave Yeo thus wrote :
> Lewis Rosenthal wrote:
>> Okay, so here's my progress:
>>
>> I was able to build it - once - (thanks again, so much, Dave).
>>
>> However, after cleaning everything out and starting over, I get (watch
>> the line breaks - I've added "\" where I saw them):
>>
>> # make -f os2/makefile.os2 D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \
>> LIBBZ2=bzip2/libbz2.a gcc
>> make -f os2/makefile.os2 all \
>>          CC="gcc -Zomf -O -I." \
>>          CFLAGS="-Wall -DOS2 -DASM_CRC -DWILD_STOP_AT_DIR -DOS2_EAS \
>> -DASM_CRC -DUSE_BZIP2 -DBZIP2_SFX -DUNICODE_SUPPORT" \
>>          NFLAGS="" \
>>          DLLFLAG="" \
>>          AS="gcc -Zomf" \
>>          ASFLAGS="-Di386" \
>>          LDFLAGS="-o ./" \
>>          LDFLAGS2="-s" \
>>          OUT="-o" \
>>          OBJ=".o" \
>>          CRCA_O="crc_gcc.obj" \
>>          DEF="os2/unzip.def"
>> make.exe[1]: Entering directory `J:/devel/unzip610b'
>> gcc -Zomf -O -I. -c -Wall -DOS2 -DASM_CRC -DWILD_STOP_AT_DIR \ -DOS2_EAS
>> -DASM_CRC -DUSE_BZIP2 -DBZIP2_SFX -DUNICODE_SUPPORT  unzip.c
>> unzip.c: In function 'get_shortopt':
>> unzip.c:3986: warning: implicit declaration of function 'isdigit'
>> gcc -Zomf -O -I. -c -Wall -DOS2 -DASM_CRC -DWILD_STOP_AT_DIR \ -DOS2_EAS
>> -DASM_CRC -DUSE_BZIP2 -DBZIP2_SFX -DUNICODE_SUPPORT  crc32.c
>> make.exe[1]: *** No rule to make target `crc_gcc.obj', needed by \
>> `unzip.exe'.  Stop.
>> make.exe[1]: Leaving directory `J:/devel/unzip610b'
>> make: *** [gcc] Error 2
>>
>> I'm not sure how I got it to work before, but it's possible that
>> crc_gcc.obj was generated before I applied your changes, and it was a
>> leftover.
>>
>> Sorry to be such a pain (and a newbie). Thanks again for all of the help
>> and guidance.
> 
> Using your command line except I used bz2_s.a instead of libbz2.a to
> build static seemed to have worked fine here. Bedtime so all I did was
> test that it didn't crash. For distributing a static linked bz2 seems
> better
>
I agree, and a static build is what I'm looking to do.

So, then, just so that I can follow this, how would I know that bz2_s.a
is the static lib? I thought that all I needed to do was state that I
wanted to statically link libbz2.a.

Insofar as missing that .obj -> .o change... I've got:

# emx, gcc, OMF format, statically linked C runtime
gcc:
	$(MAKE) -f os2/makefile.os2 all \
	CC="gcc -Zomf -O -I." \
	CFLAGS="-Wall -DOS2 -DASM_CRC $(LOCAL_UNZIP)" \
	NFLAGS="" \
	DLLFLAG="" \
	AS="gcc -Zomf" \
	ASFLAGS="-Di386" \
	LDFLAGS="-o ./" \
	LDFLAGS2="-s" \
	OUT="-o" \
	OBJ=".o" \
	CRCA_O="crc_gcc.obj" \
	DEF="os2/unzip.def"

and I am specifying gcc as the target. Is it the CRCA_O="crc_gcc.obj"
which is causing a conflict and I need to change that to crc_gcc.o?
Ugh... Never mind; that was it (forest & trees issue).

Getting back to the bz2_s.a thing: Cold you please enlighten me as to
where you got that? My understanding was that all I needed to do WRT
bzip2 was to "dump" the sources into bzip2\ and specify the option and
modify the make line, referencing the library. Clearly, I'm missing
something else.

Thanks again, Dave!!

-- 
Lewis
-------------------------------------------------------------
Lewis G Rosenthal, CNA, CLP, CLE, CWTS
Rosenthal & Rosenthal, LLC                www.2rosenthals.com
Need a managed Wi-Fi hotspot?                www.hautspot.com
visit my IT blog                www.2rosenthals.net/wordpress
-------------------------------------------------------------

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---

Back to comp.os.os2.programmer.porting | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-01 14:07 -0400
  Re: Problems building unzip 6.10b Dave Yeo <dave.r.yeo@gmail.com> - 2013-06-01 12:07 -0700
  Re: Problems building unzip 6.10b "Andy" <abwillis1@yahoo.com> - 2013-06-01 23:30 +0000
    Re: Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-01 22:12 -0400
      Re: Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-01 22:41 -0400
        Re: Problems building unzip 6.10b Dave Yeo <dave.r.yeo@gmail.com> - 2013-06-01 20:12 -0700
  Re: Problems building unzip 6.10b Dave Yeo <dave.r.yeo@gmail.com> - 2013-06-01 20:10 -0700
    Re: Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-03 22:28 -0400
    Re: Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-04 00:28 -0400
      Re: Problems building unzip 6.10b Dave Yeo <dave.r.yeo@gmail.com> - 2013-06-03 23:28 -0700
      Re: Problems building unzip 6.10b Dave Yeo <dave.r.yeo@gmail.com> - 2013-06-03 23:50 -0700
        Re: Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-04 13:21 -0400
          Re: Problems building unzip 6.10b Dave Yeo <dave.r.yeo@gmail.com> - 2013-06-04 19:33 -0700
            Re: Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-05 01:18 -0400
    Re: Problems building unzip 6.10b "Andy" <abwillis1@yahoo.com> - 2013-06-04 17:14 +0000
      Re: Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-04 13:23 -0400
        Re: Problems building unzip 6.10b "Andy" <abwillis1@yahoo.com> - 2013-06-04 20:50 +0000
          Re: Problems building unzip 6.10b Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2013-06-04 17:12 -0400

csiph-web