Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Makefile mess-up (in QTFileLib)



Ok,

Thank you for your information and bug report.
A Makefile fix has been checked into the cvs top of tree. The fix removes the $(STDLIBCPP:.c=.o) and (STDLIBCPP:.c=.xo) expressions from the QTFileLib makefile. This removes the text file "../SafeStdLib/InternalStdLib.cpp" from the link.


You may need to wait a few hours for the opensource cvs repository to update before you can check the file out.

Below is the diff.
===================================================================
RCS file: /cvs/Darwin/src/live/StreamingServer/QTFileLib/Makefile.POSIX,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- Makefile.POSIX 2002/07/26 21:07:08 1.11
+++ Makefile.POSIX 2002/10/04 20:18:28 1.12
@@ -45,12 +45,12 @@


   all: libQTFileLib.a libQTFileExternalLib.a

-libQTFileLib.a: $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(STDLIBCPP:.c=.o) $(STDLIBCPP:.cpp=.o)
- ar -r libQTFileLib.a $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(STDLIBCPP:.c=.o) $(STDLIBCPP:.cpp=.o)
+libQTFileLib.a: $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(STDLIBCPP:.cpp=.o)
+ ar -r libQTFileLib.a $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(STDLIBCPP:.cpp=.o)
ranlib libQTFileLib.a


-libQTFileExternalLib.a: $(CFILES:.c=.xo) $(CPPFILES:.cpp=.xo) $(STDLIBCPP:.c=.xo) $(STDLIBCPP:.cpp=.xo)
- ar -r libQTFileExternalLib.a $(CFILES:.c=.xo) $(CPPFILES:.cpp=.xo) $(STDLIBCPP:.c=.xo) $(STDLIBCPP:.cpp=.xo)
+libQTFileExternalLib.a: $(CFILES:.c=.xo) $(CPPFILES:.cpp=.xo) $(STDLIBCPP:.cpp=.xo)
+ ar -r libQTFileExternalLib.a $(CFILES:.c=.xo) $(CPPFILES:.cpp=.xo) $(STDLIBCPP:.cpp=.xo)
ranlib libQTFileExternalLib.a





john

On Friday, October 4, 2002, at 04:50 AM, Peter Eisch wrote:

The excerpt presented is what Buildit generates.  It appears that the
gnu-based ld doesn't care while ld's from other OS' do care.  Here, for
example is what is in the lib as the Buildit script generates:

Copy/paste from my emacs buffer:
Buffers Files Tools Edit Search Mule Help
^@^A^B^@^@\200^@^@^@^A^B^@^@\210^@^@^@^A^B^@^@\214^@^@^@^A^B^@^@\220^@^ @^@^A
^B^@^@\23\
0^@^@^@^A^B^@^@\234^@^@^@^A^B^@^@
^@^@^@^A^B^@^@(^@^@^@^A^B^@^@,^@^@^@^A^B^@^@0^@^@^@\
^A^B^@^@^L^@^@^@^A'^@^@
^@^@^@^A^B^@^@L^@^@^@^A^B^@^@t^@^@^@^A^B^@^@?^@^@^A^B^@^@^L\
^A^@^@^A^B^@^@,^A^@^@^A^T^@^@P^A^@^@^A^U^@^@t^A^@^@^A^V^@^@\220^A^@^@^A ^W^@^
@,^A^@^@^\
A^Z^@^@?A^@^@^A^[^@^@?^@^@^A^\^@^@^L^B^@^@^A^]^@^@(^B^@^@^A^^^@^@D^B^@^ @^A^_
^@^@h^\
B^@^@^A
^@^@\220^B^@^@^A!^@^@0^B^@^@^A"^@^@?B^@^@^A#^@^@?^@^@^A$^@^@^D^C^@^@^A% ^@^\
@ ^C^@^@^A&^@^@<^C^@^@^A^B^@^@d^C^@^@^A^B^@^@/28 1020480591 500
500 \
100664 3818 `
/*
*
* @APPLE_LICENSE_HEADER_START@
*
* Copyright (c) 1999-2001 Apple Computer, Inc. All Rights Reserved. The
* contents of this file constitute Original Code as defined in and are
* subject to the Apple Public Source License Version 1.2 (the 'License').
* You may not use this file except in compliance with the License. Please
* obtain a copy of the License at http://www.apple.com/publicsource and
* read it before using this file.
*
* This Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please
* see the License for the specific language governing rights and
* limitations under the License.
*
*
* @APPLE_LICENSE_HEADER_END@
*
*/
/*
File: InternalStdLib.cpp


    Contains:   Thread safe std lib calls for internal modules and apps


*/


#include <stdlib.h> ...

on 10/4/02 4:08 AM, john at email@hidden wrote:

Peter,

It looks like you are not running the "Buildit" script within the top
directory of the source. I am wondering if you started out on OS X and
was mislead by a reference to "make" in the developer documentation.
The build instructions are in the DevNotes.html file in the
Documentation directory. Typing make -f Makefile.POSIX on any of the
Makefile.POSIX files in the source tree will always fail with many
errors including the one you reported.


Below is the text of the build instructions that comes with the source:

"Building

If you downloaded a binary package of Darwin Streaming Server, skip to
the next section on installation.

To build Darwin Streaming Server on Mac OS X run ProjectBuilder or type
"make" from within the DarwinStreamingServer directory. This will build
all of the targets.


To build Darwin Streaming Server on other UNIX platforms, type
./Buildit from within the DarwinStreamingServer directory. The script
determines the current OS and hardware platform, and builds all of the
targets for that platform: DarwinStreamingServer, PlaylistBroadcaster,
qtpasswd, and dynamic modules included in the "APIModules" folder."

So the part about typing "make" on OS X is incorrect.  I believe you
are using the latest cvs code, so in that case, Buildit should work on
all platforms including OS X.  OS X has the ProjectBuilder tool so you
can use it and the project file StreamingServer.pbproj if you want to
use a gui. However, any of these command-line build instructions will
work on OS X v10.2: "./Buildit", or "./Buildit all", or "pbxbuild", or
"pbxbuild -target QTSSAll".

john

On Wednesday, October 2, 2002, at 09:53 AM, Peter Eisch wrote:

Will someone with cvs commit capability please work around this:

ar -r libQTFileExternalLib.a QTAtom.xo QTAtom_dref.xo QTAtom_elst.xo
\
QTAtom_hinf.xo QTAtom_mdhd.xo QTAtom_mvhd.xo QTAtom_stco.xo \
QTAtom_stsc.xo QTAtom_stsd.xo QTAtom_stss.xo QTAtom_stsz.xo \
QTAtom_stts.xo QTAtom_tkhd.xo QTAtom_tref.xo QTFile.xo \
QTFile_FileControlBlock.xo QTHintTrack.xo QTRTPFile.xo QTTrack.xo
\
../SafeStdLib/InternalStdLib.cpp ../SafeStdLib/InternalStdLib.xo
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_______________________________________________
streaming-server-developers mailing list |
email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/streaming-server- developers
Do not post admin requests to the list. They will be ignored.
_______________________________________________
streaming-server-developers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/streaming-server-> developers
Do not post admin requests to the list. They will be ignored.
_______________________________________________
streaming-server-developers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/streaming-server-developers
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Makefile mess-up (in QTFileLib) (From: Peter Eisch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.